<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
- Robert Zeff asked 6 years ago
- last edited 6 years ago
-
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 login to post comments
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
- Andrew Burnett-Thompson answered 6 years ago
- You must login to post comments
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
- Robert Zeff answered 6 years ago
- You must login to post comments
Please login first to submit.