Home Forums Chart Support Alignment of two related charts Reply To: Alignment of two related charts

#60878

@wrvanalphen,

To align the primary y-axes across all charts, first identify the chart whose y-axis is positioned farthest to the right using axis bounds (chart.axisY[0].bounds.x2). Next, calculate the difference between this value and the y-axis bound (x2) of each chart, and set that difference as the y-axis margin for the corresponding chart.

Please check this updated JSFiddle for a working example.


Thangaraj Raman
Team CanvasJS