Auto Fit issue
Posted: Fri Nov 20, 2020 12:26 pm
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:
Can anyone help, please?
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 )
.fit(false, true)
.setChartInteractionFitByDrag(true)
.setScrollStrategy(AxisScrollStrategies.fitting)