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


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.

  • You must to post comments

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,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.