A quick-start example to help you add the Syncfusion Flutter Charts package to a Flutter app. You will learn how to add a Cartesian chart to a Flutter project. You will then learn how to show/hide the crosshair in Flutter Cartesian chart using the public methods. Flutter Cartesian chart widget provides support for showing or hiding the crosshair dynamically using the public methods. Public methods are methods that can be called by using the class object where they are defined. Likewise, chart widget also has some public methods to show or hide the crosshair dynamically such as.
- show
- showByIndex
- hide
Documentation: https://help.syncfusion.com/flutter/cartesian-charts/methods#methods-in-crosshairbehavior
To run this application, you need to first clone or download the ‘public methods crosshair flutter chart’ repository and open it in your preferred IDE. Then, build and run your project to view the output.
For more help, check the Syncfusion Flutter documentation, or Flutter documentation.