Data Point Labels

Charts for WPF Forum

Posted 6 years ago by Chris
Version: 13.1.0581
Avatar

Hi,

We're integrating WPF charts at the moment and was wondering how to go about specifying a custom label for a data point. 

For example, we have an IEnumerable of complex data items which are being plotted. We are using the YPath/XPath approach to read properties from each component. Each point on a specific series has a special meaning which should be labelled, so that when we mouseover it, the description appears. The label needs to come from a property on the data point instance, which is neither the X nor the Y value.

I'm probably missing something very obvious, and any pointers would be greatfully accepted.

Thanks

Chris

Comments (3)

Answer - Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Chris,

Unfortunately scenario this is not currently possible. Right now data point labels can only use the values resovled by XPath and YPath. We think this is a great suggestion and definitely want to enable your scenario as a feature in our next major release. When that feature gets added, we'll post an update on this thread.


Actipro Software Support

Posted 6 years ago by Chris
Avatar

Thanks for the v. quick reply. I look forward to any updates in the future which will enable us to use this feature.

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Chris,

This feature has been implemented as a LabelFunc property on all series (BarSeries, LineSeries, etc), which you can bind to a function pointer. That function receives several parameters including the original value from your data source, which you can use to build a custom label. The LabelFunc feature will be available in the next product release.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.