Order Chart Trackball Behavior label

Hello, Syncfusion team

We'd like to know if there is way or property to order the numbers of Chart Trackball label descending due to for now we can see the Max value is on the bottom (SfChart version: 19.3.0.55 / Xamarin Forms version: 5.0.0.2337).

we're using this code:

<xForms:ChartTrackballBehavior ShowLabel="True" ShowLine="True">

</xForms:ChartTrackballBehavior>


Please provide some code sample on customizing trackball if possible.

Thanks,

Junior Saravia


3 Replies

DD Devakumar Dhanapoosanam Syncfusion Team August 25, 2022 01:12 PM UTC

Hi Junior Saravia,


Query: if there is way or property to order the numbers of Chart Trackball label descending


Currently, we don’t have direct support to order the trackball label and by default it will be added based on the series order while grouping.


We would like to share that we can customize the trackball label by using the LabelStyle property. Please refer the below link for more details with code example.


https://help.syncfusion.com/xamarin/charts/trackball#label-display-mode

https://help.syncfusion.com/xamarin/charts/trackball#customizing-appearance


We can also customize the trackball by using the TrackballLabelTemplate property or TrackballCreated event. Please refer the below link for more details.

https://help.syncfusion.com/xamarin/charts/trackball#label-template

https://help.syncfusion.com/xamarin/charts/trackball#trackballcreated


Sample GitHub: https://github.com/syncfusion/xamarin-demos/tree/master/Forms/Chart/Chart/Samples/Trackball


Please check and let us know if you need any further assistance.


Regards,

Devakumar D


If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.



JS Junior Saravia September 5, 2022 09:55 PM UTC

Hi Devakumar D,

We were checking it, and we didn't find a workaround.

We also bound a SamplePoints list (sorted descending) to compare if there was any changes but it didn't work.

<xForms:ScatterSeries ShowTrackballInfo="False" ItemsSource="{Binding SamplePoints}" XBindingPath="TimeStamp" YBindingPath="Value" ScatterWidth="6" ScatterHeight="6" />

 

Regards,

Junior Saravia



DD Devakumar Dhanapoosanam Syncfusion Team September 7, 2022 03:35 AM UTC

Hi Junior Saravia,


As said earlier, we don’t have direct support to order the trackball label and by default it will be added based on the series order while grouping.


Can you please share more details of your requirement with complete chart code snippet, all chart series used with data model values which will be helpful for us to analyze and provide you a better solution at the earliest.


Regards,

Devakumar D


Loader.
Up arrow icon