How To Disable The Trackball Marker For Specific Series In Sfcartesianchart?

Sample date Updated on Feb 15, 2024
flutter-charts syncfusion-flutter-charts trackball trackball-marker

Flutter Cartesian Chart widget provides support for customizing the trackball marker to render only for the particular series of our choice in the chart using the markerVisibility property of the TrackballMarkerSettings available in the chart.

For example, consider there are two cartesian line series in the chart, and if you need to show only the trackball marker for the first series alone in the chart when the trackball is activated on user interaction, then you can use the markerVisibility property of the TrackballMarkerSettings to modify the trackball marker’s visibility mode and the series MarkerSettings property values accordingly, in order to disable the trackball marker for the particular series in the chart.

Documentation: https://help.syncfusion.com/flutter/cartesian-charts/trackball-crosshair#trackball-marker

Requirements to run the demo

How to run this application

To run this application, you need to first clone or download the ‘disable trackball marker specific series’ repository and open it in your preferred IDE. Then, build and run your project to view the output.

Further help

For more help, check the Syncfusion Flutter documentation, or Flutter documentation.

Up arrow