You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,18 @@ This example illustrates how to bind the JSON data to the [.NET MAUI charts](htt
4
4
5
5
JSON data cannot be bound directly to the [SfCartesianChart](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfCartesianChart.html?tabs=tabid-1), so you should deserialize the JSON data to a bindable format. Use the open-source NuGet [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) to serialize and deserialize the JSON objects.
6
6
7
+
## Overview
8
+
9
+
Syncfusion’s SfCartesianChart in .NET MAUI supports binding to a variety of data sources, including JSON arrays. This allows developers to dynamically load chart data from web APIs, local files, or embedded resources using deserialized JSON objects.
10
+
11
+
## Use cases
12
+
13
+
- Dynamic Data Loading: Load chart data from REST APIs that return JSON.
14
+
- Offline Visualization: Bind charts to locally stored JSON files for offline scenarios.
15
+
- Data Transformation: Preprocess JSON data before binding to customize chart behavior.
16
+
- Cross-Platform Sharing: Use JSON as a portable format to share chart data across platforms.
17
+
- Real-Time Dashboards: Update chart data dynamically by parsing live JSON feeds.
18
+
7
19
The following steps explain how to pass JSON data to the [SfCartesianChart](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfCartesianChart.html?tabs=tabid-1).
8
20
9
21
**JSON data**
@@ -76,4 +88,7 @@ using Newtonsoft.Json;
76
88
77
89

78
90
91
+
## Troubleshooting
92
+
Path too long exception If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project.
93
+
79
94
For more details, refer to the KB on [how to pass a JSON array to .NET MAUI Chart (SfCartesianChart).](https://support.syncfusion.com/kb/article/12102/how-to-create-a-net-maui-sfcartesianchart-using-the-json-data)
0 commit comments