Can a Kendo Ui Line Chart accept hierachial data?

1 Answer 37 Views
Charts Data Source
Naima
Top achievements
Rank 1
Iron
Naima asked on 13 Sep 2024, 07:44 PM

Currently I am trying to create a kendo UI Line chart based on a nested data model that looks like

{

key: "Kelly"

DateValue: [

{Date: 08/07/2020, Grade: 100}

{Date: 09/10/2020, Grade: 82}

] is this possible to create where for each date there is a data point and for each object with a distinct key there is a distinct line that represents that key? 

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 18 Sep 2024, 10:05 AM

Hi Naima,

The Kendo UI Chart is designed to work with flat data. You can use schema.parse function to modify the data before binding it to the Chart:

https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/schema#schemaparse

Regards,
Nikolay
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Charts Data Source
Asked by
Naima
Top achievements
Rank 1
Iron
Answers by
Nikolay
Telerik team
Share this question
or