有没有办法在C#的柱形图中显示条形内部的标签 [英] Is there any way to display the label inside on bar in column chart in C#

查看:379
本文介绍了有没有办法在C#的柱形图中显示条形内部的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在C#的柱形图中显示栏内的标签。



请找到以下代码无法使用



Is there any way to display the label inside on bar in column chart in C#.

Please find the below codes is not working

series.LabelAngle = 90;
Chart2.Series.Add(series);
Chart2.Series[0].IsValueShownAsLabel = true;
Chart2.Series[0].LabelBackColor = System.Drawing.Color.Red;
Chart2.Series[0]["BarLabelStyle"] ="Center"





请帮忙。



Please help on this.

推荐答案

我查看了系列课程,发现以下内容可能是您想要的。

I looked into the Series class and found the following maybe want you want.
DataPointCustomProperties.Label Property





https://msdn.microsoft.com/en-us/library /system.windows.forms.datavisualization.charting.datapointcustomproperties.label(v=vs.110).aspx [ ^ ]


这篇关于有没有办法在C#的柱形图中显示条形内部的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆