Hide Legend Series Item When PointLineSeries.Visible = False

Need help in implementing some specific function to your LightningChart Ultimate powered application? Post a question and get code snippets from other LightningChart Ultimate community members.

Moderator: Queue Moderators

Post Reply
SESruss
Posts: 22
Joined: Wed Mar 12, 2014 6:36 pm

Hide Legend Series Item When PointLineSeries.Visible = False

Post by SESruss » Wed Jul 15, 2015 8:18 pm

When I toggle the Visible property of a PointLineSeries and redraw my chart it does what you expect but the item in the legend remains. Is there a way to hide/remove that?

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Hide Legend Series Item When PointLineSeries.Visible = F

Post by ArctionPasi » Thu Jul 16, 2015 5:34 am

In new versions, you control that with series.ShowInLegendBox property. In older versions, it's series.Title.ShowInLegendBox that must be set to False.
LightningChart Support Team, PT

SESruss
Posts: 22
Joined: Wed Mar 12, 2014 6:36 pm

Re: Hide Legend Series Item When PointLineSeries.Visible = F

Post by SESruss » Thu Jul 16, 2015 11:42 am

Thanks

Post Reply