Dynamically change scale on chart when zooming