Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8bc7115

Browse files
Merge pull request #6 from SyncfusionExamples/Improve-JSON-array-kb-in-Maui
Update the Readme file content in JSON Array Kb in .Net MAUI.
2 parents 5d77daf + 15bfb22 commit 8bc7115

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ This example illustrates how to bind the JSON data to the [.NET MAUI charts](htt
44

55
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.
66

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+
719
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).
820

921
**JSON data**
@@ -76,4 +88,7 @@ using Newtonsoft.Json;
7688

7789
![.NET MAUI column chart with JSON data](https://user-images.githubusercontent.com/53489303/201058378-5a16e237-82ba-4032-b440-b02a091f0639.png)
7890

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+
7994
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /