In the MS Chart control (which they bought from Dundas), I have three series to draw.
Two of the series should have an entry in the legend, but the third should not.
I tried these lines of code, but no one works:
Chart c = new Chart(); ChartArea ca = c.ChartAreas.Add("main"); Legend lg = c.Legends.Add("mainLegend"); Series s1 = c.Series.Add("s1"); Series s2 = c.Series.Add("s2"); Series s3 = c.Series.Add("s3");
How to prevent a series from appearing in a legend?
mschart
Jeff meatball yang
source share