We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to create an additional label in chartrackball ?

Hello
I want to add a second label to chartrackball in the function

protected override void OnLabelsGenerated(List chartPointInfos)

How to create castom ChartPointInfo?

Regards,

Alexandr

3 Replies

PS Parthiban Sundaram Syncfusion Team September 26, 2017 11:03 AM UTC

Hi Alexandr,

Thanks for using Syncfusion products.

You can achieve this requirement by overriding the GetView method of ChartTrackballBehavior. Please download the sample from following location.

Sample: http://www.syncfusion.com/downloads/support/forum/132851/ze/ChartSample-1879299398  

If your requirement is different from this. Please update us more information regarding your exact requirement which will helpful for providing better solution on this.

Regards,
Parthiban S



NA Novel Alex September 27, 2017 10:51 AM UTC

Hello!

Thank you for you answer
In this project, i want to see the label on top.
I override DrawLabel and there is a problem.
ViewBox is empty.

Regards,

Alexandr



Attachment: sample_with_photo_cf35a4de.zip


PS Parthiban Sundaram Syncfusion Team September 28, 2017 05:50 PM UTC

Hi Alexandr,

Thanks for the update.

You can achieve this requirement by overriding the OnLabelsGenerated method to add the custom labels and overriding the DrawLabel method to position the label top of the chart. Please download the sample from following location.

Sample: http://www.syncfusion.com/downloads/support/forum/132851/ze/ChartSample1673132520  

Please let us know, if you need further assistance on this.

Regards,
Parthiban S


Loader.
Live Chat Icon For mobile
Up arrow icon