JavaScript/jQuery Chart - JSON Data
To bind the Chart to data in a JSON format, assign the data's URL to the dataSource property.
index.js
- $(function() {
- $("#chartContainer").dxChart({
- dataSource: "http://www.example.com/dataservices/data.json",
- // ...
- });
- });
Note that you can also use a JSONP callback parameter supported by jQuery.ajax().
index.js
- $(function() {
- $("#chartContainer").dxChart({
- dataSource: "http://www.example.com/dataservices/jsonpdata?callback=?",
- // ...
- });
- });
If you need to process data after obtaining it, implement the CustomStore. For details, see the Custom Sources topic.
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.