We are implementing multiple stacked charts in a window. The challenge is there may be times when Y-axis markers of one chart has broader text than other & since we are implementing 1-10 charts at a time, we cannot rely on the first chart. The base should be largest y-axis marker. Until this part we were able to figure out using set margin function. But the issue arises when user tries to zoom/pan in one chart. Since charts should be synced to each other. On panning charts gets rendered with new y-axis marker length and that disturbs all the charts.
Check this fiddle – https://jsfiddle.net/sd17789/98xq1yaf/93/