Skip to content

There are two different ways to bind the data source to the SfSparklineChart widget. One is directly binding the data, for example list of y values to the data property of SfSparkLineChart widget, and another one is binding the custom data source using SfSparkLineChart.custom....

Notifications You must be signed in to change notification settings

SyncfusionExamples/bind-data-to-sparkline-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

How to bind data to the Sparkline chart (SfSparkLineChart)?

There are two different ways to bind the data source to the SfSparklineChart widget. One is directly binding the data, for example list of y values to the data property of SfSparkLineChart widget, and another one is binding the custom data source using SfSparkLineChart.custom.

  • Using the data property - Initialize the data source sparkChartData of required type, declared the type as double.
  • Binding Custom data source - Here, you can define our custom type data source. By using the dataCount property, you can assign the number of data and then you can map x and y value of our data source using the xValueMapper and yValueMapper, respectively.

Documentation: https://help.syncfusion.com/flutter/sparkcharts/axis-types

Requirements to run the demo

How to run this application

To run this application, you need to first clone or download the ‘bind data to sparkline chart’ 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

There are two different ways to bind the data source to the SfSparklineChart widget. One is directly binding the data, for example list of y values to the data property of SfSparkLineChart widget, and another one is binding the custom data source using SfSparkLineChart.custom....

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages