Multi Chart Dynamically loaded causes wrong series data.

1 Answer 34 Views
Charts
Lee
Top achievements
Rank 1
Veteran
Lee asked on 12 Oct 2023, 02:05 PM

Hi,

I'm dynamically creating doughnuts and when clicking the legend it sets all the other doughnuts to the value of the last dynamically created value. Please see Dojo: https://dojo.telerik.com/AQucizad

i.e Click on Complete on "Demo-1 - chart-1" legend and in the Console it will output the values for chart two instead (if i didn't have the preventDefaults, it would also update Demo-1 as Demo-2 value)

How do i get it to reference the correct data? :(

1 Answer, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 17 Oct 2023, 12:02 PM

Hello Lee,

Could you please try to add the extend as in the example below:

  $.extend(true, {}, doughnutDefaults,....

Here you will find the modified example. 

I hope this helps.

Regards,
Neli
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Lee
Top achievements
Rank 1
Veteran
commented on 30 Oct 2023, 01:36 AM

Thank you very much, it's always something so simple :P
Tags
Charts
Asked by
Lee
Top achievements
Rank 1
Veteran
Answers by
Neli
Telerik team
Share this question
or