开发者

How to show values as legend?

开发者 https://www.devze.com 2023-04-01 21:31 出处:网络
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...

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

精彩评论

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

关注公众号