Pre loader

Data Points Visibility on FastLineRenderableSeries

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

Is it possible to have data points on FastLineRenderableSeries not show on zoom out, and as we zoom in they start appearing.
Something like autoticks property on an axis.

Version
4
  • You must to post comments
0
0

Hi Aysan,

It is, with a little work. I would suggest to subscribe to Axis.VisibleRangeChanged event.

axis.VisibleRangeChanged += (s,e) => 
{
    var visibleRange = e.NewVisibleRange.AsDoubleRange();
    const double SomeConstant = 123;
    bool shouldShowPoints = visibleRange.Max - visibleRange.Min > SomeConstant;

    // TODO: Toggle visibility of points
};

You can toggle visibility of datapoints in one of two ways.

  1. Either have your PointMarkers in a separate XyScatterRenderableSeries and set XyScatterRenderableSeries.IsVisible = false
  2. Keep your PointMarkers in a FastLineRenderableSeries but set FastLineRenderableSeries.PointMarker = NULL to hide the pointmarker, setting back to a PointMarker instance to show the points

Hope this helps!

Best regards,
Andrew

  • You must to post comments
Showing 1 result
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