Pre loader

Zoom generates new grid lines in background

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

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.

Try SciChart Today

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

Start TrialCase Studies