Skip to content

The SfCartesianChart widget provides an option to show tooltip programmatically using showByIndex method. By using that, we can display a tooltip at a particular point. The following steps explain how to accomplish this. Add addPostFrameCallback method in build method, and call the showByIndex method by passing series and point indexes as an argu..

Notifications You must be signed in to change notification settings

SyncfusionExamples/initial_dynamic_tooltip_activation_flutter-charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

How to activate the tooltip dynamically on initial rendering of flutter charts?

The SfCartesianChart widget provides an option to show tooltip programmatically using showByIndex method. By using that, we can display a tooltip at a particular point. The following steps explain how to accomplish this. Add addPostFrameCallback method in build method, and call the showByIndex method by passing series and point indexes as an argument to show the tooltip after the data source has been updated.

Documentation: https://help.syncfusion.com/flutter/cartesian-charts/methods#methods-in-tooltipbehavior

Requirements to run the demo

How to run this application

To run this application, you need to first clone or download the ‘initial dynamic tooltip activation flutter charts’ 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.

About

The SfCartesianChart widget provides an option to show tooltip programmatically using showByIndex method. By using that, we can display a tooltip at a particular point. The following steps explain how to accomplish this. Add addPostFrameCallback method in build method, and call the showByIndex method by passing series and point indexes as an argu..

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published