SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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.