Pre loader

Forcing a Min/Max on a chart

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 would like to make a chart where the Y axis starts at 0 and ends at 2000. The dataset I’ll populate it with has these min and max restrictions but if the data ranges from 100-1000, the chart always seems to autorange.

Here is what I’m trying:

<SciChart:SciChartSurface.YAxis>
<SciChart:NumericAxis AutoRange="False" DrawMinorTicks="False" DrawMinorGridLines="False" DrawMajorGridLines="False" >
<SciChart:NumericAxis.VisibleRange>
<SciChart:DoubleRange Min="0" Max="1000"/>
</SciChart:NumericAxis.VisibleRange>
</SciChart:NumericAxis>
</SciChart:SciChartSurface.YAxis>

But when I run it doesn’t seem to do anything. What am I missing?

  • You must to post comments
0
0

In SciChart v2.0 the chart checks if any of the axes has invalid range (either null, or infinite) and if so, it autoranges that axis once, on startup.

In SciChart v3.0 this problem goes away, as there is a default VisibleRange applied to each axis, and if overridden by a user (e.g. setting your own VisibleRange), then the auto ranging once on startup is ignored.

There is a KB article here on the topic:

AutoRange.Never vs AutoRange.Auto vs AutoRange.Always

Best regards,
Andrew

  • 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