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

custom OnLabelsGenerated for SfChart Trackball

Thread ID:





147293 Sep 5,2019 11:27 AM UTC Sep 10,2019 06:04 AM UTC Xamarin.Android 5
Tags: SfChart
Asked On September 5, 2019 11:27 AM UTC

hi all,
in your doc you tell that i can  override OnLabelGenereted method of Trackball on sfchart
how can i set custom YPosition ?
can you give an example?


Muneesh Kumar G [Syncfusion]
Replied On September 6, 2019 09:07 AM UTC

Hi Alberto, 
Greetings from Syncfusion.  
Currently don’t have support to set custom Y position for Trackball labels. Also, we can’t get your exact requirement from your query. Please share your exact use case scenario with complete details. This would be helpful for us to give better solution in this.  
Muneesh Kumar G 

Replied On September 6, 2019 09:48 AM UTC

in ios version i am able to do this.
i think that you should add a feature, or let as change the position as i'm doing on ios version of your library, why?
simply because when i touch in order to see the track, my finger covers the graph and i can't see the value.
so the best solution, from my side, should be show the label on the top of the chart as other competitor are doing, like this:

Saravanan Madheswaran [Syncfusion]
Replied On September 9, 2019 08:43 AM UTC

Hi Luca, 
We have analyzed your requirement and we would like to let you know that already we have a feature to show the trackball at the top of the chart area. You can achieve this by setting LabelDisplayMode as GroupAllPoints which is available in ChartTrackballBehavior. Please refer the below code. 
Code snippet: 
    <chart:ChartTrackballBehavior LabelDisplayMode="GroupAllPoints"/> 

Replied On September 9, 2019 09:21 PM UTC


Muneesh Kumar G [Syncfusion]
Replied On September 10, 2019 06:04 AM UTC

Hi Luca, 
Thanks for the update. 
We are glad to know that the given solution works. Please let us know if you need any further assistance. 
Muneesh Kumar G. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon