Load Data from Multiple Sources into a Flutter Chart [Webinar Show Notes]
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (173).NET Core  (29).NET MAUI  (199)Angular  (107)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (40)Black Friday Deal  (1)Blazor  (211)BoldSign  (13)DocIO  (24)Essential JS 2  (106)Essential Studio  (200)File Formats  (63)Flutter  (132)JavaScript  (219)Microsoft  (118)PDF  (80)Python  (1)React  (98)Streamlit  (1)Succinctly series  (131)Syncfusion  (892)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (50)Windows Forms  (61)WinUI  (68)WPF  (157)Xamarin  (161)XlsIO  (35)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (146)Chart  (127)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (62)Development  (618)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (37)Extensions  (22)File Manager  (6)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (497)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (42)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (379)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (17)Web  (582)What's new  (319)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Load Data from Multiple Sources into a Flutter Chart

Load Data from Multiple Sources into a Flutter Chart [Webinar Show Notes]

This blog provides show notes for our May 20 webinar, “Load Data from Multiple Sources into a Flutter Chart.” The webinar was presented by Syncfusion Product Manager Jayavigneshwaran G. If you missed it, or would like to watch it again, please see our YouTube page or watch it here:

Overview

During this webinar, we walked through the step-by-step process for binding data to the Flutter Charts widget from various data sources (JSON, lists, and Firebase).

Agenda

  • Exploring Syncfusion Flutter Charts’s key features.
  • How to build an app from scratch with the Charts widget.
  • What are the different sources for loading data to a chart?
  • Step-by-step procedure to bind data from multiple sources to a chart. 

Syncfusion Flutter Charts

Syncfusion Flutter Charts is a data visualization library written natively in Dart for creating beautiful, animated, and high-performance charts, which are used to craft high-quality Flutter app user interfaces.

Key features

  • 30+ chart types, ranging from the popular line, bar, area, and pie charts to financial charts like candle and OHLC.
  • Support for 5 axis types: numeric, category, date-time, date-time category, and logarithmic.
  • Various user interactive features like zooming and panning, tooltip, trackball, and selection.
  • Rich feature set.
  • Fluid animation.
  • Complete customizability.
  • Real-time updates to create real-time charts.
  • High performance: able to render a huge amount of data in a few seconds.

How to build an app from scratch with the chart 

  1. Create a new Flutter project.
  2. Add syncfusion_flutter_charts as a dependency in the pubspec.yaml file.
  3. Import the Charts library in the main.dart file.
  4. Remove the code of the default project and add the SfCartesianChart widget in the widget tree.
  5. Run the application.

What are the different source types for loading data to a Flutter chart?

  • List (user-defined class type)
    • This is the most common and simple data-binding method.
  • List (predefined types)
    • The list type can be int, double, string, date-time, etc.
  • JSON
    • JSON is a commonly used data format. Most large data sets, like historical data, financial data, and day-to-day stock price details, will be maintained as JSON data.
  • Firebase database
    • Google’s Firebase database is a cloud-hosted database in which the data is stored in JSON format.

Binding a user-defined list to a chart 

  1. Create a class and add required fields.
  2. Create a list of that class type and add data to it.
  3. Assign it to the dataSource property in the chart.

Binding a predefined list to a chart

  1. Create a class and add required fields.
  2. Create a list of that class type and add data to it by iterating the arrays.
  3. Assign it to the dataSource property in the chart.

Binding JSON data to a chart

  1. Place the JSON file in the assets folder and reference it in the pubspec.yaml file.
  2. Create a class and add required fields. Define a factory ctor for parsing JSON.
  3. Load the raw JSON string and convert it to a list by decoding it.
  4. Create a list and add data to it by iterating it. Assign it to the dataSource property in the chart.

Binding data from Firebase to a chart

  1. Get and parse the JSON data from the Firebase URL.
  2. Create a class and add required fields. Define a factory ctor for parsing JSON.
  3. Load the fetched raw JSON string and convert it to a list by decoding it.
  4. Create a list and add data to it by iterating it. Assign it to the dataSource property in the chart.

Knowledge-base articles

Conclusion

During this webinar, we looked at binding data to the Flutter Charts widget from various data sources.

We hope you enjoyed this webinar and please keep an eye out for our future Flutter webinars. If you have a topic you’d like to see covered in a webinar, please let us know in the comment section below.

Recommended resources (related links)

Related blogs

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed