I want to set ticks of y Axis, like 0, 10, 20, 30, 40, 50…
I tried in this code,
IAxis yAxis = sciChartBuilder.newNumericAxis().withVisibleRange(0, 50).withVisibleRangeLimit(0, 50).withMajorDelta(10d).build();
It did not work!
How can I change the interval in Axis?
- You must login to post comments
Hi Jimpachi Wakabayashi,
To manually specify Minor/MajorDelta value you also need to disable auto tick generation. Please take a look on article from our documentation in ‘Altering Tick Spacing’ section. Also if you specify MajorDelta you also need to specify MinorDelta:
IAxis yAxis = sciChartBuilder.newNumericAxis()
.withVisibleRange(0, 50)
.withVisibleRangeLimit(0, 50)
.withAutoTicks(false)
.withMinorDelta(2d)
.withMajorDelta(10d)
.build();
Best regards,
Yura
- Yura Khariton answered 4 years ago
- You must login to post comments
Please login first to submit.