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

Pie Slice "Explosion"

3 Answers 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
randomsolutions
Top achievements
Rank 1
randomsolutions asked on 15 Aug 2011, 09:28 PM
Is there a way to separate the individual pie slices so they aren't touching? In excel this functionality is called "Pie Explosion". Also, is there a way to turn off the "Explosion" of the selected pie slice?

3 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 17 Aug 2011, 12:02 PM
Hello Daniel Myers,

Please check this example and the following help topic. When you select a pie slice through your mouse or the exposed interactivity API, the slice is exploded.

Kind regards,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
randomsolutions
Top achievements
Rank 1
answered on 17 Aug 2011, 04:50 PM
Thanks for the response. That didn't really answer my question though. I'd like to have ALL the pie slices exploded from the beginning (not just when they have been selected). In addition to this, I'd like to NOT have the explosion effect take place upon selection of an individual slice since the pie slices will already be in an "exploded" state. I can't turn off the pie slice interactivity because I still need to "select" a slice.

Hope that makes sense.

Thanks!
0
Peshito
Telerik team
answered on 22 Aug 2011, 03:15 PM
Hello,

In order to have all Pie sleices exploded from the beginning you should define the interactivity settings like this:
pieSeries.SeriesDefinition.InteractivitySettings.SelectionMode = ChartSelectionMode.Multiple;
pieSeries.SeriesDefinition.InteractivitySettings.SelectionScope = InteractivityScope.Item;
then, create new event handler on LayoutUpdated:
pieChart.LayoutUpdated += new EventHandler(pieChart_LayoutUpdated);
and select the series, so before the chart loads, all items will be selected and your chart will be exploded:
void pieChart_LayoutUpdated(object sender, EventArgs e)
{
 pieChart.DefaultView.ChartArea.SelectSeries();
}
Greetings,
Peshito
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Chart
Asked by
randomsolutions
Top achievements
Rank 1
Answers by
Sia
Telerik team
randomsolutions
Top achievements
Rank 1
Peshito
Telerik team
Share this question
or