Pre loader

Change the interval of Axis in Android

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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?

Version
3
  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies