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

0
0

Hello,
I want to zoom at graph but without generating new 5×5 cubes in background. Is there a way how to do it?

Version
2.0.0.1654
  • You must to post comments
0
0

Hi Martin,

Axis bands are drawn between even/uneven major ticks which are generated by axis TickProvider. So the only way to prevent regeneration of bands is to disable auto ticks generation and set your own Major/MinorDelta values. In this case band width will be always equal of MajorDelta and all bands will be drawn at same coordinates.

Also if you need more manual handling of this case you can create custom TickProvider and generate major ticks values on your own:

class CustomTickProvider extends TickProvider {

    @Override
    protected void updateTicks(DoubleValues minorTicks, DoubleValues majorTicks) {
        final IAxisCore axis = this.axis; // can get some values from axis if it's required

        minorTicks.add(desiredMinorTicks); // set minorTicks
        majorTicks.add(desiredMajorTicks); // set majorTicks
    }
}

Hope this will help you!

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.