I want to show my values between (-10,60) but the y axis is adjusting automatically according to data .
- Vipul Chaurasia asked 4 years ago
- You must login to post comments
Hi Vipul,
Have you tried to set AutoRange = Never and then set VisibleRange = (-10, 60):
final NumericAxis yAxis = sciChartBuilder.newNumericAxis()
.withAutoRangeMode(AutoRange.Never)
.withVisibleRange(new DoubleRange(-10d, 60d))
.build();
Hope this will help you!
Best regards,
Yura
- Yura Khariton answered 4 years ago
-
Hi Vipul, SciChart does not automatically zoom to fit the data, you must have added this behaviour by adding AutoRange, or by calling ZoomExtents() on the chart. How have you configured the chart?
-
yeah ,U r right ,actuually when i am removing zoomExtent() then i m not getting a graph.
-
can u just give me some example? like with code actually i m new to this library so facing problem…
-
Yes, there’s lots of examples in the scichart android documentation -> (1) AutoRange https://www.scichart.com/documentation/android/current/webframe.html#Axis%20Ranging%20-%20AutoRange.html (2) setting Axis VisibleRange https://www.scichart.com/documentation/android/current/webframe.html#Axis%20Ranging%20-%20VisibleRange%20and%20DataRange.html (3) Restricting visiblerange https://www.scichart.com/documentation/android/current/webframe.html#Axis%20Ranging%20-%20Restricting%20VisibleRange.html – Do any of these help?
-
Thanks a lot ,i ll go through it.
- 1 more comment
- You must login to post comments
Please login first to submit.