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.
Unfortunately, activation email could not send to your email. Please try again.

How to create an additional label in chartrackball ?

Thread ID:

Created:

Updated:

Platform:

Replies:

132851 Sep 25,2017 10:22 AM Sep 28,2017 01:50 PM Xamarin.Android 3
loading
Tags: SfChart
Novel Alex
Asked On September 25, 2017 10:22 AM

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

Parthiban Sundaram [Syncfusion]
Replied On September 26, 2017 07:03 AM

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


Novel Alex
Replied On September 27, 2017 06:51 AM

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

Parthiban Sundaram [Syncfusion]
Replied On September 28, 2017 01:50 PM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;