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

PieChart disappears on refresh

1 Answer 147 Views
Charts
This is a migrated thread and some comments may be shown as answers.
indian
Top achievements
Rank 1
indian asked on 08 May 2018, 07:53 AM

Hello,

can someone tell me why my pie chart is disappearing when I call .refresh()?

Here is a snipped illustrating my problem:

https://dojo.telerik.com/uGijuvOw/2

It works fine when I set the data as the dataSource and call dataSource.read() prior to .refresh(). But for our use case it would be more convenient to have the data embedded in the series.

Regards,
Matthias

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 09 May 2018, 06:47 AM
Hello, Matthias,

Thank you for the example.

This occurs because the refresh method expects the Chart to be bound to a dataSource.

In cases where the dataSource is not used, we can recommend the redraw method of the Chart:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/methods/redraw#redraw

https://dojo.telerik.com/uGijuvOw/3

Apologies that this is not mentioned in the documentation. We will fix it.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Charts
Asked by
indian
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or