This is a migrated thread and some comments may be shown as answers.

Dynamic chart with nested JSON

2 Answers 44 Views
Charts
This is a migrated thread and some comments may be shown as answers.
hzaatrah
Top achievements
Rank 1
hzaatrah asked on 16 Dec 2018, 08:57 AM

we are building dashboard, user has capability to build his own chart with dataSource from API, problem comes when user used dataSource with nested JSON data, how can i deal with nested JSON data with charts,
how can i deal with such scenario, i.e i want to give the user capability to create his own chart with dynamic dataSource , if there a code sample, i will appreciated
also, can i use HierarchicalDataSource with charts for such scenario

please check dojo link to get sample of data

Chart Nested JSON DataSource


2 Answers, 1 is accepted

Sort by
0
hzaatrah
Top achievements
Rank 1
answered on 16 Dec 2018, 09:01 AM
sorry dojo link is Dynamic Chart with nested JSON
0
Tsvetina
Telerik team
answered on 18 Dec 2018, 03:47 PM
Hi Hamzeh,

Could you explain in a bit more detail how you want to handle the multiple sets of data in the schoolList object? Do you actually want to display one Chart for each entry in schoolList? Do you have a design of the expected result with this data? In general, a single Chart can be bound to a single list of data items.
With nested data like that in the example, it would be possible to display a ListView or a Grid containing a Chart in each of its data items. Is this what you need to do?

As for the HierarchicalDataSource, the only data visualization widget that supports it is the TreeMap. The Chart can work only with the regular DataSource.

Regards,
Tsvetina
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Charts
Asked by
hzaatrah
Top achievements
Rank 1
Answers by
hzaatrah
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or