Hello
Currently trying this:
final NumericAxis yAxis = sciChartBuilder.newNumericAxis()
.withAutoRangeMode(AutoRange.Never)
.withTextFormatting("#.0000")
.withVisibleRangeLimit(1.143, 1.146)
.build();
Works perfectly with values .withVisibleRangeLimit(1.14, 1.15), but every time i go for more precision – range is default 0-10
Please help
Edit:
Also works fine with
.withVisibleRangeLimit(1.1433, 1.1566)
Question 2.
Is there a way to determine that live chart was scrolled by finger or by animation (when adding new point)?
- Kirey Vadim asked 5 years ago
- last edited 5 years ago
- You must login to post comments
Hi Vadim,
-
It’s probably caused by default MinimalZoomConstrain value which prevents axis from very deep zoom. Please can you try to set it to 0 which should disable rolling back to default VisibleRange value:
yAxis.setMinimalZoomConstrain(0d);
-
There is isAnimating flag in VisibleRangeChangeListener which can set for axis:
yAxis.setVisibleRangeChangeListener(new VisibleRangeChangeListener() { @Override public void onVisibleRangeChanged(IAxisCore axis, IRange oldRange, IRange newRange, boolean isAnimating) { } });
Hope this will help you!
Best regards,
Yura
- Yura Khariton answered 5 years ago
-
Thanks a lot. Had an idea to increase my y-values by 1000 to fix it, but that one-liner is perfect.
- You must login to post comments
Please login first to submit.