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

Donut series/segment click and explode

3 Answers 256 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sreenath
Top achievements
Rank 1
Sreenath asked on 06 Mar 2013, 07:39 AM
Hi Kendo,

When the first time rendering the donut chart if the series item has property "explode : true" then the series / segment displaying as separate slice. Is it possible to do this when clicking on particular series / segment?, and same should be happen when series associated legend item is clicked. Is there any option regarding that. Please let me know if i need to do any modifications to get that.

thank you

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 07 Mar 2013, 06:56 PM
Hi Sreenath,

I am afraid what you would like to achieve is not supported out of the box in Kendo UI Chart and its implementation requires additional code. As a possible approach I can suggest the following:
For your convenience here is a simple jsBin example which demonstrates the suggested approach in action.
 
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sreenath
Top achievements
Rank 1
answered on 08 Mar 2013, 07:48 AM
Hi Iliana Nikolova,

I have already done with that step and it has an issue, like : if one segment is already exploded then if you click on another segment both segments are getting exploded. Only one should be exploded at a time.



Is there any way to attach click events to legend items?

"or"

Is it possible to add divs inside legend items? I tried by using divs for legend items then it is not displaying in proper ways of legend. I want legend should be look like grid with two are more columns.

PFA

thank you
0
Iliana Dyankova
Telerik team
answered on 11 Mar 2013, 05:13 PM
Hi Sreenath,

As I said in my previous post, your scenario with exploding segment when clicking on a particular slice is not supported out-of-the-box in Kendo UI Chart and in order to achieve it you need a custom implementation (my jsBin example demonstrates a possible approach). Regarding your new questions:
  • I am afraid attaching a click handler to the legend is not supported at present. We realize this is limitation of the framework and will do our best to address it as soon as possible;
  • Unfortunately the second request is also not supported by Kendo UI Chart. As a possible workaround you can hide the default legend and create custom <div> element which to configure to look like as a legend. 
 
Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Sreenath
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Sreenath
Top achievements
Rank 1
Share this question
or