Forum Replies Created by Vishwas R

Viewing 15 posts - 811 through 825 (of 1,622 total)
  • in reply to: ToolTipContent Breaks StackedArea Chart #23446

    @npshannon,

    Thanks for the follow up. We have already prioritized this bug and we are working on it. We will get back to you in couple of days on the fix for the same.


    Vishwas R
    Team CanvasJS

    in reply to: Mirror chart #23445

    @ttquang1063750,

    You can use Stacked Column Chart to achieve this. Please take a look at this JSFiddle.


    Vishwas R
    Team CanvasJS

    in reply to: Range Bar Chart: bug dataPointMinWidth #23433

    @tedadradro,

    As mentioned earlier it’s not possible to have minimum height of the column / bar as of now. However by setting axis range to a smaller value by keeping difference between viewportMinimum and viewportMaximum smaller along with adding scale-breaks, dataPoints can be made visible which helps you visualize better.


    Vishwas R
    Team CanvasJS

    in reply to: Range Bar Chart: bug dataPointMinWidth #23420

    @tedadradro,

    It’s not possible to set minimum-height of the column / bar, as of now. We will consider this behavior for future versions. However combination of Scalebreaks and Zooming / Panning would help you in this scenario. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    in reply to: adding font to canvasjs #23396

    @antimatter,

    You can change font-family of title, axis-title, axis-labels by setting fontFamily, titleFontFamily and labelFontFamily respectively. Please take a look at this JSFiddle, where Google Font is used for title.


    Vishwas R
    Team CanvasJS

    in reply to: Downsampling #23390

    @pwang,

    Updating the index of dataSeries in intervalTypeChanger should work fine in your case. You are updating the dataPoints of first series in intervalTypeChanger instead of fourth series. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    in reply to: How to plot Scatter points based on Y2 axis #23389

    @adjmpw,

    dataSeries are attached to either primary Y-axis (axisY) or secondary Y-axis (axisY2) by setting axisYType to “primary” or “secondary” respectively. Setting axisYType to “secondary” in scatter series should render scatter series across axisY2, irrespective of static or dynamic dataPoints. Please find the updated code below:

    data: [{
    	lineThickness: 2,
    	type: "scatter",
    	name: "depth",
    	axisYIndex: 0,
    	axisYType: "secondary",
    	dataPoints: gdepth[id],
    	markerSize: 4,
    }, {
    	markerSize: 0,
    	lineThickness: 2,
    	name: "price",
    	type: "line",
    	color: "black",
    	axisYIndex: 2,
    	dataPoints: gprice[id],
    }, {
    	fillOpacity: 0.1,
    	markerSize: 0,
    	lineThickness: 1,
    	axisYType: "secondary",
    	name: "volume",
    	type: "column",
    	color: "black",
    	dataPoints: gvolume[id],
    }]

    If you are still facing any issue, kindly create JSFiddle reproducing the issue you are facing so that we can look in to it and help you out.


    Vishwas R
    Team CanvasJS

    in reply to: Reverse the Y axis #23388

    @adjmpw,

    dataSeries are attached to either primary Y-axis (axisY) or secondary Y-axis (axisY2) by setting axisYType to “primary” or “secondary” respectively. Setting axisYType to “primary” and “secondary” in corresponding dataSeries should work fine in your case. Please find the updated code below:

    axisX: {
    	gridColor: "white",
    	labelFontSize: 5,
    	margin: 0,
    	titleFontSize: 0,
    	gridThickness: 0,
    	tickLength: 0,
    	lineThickness: 0,
    	labelFormatter: function() {
    		return " ";
    	}
    },
    axisY: [{
    	lineThickness: 0,
    	tickLength: 0,
    
    	labelFontSize: 12,
    	labelFontColor: "#ccc",
    	margin: 0,
    	titleFontSize: 0,
    	title: "Volume",
    	gridColor: "white",
    	includeZero: false,
    }, {
    	lineThickness: 0,
    	tickLength: 0,
    	title: "ginterest",
    	labelFontSize: 12,
    	labelFontColor: "#ccc",
    	margin: 0,
    	titleFontSize: 0,
    	title: "oi",
    	gridColor: "white",
    	includeZero: false,
    }
    
    ],
    axisY2: [{
    	lineThickness: 0,
    	tickLength: 0,
    	labelFontSize: 12,
    	margin: 0,
    	titleFontSize: 0,
    	title: "price",
    	gridColor: "white",
    	includeZero: true,
    }
    ],
    data: [{
    	lineThickness: 2,
    	type: "scatter",
    	name: "depth",
    	axisYIndex: 0,
    	axisYType: "secondary", //secondary y-axis will be shown towards left
    	dataPoints: gdepth[id],
    	markerSize: 4,
    }, {
    	markerSize: 0,
    	lineThickness: 2,
    	name: "price",
    	type: "line",
    	color: "black",
    	axisYIndex: 2,
    	dataPoints: gprice[id],
    }, {
    	fillOpacity: 0.1,
    	markerSize: 0,
    	lineThickness: 1,
    	axisYType: "primary", //primary y-axis will be shown towards left
    	name: "volume",
    	type: "column",
    	color: "black",
    	dataPoints: gvolume[id],
    }]

    If you are still facing any issue, kindly create JSFiddle reproducing the issue you are facing so that we can look in to it and help you out.


    Vishwas R
    Team CanvasJS

    in reply to: Useing CanvasJS with mousewheel #23374

    @mihaela,

    Similar to how wheel event was attached to achieve zooming the chart with mouse-wheel, you need to attach keydown event to achieve on pressing any key in the keyboard. Please take a look at this JSFiddle. Please refer this stackoverflow thread for more information on key-codes.

    Note: As JSFiddle has multiple panels (like HTML, JS, Result, etc), make sure you click somewhere in the result panel and then on top of chart once so that keyboard events are captured by chart.


    Vishwas R
    Team CanvasJS

    in reply to: issue Scattered Data point is not Visible #23373

    @mhdajmalik,

    In the JSFiddle that you have shared, it’s not possible to observe dataPoints as you are setting markerBorderColor to white (same as chart background). In your scenario, dataPoints are too close that the marker-border of one dataPoint is rendered on top of marker of another dataPoint. Either by removing markers when there are too-many dataPoints in the viewport (which is a default behavior) or removing markerBorderColor / markerBorderThickness should work fine in your case. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    in reply to: Range Bar Chart: bug dataPointMinWidth #23368

    @tedadradro,

    You can use scale-breaks to remove space between dataPoints and allow dataPoints accommodate more space within the plot-area. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    in reply to: Chart hangs with this code #23361

    @bhaktaonline,

    Thanks for reporting the use-case. We are looking into the issue and will get back to you at the earliest.


    Vishwas R
    Team CanvasJS

    in reply to: using canvasjs for angular #23360

    @rajesh,

    CanvasJS Charts seems to be working fine with Angular. Please take a look at this sample project and check-out Gallery for more examples.
    Column Chart - CanvasJS Angular Charts

    If the issue still persists, kindly create a sample project reproducing the issue and share it with us over Google-Drive or Onedrive, so that we can run it locally at our end to understand the scenario better and help you out.


    Vishwas R
    Team CanvasJS

    in reply to: Range Bar Chart: bug dataPointMinWidth #23359

    @tedadradro,

    Thanks for reporting the use-case. As of now, columns/dataPoints are getting disappeared when the values are pretty small compared to the axis range. In future versions, we will consider limiting the height of the column to a minimum pixel value so that it’s visible even in-case of smaller values.


    Vishwas R
    Team CanvasJS

    in reply to: data/index label on JSON #23358

    @cikadpm,

    As of now, x-value can either be numeric or a dateTime whereas y-value should be number. We observe that you are passing both the values as string, changing it to numeric or dateTime values should work fine. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

Viewing 15 posts - 811 through 825 (of 1,622 total)