Hello
Is there a way to hide certain parts of a FastLineRenderableSeries?
Imagine a vertical line intersecting the plot. Everything left of the line is rendered and everything right is not visible.
I came up with the following ideas:
– Implement a PaletteProvider which returns a transparent color for parts of the series to hide. This did not work: The plot was rendered in white color instead of transparent.
– Modify the underlying XyDataSeries and remove points which should be hidden.
Are there any other options?
Thanks for any assistance.
Daniel
- Daniel Bischoff asked 7 years ago
- You must login to post comments
I updated from SciChart 3.4.3.7019 to 3.6.1.7977 which fixed the problem that series were drawn in white when the PaletteProvider returned Colors.Transparent.
- Daniel Bischoff answered 7 years ago
- Hi Daniel, that’s great, I love it when a build fixes a bug! :)
- You must login to post comments
you can set y vales to Double.NaN to the region you want to hide.
I am new to scichart, please correct me if im wrong.. 🙂
- vibin1307 answered 7 years ago
- No, you are absolutely right! Setting Y=double.NaN creates a gap. Please see https://www.scichart.com/questions/question/hiding-data-when-using-a-line-series
- Thanks for you answer! This would work well for hiding, but to un-hide the data points, I’d have to restore the y-values. In my case, I’d like to be able to hide and un-hide data points dynamically at runtime.
- You must login to post comments
Please login first to submit.