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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

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.