Not familiar with licensing? Need help in installing LightningChart Ultimate SDK? User's manual is missing? Post general questions here.
- Posts: 1
- Joined: Fri Nov 20, 2020 11:17 am
Hi, i just started using LightningChart and i'm really happy about it.
One thing i can't really figure out is how to limit the zooming out (with the mouse wheel) to fit the series data, so to not get empty areas before or after my series.
I tried the following, but it didn't seem to make any difference:
Code: Select all
const axisX = chart.getDefaultAxisX()
.setAnimationScroll( false )
Can anyone help, please?
- Posts: 2
- Joined: Thu May 28, 2020 6:36 am
We have a board dedicated to LightningChart JS here: viewforum.php?f=31
For future questions, I'd urge you to check this thread: viewtopic.php?f=31&t=2527
While there is no dedicated API to limit zooming out, you can accomplish this by using the Axis.onScaleChange()
This will allow you to subscribe to the scale change event, where you can check if the maximum zoom level has been achieved and set the interval to the value you want using Axis.setInterval()