开发者

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 to show values as legend?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜