开发者

How do I add labels to a Dundas Chart?

开发者 https://www.devze.com 2023-02-06 05:05 出处:网络
How to add labels to my graphs to indicate which series is what. My clients don\'t want legends, they want the l开发者_Python百科abels on the chart area. Possibly with C#? The easiest way to set lab

How to add labels to my graphs to indicate which series is what.

My clients don't want legends, they want the l开发者_Python百科abels on the chart area. Possibly with C#?


The easiest way to set labels is when you bind your data to the chart.

Eg. for a piechart (may be different on other types):

chart.Series["seriesName"].Points.DataBind(MyDataList, "xFieldPropertyName", "yFieldPropertyName", "Label=xFieldPropertyName{p2},LegendText=legendPropertyName");

0

精彩评论

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