Autoscale y-axis on zoom for candlestick chart

When show my chart, i enable scrollZoom. However, when i zoom, it does indeed zoom in on the x-axis range, but does not re-size the chart…so i end up with parts of my candle stick chart off the plot area. Is there a way to ensure the chart is resized accordingly to fit when i zoom in on the x-axis with the mouse scroll wheel?

Here is the chart without any zooming:
image

and here it is after i used the scroll wheel to zoom. you’ll see that it does not scale to the plot area
image

1 Like