Skip to content

How to navigate to an external link using the callback events on performing user interactions in flutter charts?

Notifications You must be signed in to change notification settings

SyncfusionExamples/navigation_with_event_flutter_charts

Repository files navigation

How to navigate to a hyperlink when clicked on chart axis label (SfCartesianChart)?

In Flutter Cartesian Chart widget, you can navigate to a hyperlink by clicking on the axis labels using the available callback event. A callback event is a callback function or method that you can pass as an argument to another function or method. It can perform an action whenever you require it. The callback event is used to navigate to a hyperlink when clicked on an axis label is the onAxisLabelTapped event, in which you can check the values and the content of the axis labels and launch the necessary hyperlinks accordingly.

Documentation: https://help.syncfusion.com/flutter/cartesian-charts/callbacks#onaxislabeltapped

Requirements to run the demo

How to run this application

To run this application, you need to first clone or download the ‘navigation with event 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.