How to show values as legend?
I have a bar chart and I want to show the YAxis values as legends. The default behavior seems to b开发者_如何学Goe Series
as legends...
How can I show the legend with YAxis values?
You have to use a new LegendItem
.
LegendItem newItem = new LegendItem();
newItem.Cells.Add(LegendCellType.SeriesSymbol, "", ContentAlignment.MiddleCenter);
newItem.Cells.Add(LegendCellType.Text, chartData[index].ToString(), ContentAlignment.MiddleCenter);
And do this for each series.
精彩评论