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

Convert kendoChart() to MVVM?

1 Answer 75 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Jay asked on 27 Jan 2021, 08:06 PM

I am attempting to convert a donut chart created usnig the kendoChart() function to one created by binding it MVVM style. I have managed to do this (here is a dojo showing both).

However, it just feels really awkward to have to include values for each series in each data item in the observable that gets bound. Is there a better way to do this or am I doing it in the recommended manner?

1 Answer, 1 is accepted

Sort by
0
George Gindev
Telerik team
answered on 29 Jan 2021, 04:11 PM

Hello Jay,

If I understand correctly, you are looking for a way to add data to a chart without outlining every item in the observable object. Please, correct me if I am wrong.

If this is the case, the data can also be added using a DataSource item. Please check out this demo for the usage of MVVM - https://demos.telerik.com/kendo-ui/donut-charts/mvvm

Please let me know if this bit of information is helpful, or please elaborate further and I will be happy to help.

 

Regards,
George Gindev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Charts
Asked by
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
George Gindev
Telerik team
Share this question
or