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

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
    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.