This question is locked. New answers and comments are not allowed.
I am binding my data like this:
The Line Chart legend still shows Series 0, Series 1, Series 2, etc... as the legend text. Shouldn't it show the LegendLabel as it is bound above?
Also, how do you get rid of the title of the legend which by default is "Legend"?
Thanks,
--Jeff
foreach (MarketShareData data in marketShareData) { DataSeries lineSeries = new DataSeries(); lineSeries.Definition = new LineSeriesDefinition(); lineSeries.Add(new DataPoint() { YValue = data.marketshare0, XCategory = data.timeStamp0.ToShortDateString(), LegendLabel = data.company, Label = data.company }); lineSeries.Add(new DataPoint() { YValue = data.marketshare1, XCategory = data.timeStamp1.ToShortDateString(), LegendLabel = data.company, Label = data.company }); lineSeries.Add(new DataPoint() { YValue = data.marketshare2, XCategory = data.timeStamp2.ToShortDateString(), LegendLabel = data.company, Label = data.company }); lineSeries.Add(new DataPoint() { YValue = data.marketshare3, XCategory = data.timeStamp3.ToShortDateString(), LegendLabel = data.company, Label = data.company }); lineSeries.Add(new DataPoint() { YValue = data.marketshare4, XCategory = data.timeStamp4.ToShortDateString(), LegendLabel = data.company, Label = data.company }); lineSeries.Definition.ShowItemLabels = false; chart.DefaultView.ChartArea.DataSeries.Add(lineSeries); } The Line Chart legend still shows Series 0, Series 1, Series 2, etc... as the legend text. Shouldn't it show the LegendLabel as it is bound above?
Also, how do you get rid of the title of the legend which by default is "Legend"?
Thanks,
--Jeff