legendText in dataPoint level works only in Pie, Doughnut, Funnel and Pyramid charts, whereas legendText in dataSeries level – that describes the dataSeries, works across every chart type. Setting legendText in dataSeries level should work fine in your case.
However if you are trying to show some text to every dataPoint, you can use indexLabel.
—
Vishwas R
Team CanvasJS
You can set indexLabelLineThickness to show lines drawn from dataPoint to the indexLabel, which defaults to 0 in every chart-type except pie/doughnut. Please take a look at this jsfiddle.
If you specifically looking to show lines downwards, you can do so with couple of lines of code. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Can you kindly create jsfiddle reproducing the issue so that we can look into your code, understand the scenario better and help you out?
—
Vishwas R
Team CanvasJS
Charts take chart-container’s width by default. If the width is not set for the chart container, it defaults to 500.
If you mean removing the extra space between the axisY and the dataPoints towards left and right side of the plotArea, you can achieve that by setting minimum and maximum. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Need Line Marker. like showing in image-1 [marked as 1]
You can use stripline attached to secondary axisY and set labelPlacement to outside.
Need Zooming option in the y-axis, I applied ZoomingEnabled but it is not working
You can use zoomType property to control the axis for which zooming and panning are enabled.
Y-axis is the DateTime value
Please take a look at this jsfiddle.
Also can you kindly create jsfiddle with the issue, so that we can look into the code and the chart-options being used, understand it better and help you out?
—
Vishwas R
Team CanvasJS
You can either directly pass label as 2010, 2011 & so on instead of ‘Geographical_Area’ or you can use labelFormatter to achieve the same. Please take a look at this updated jsfiddle.
—
Vishwas R
Team CanvasJS
You can upload image in imgur.com and share the link with us to show your requirements.
—
Vishwas R
Team CanvasJS
Rajesh,
You can set height of the chart dynamically with the help of set method. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
You seem to observe this behaviour as you are changing margin every time the chart changes onGraphChanges
. In this scenario as you keep hiding / showing dataSeries by clicking legend, which inturn triggers onGraphChanges, it keeps adding margin to the chart every time. Setting margin only once, to align axisY of multiple charts should work fine in your case.
Please take a look at this updated code.
—
Vishwas R
Team CanvasJS
Minor grids are not available as of now. However you can achieve the same by adding stripLines. Please take a look at this JSFiddle.
—
Vishwas R
Team CanvasJS
You can set label of a stripLine using label property. With the help of addTo method, you can add stripLines at desired places after chart is rendered.
Please take a look at this updated JSFiddle, where you can change the color of axisX labels by passing labelFontColor property in specific dataPoint.
—
Vishwas R
Team CanvasJS
We have just released v2.2 with this improvement. Please refer to the release blog for more information.
—
Vishwas R
Team CanvasJS