Pre loader

Possible type to 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


I am writing to request some helps about VisibleRange.

I am drawing simple line graphs using NumericAxis and XyDataSeries<long,double>.
I should control axis range so I used XVisibieRange with Int64Range.
But I have an error that It cannot be applied.

How can I control VisibleRange with long type data??

  • You must to post comments

Hi there

In SciChart WPF, Axis.VisibleRange is always of type DoubleRange

Applying Int64 would not allow any way to perform floating-point calculations internally, so long would have to be converted to double anyway

Please apply axis visiblerange like this. If you are using long, you will need to cast to double

axis.VisibleRange = new DoubleRange(123, 456); 
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.