Hide single legend item


Author
Message
Daniel Csimszi
Daniel Csimszi
Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)
Group: Forum Members
Posts: 61, Visits: 35
I am trying to hide legend items one by one.
Is this possible?

I thought I would identify my legend item and then just call a hide function or change a visible attribute but there are not anything like that.

NLegendItemCellData legend = (NLegendItemCellData)m_Legend.Data.Items[index];
legend.Visible = false ??
Replies
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Daniel,

There is no way to hide legend data items individually. You can control whether certain series output information to the legend using the series legend object attached to them - for example:

series.Legend.Mode = SeriesLegendMode.None;

Disables the output of the series on the legend.



Best Regards,
Nevron Support Team


Daniel Csimszi
Daniel Csimszi
Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)
Group: Forum Members
Posts: 61, Visits: 35
Thank you for your help.

Unfortunately the attribute change you have mentioned did not do what I needed, I tried to refresh the graph as well but nothing changed visually(legend still there). 

I ended up just removing the legends. It is more complicated then just hide them as I needed 2 more lists to store all the legends for graph indexes and the removed legends with their location index if they need to be put back.That also meant I needed to address the graphs and the legends using 2 different indexes as they changed after removing a legend.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search