SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
<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
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
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
Please login first to submit.