Hide and show a point from a PointLineSeries

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Niels Decker
Posts: 12
Joined: Mon Nov 22, 2021 8:12 am

Hide and show a point from a PointLineSeries

Post by Niels Decker » Mon Jan 24, 2022 10:32 am

What is the preferred way to temporarily hide a point from a PointLineSeries?

Setting the points color to transparent does not really work as the point is invisible but still gets considered for the graph generation. Removing the point from the series seems to be the only way, but I also want to be able to re-add the point again at the same position in the series. What is the preferred approach to this problem?

Kind regards
Niels

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Hide and show a point from a PointLineSeries

Post by ArctionKestutis » Mon Jan 24, 2022 11:51 am

Most efficient is to use PointsVisible Property. It will hide all the points-symbols, but draw lines (if LineVisible property is enabled).
If you want to make only part of point visible/hidden, then you have two options.
First, is to create multiple series (with set of points you want to manipulate separately). And then use Series.Visible property to hide or show corresponding series.
Second, is to use IndividualPointColoring property feature, as you probably did before.

Hope this helps.

Post Reply