This sample demonstrates how to bind data from JSON, Excel, and CSV sources to Syncfusion’s SfSparkChart controls in a .NET MAUI application. Visualize data from multiple formats with minimal code using SparkLine, SparkArea, and SparkColumn charts.
- How to define a data model for SparkCharts.
- How to load and parse JSON, CSV, and Excel data in .NET MAUI.
- How to bind each data source to a different SparkChart control.
- How to display multiple charts in a single view for comparison.
- Easily visualize data from a variety of sources in your MAUI apps.
- Use Syncfusion’s flexible SparkChart controls for compact, informative charts.
- Minimal code required for powerful data-driven UI.
- Works cross-platform on Android, iOS, Windows, and MacCatalyst.
Bind and display JSON, CSV, and Excel data in three different SparkCharts:
- Line chart for JSON data (e.g., sales)
- Area chart for CSV data (e.g., revenue)
- Column chart for Excel data (e.g., expenses)
- Syncfusion.Maui.Toolkit NuGet package installed.
- Syncfusion.XlsIO.NET NuGet package installed (for Excel reading).
- .NET MAUI development environment set up and ready to build/run.
If you encounter a "path too long" exception when building this project, close Visual Studio and rename the repository folder to a shorter name, then rebuild the project.
For a step-by-step procedure, refer to the How to Bind JSON, Excel, and CSV Data to MAUI SfSparkCharts? Knowledge Base article.