Here's my sample code, called after InitializeComponent. It seems to have no effect, as the legend text is always the series name. How do I change the legend text? Is this a bug? Any workaround? It's a line graph only.
Hashtable labelHash = new Hashtable(); labelHash.Add("CURRENTVALUE", new LineChartCurrentValueRenderer(this)); mChart.LabelHash = labelHash; mChart.Legend.FormatString = "<CURRENTVALUE>";
that code looks good to me. is your LineChartCurrentValueRenderer's ToString method not getting called?
Yeah it wasn't getting called at all. In fact, when I modified just the FormatString (not a custom renderer), it didn't even change what was shown in the legend text. It seems to be getting ignored.