Auto-calculate margins for Stock Chart panels with value axis labels outside plot area

To maximize useful space Stock Chart keeps value axis labels inside plot area by default. If you'd like to move them outside plot area, you'd set inside: false in valueAxesSettings.

In that case, you would also need to set marginLeftor marginRight in your panelsSettings to accommodate those value labels.

This demo shows how to use init event handler to cycle through panels, collect widest possible value axis and apply panel margins automatically.