Home › Forums › Chart Support › Synchronized Charts › Reply To: Synchronized Charts
@nerviozzo96,
Thanks, I guess the same applies for the x axis right?
Yes, you can align x-axis across multiple chart using same logic as mentioned above.
Hi there, this dont work on chart updates. I let you the example Try to hide and show Series multiple times
You can reset the margin of y-axis to 0 before aligning the y-axis across multiple charts as shown in the code snippet below.
for(var i = 0; i < charts.length; i++) { charts[i].axisY[0].set("margin", 0); }
Also, please take a look at this updated JSFiddle for complete code.
—- Manoj Mohan Team CanvasJS