Pre loader

The Column Series Type, binding VisibleRange?

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
         <s:NumericAxis AxisTitle="Value"  VisibleRange="{Binding VisibleRange1}" Visibility="Collapsed"  DrawMajorBands="False" />

In ViewModel:

private static int r1 = 70;
private static int r2 = 50;

private IndexRange _visibleRange1 = new IndexRange(r2, r1);

public IndexRange VisibleRange1  => _visibleRange1;

I get the exception:
‘Axis type NumericAxis requires that VisibleRange is of type SciChart.Data.Model.IndexRange’

What am I doing wrong?

Thanks,
-Robert

Version
current version
  • Andrew Burnett-Thompson
    Hi Robert, your support is showing as expired in the forum, however you have an active license with active support until Sept 2018. To fix this please use the scichart.com account that is activated to ask forum questions, or, activate this scichart.com account. Thanks!
  • You must to post comments
0
0

Hi Robert,

The NumericAxis requires a range of type DoubleRange.

IndexRange is used by the CategoryNumericAxis and CategoryDateTimeAxis.

Please let me know if this helps,

Best regards,
Andrew

  • You must to post comments
0
0

DoubleRange did solve the problem.

BTW, double clicking on the chart seems to change the range. I am not using any event handlers.

Thanks,
Robert

  • You must to post comments
Showing 2 results
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