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.
- Aysan Afrand asked 7 years ago
- You must login 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.
- Either have your PointMarkers in a separate XyScatterRenderableSeries and set XyScatterRenderableSeries.IsVisible = false
- 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
- Andrew Burnett-Thompson answered 7 years ago
- last edited 7 years ago
- You must login to post comments
Please login first to submit.