Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在我的图表中添加标签以指示哪个系列是什么。
我的客户不想要图例,他们想要图表区域上的标签。可能与C#?
设置标签的最简单方法是将数据绑定到图表。
例如。对于饼图(其他类型可能不同):
chart.Series["seriesName"].Points.DataBind(MyDataList, "xFieldPropertyName", "yFieldPropertyName", "Label=xFieldPropertyName{p2},LegendText=legendPropertyName");