Forum Replies Created by Vishwas R

Viewing 15 posts - 811 through 825 (of 1,627 total)
  • in reply to: Range column chart #23513

    @asha,

    Tooltip and click event seems to be working fine. Can you kindly create JSFiddle reproducing the issue you are facing and brief us further about the same, so that we can look into the issue and help you resolve it.


    Vishwas R
    Team CanvasJS

    in reply to: Setting x axis labels to display: none on mobile screens #23501

    Michael,

    Based on the chart width, you can remove labels with the help of labelFormatter. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    in reply to: Issue with data not showing #23500

    @operationsteam,

    The gap you observe in the chart is dues to null dataPoints. You can draw a line between 2 adjacent non-null dataPoints by setting connectNullData property in dataSeries level to true. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    in reply to: "rangeColumn" set index labels #23489

    @asha,

    Incase of stacked charts, you can use #index to show indexLabels at both side of the dataPoint, i.e. you can set indexLabel: "{y[#index]}" in dataSeries as shown in second example in range-column documentation page. Please refer documentation on indexLabel for more customization options available.


    Vishwas R
    Team CanvasJS

    in reply to: Mirror chart #23471

    @ttquang1063750,

    It seems your chart render the data two sides the upside render for the positive value and the downside render for the negative value.

    Theoretically, negative values should be rendered below 0 and positive above 0. To make it look like even the negative values are positive, the work-around you are using seems to be a better option.

    when I have hidden the income bar then the chart looks ugly.

    To retain the range of the axis even after hiding the dataSeries, you can set axis minimum and maximum as shown in this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    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

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