How to format the trackball labels in Xamarin.Form Chart?
Our Xamarin.Forms Charts allows you to customize format of the trackball labels using the LabelFormat property in ChartTrackballLabelStyle.
C#
ChartTrackballBehavior behavior = new ChartTrackballBehavior(); behavior.LabelStyle = new ChartTrackballLabelStyle(); behavior.LabelStyle.LabelFormat = "0.00";
XAML
<chart:ChartTrackballBehavior x:Name="chartTrackball"> <chart:ChartTrackballBehavior.LabelStyle> <chart:ChartTrackballLabelStyle LabelFormat ="0.00" /> </chart:ChartTrackballBehavior.LabelStyle> </chart:ChartTrackballBehavior>
Output:
I hope you enjoyed learning how to format the trackball labels in Xamarin.Form Chart.
You can refer to our Xamarin.Forms Chart feature tour page to know about its other groundbreaking feature representations. You can also explore our documentation to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, support portal, or feedback portal. We are always happy to assist you!