简体   繁体   中英

WPF Toolkit Chart: How to add value label to specific data point

Is there any possibility to add a label to a specific data point within a WPF toolkit chart? That label should simply show the data point's value. This was quite easy to achieve on iOS (core-plot) and Android, but I couldn't get it to work on Windows Phone. Given the fact that there seems to be no documentation for WPF toolkit/charting doesn't make it much easier.

This is how the data points' labels look on iOS (5.1%, 18.3%) 这就是数据点标签在iOS上的外观(5.1%,18.3%)

Basically, I'd need the same data-point labeling for the x-values of 12 and 60 on Windows Phone as it is right now on iOS.

Those data-points are visible as green dots in this screenshot (WP 7.1): 这些数据点在此屏幕截图(WP 7.1)中显示为绿色点。

Any help would be kindly appreciated. Thank you very much in advance.

Finally I found the time to implement the class for displaying point labels.

Here is my post in the blog where I describe this class in more details: Silverlight and WP7 chart with data point labels

The WP7 example works with the chart library which I recompiled myself, so it may not work with yours. You can download the sample working application here .

带有数据点标签的WP7图表

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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