Home forums Using CanvasJS is there a way to have two charts share 1 y-axis? Reply To: is there a way to have two charts share 1 y-axis?

#11385

Sanjoy
Moderator

[update]

We have just released v1.9.6 Beta with Methods & Properties, which allows you to programmatically access internally calculated values, export chart as image, print chart, etc. Please refer to the release blog for more information.

Please check this jsfiddle.

xiaosongzou,

1) As of now we don’t have width property of label. Using margin you can align the axis of both the chart.
2) For controlling gap between bars you can use dataPointMinWidth.

Also you can check interval,viewportMinimum and viewportMaximum for aligning the labels/grid-lines.