简体   繁体   English

将标签添加到MSChart中的特定数据元素

[英]Add a label to a specific data element in MSChart

I was wondering is it possible to label a specific value plotted onto my chart. 我想知道是否可以在图表上标注特定值。 I do not mean and X-axis or Y-axis label, I am trying to point to a specific data value wihin my chart and label it. 我不是指X轴或Y轴标签,我试图指向图表中的特定数据值并对其进行标签。

For example if my Y-axis is from 0 to 100, and I have a value on my chart that is 60, i was wondering is it possiblt to point to this value (with a line or arrow) and give it a label (eg £60) 例如,如果我的Y轴从0到100,并且我的图表上的值为60,我想知道是否可以指向该值(带有线或箭头)并给它加上标签(例如60英镑)

Is this possible? 这可能吗?

Sounds like you want to modify the DataPointLabel Property for the point in your collection. 听起来好像您想为集合中的点修改DataPointLabel属性 eg 例如

MSChart1.Plot.SeriesCollection[0].DataPoints[0].DataPointLabel.Text = "£60"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM