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

Missing label text from kendo donut chart when showing on kendo Window in Google chrome

2 Answers 24 Views
Window
This is a migrated thread and some comments may be shown as answers.
FSA
Top achievements
Rank 1
FSA asked on 18 Nov 2013, 01:43 PM
In one of our requirement, we are showing kendo donut chart on kendo window. Kendo donut chart is rendering properly but its label are not getting placed at their correct coordinates( x, y) position.
When we investigated further, we found out that label tag(<text>) is forming perfectly but it is not getting placed at its desired position. 

Is this issue occuring as we are showing kendo donut chart on kendo Window? 
We are getting this issue on Google Chrome only.

2 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 19 Nov 2013, 01:45 PM
Hi Rahul,

I tried to reproduce the issue but to no avail - the chart is rendered within the window as expected. For your convenience here is my test jsBin example - could you please edit it and show me your current implementation? This way I would be able to check what exactly is going wrong and provide concrete recommendations. Thank you in advance for your time and cooperation.

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
FSA
Top achievements
Rank 1
answered on 21 Nov 2013, 09:18 AM
Hi Iliana,

Thanks for such a quick reply. But, my problem was somewhat different. I have resolved the issue.

In my case, it was creating the kendo donut chart first and then after, it was creating the Kendo Window
popup. Because of this, labels for legends and series were not able to get coordinates (x,y) position on Kendo Window at the time of Chart creation.

Remedy:
We are keeping setTimeout() of 500 milliseconds. So, it will wait for half a second before creating the kendo chart. By that time, kendo Window DOM element is getting its desired dimension. 

Code:
setTimeout(function(){
  updateChart();
}, 500);
Tags
Window
Asked by
FSA
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
FSA
Top achievements
Rank 1
Share this question
or