Jingying Wu
Top achievements
Rank 1
Jingying Wu
asked on 16 Jul 2009, 07:03 AM
Is there a way to hook a mouse click event to a portion of the pie?
We would like to see the pie, click on a slice of the pie and click to a detailed report of the pie.
ie. the pie shows 20%, and we can click on the slice to see the details of the 20%.
thanks in advance
We would like to see the pie, click on a slice of the pie and click to a detailed report of the pie.
ie. the pie shows 20%, and we can click on the slice to see the details of the 20%.
thanks in advance
14 Answers, 1 is accepted
0
Hi Jingying Wu,
You can handle the ChartItemClick event exposed by the ChartArea object (RadChart.DefaultView.ChartArea) and process the click action as appropriate for each respective slice.
Sincerely yours,
Manuel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can handle the ChartItemClick event exposed by the ChartArea object (RadChart.DefaultView.ChartArea) and process the click action as appropriate for each respective slice.
Sincerely yours,
Manuel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jingying Wu
Top achievements
Rank 1
answered on 16 Jul 2009, 10:38 PM
How do i find out which slice of the pie was click?
The ItemClick event seems to be for the entire pie.
My pie has say 20% Pass, 40% Fail,40% unknown.
We want to be able to click on Pass, and show pass results in the grid.
I need to know the click happen on which slice.
The ItemClick event seems to be for the entire pie.
My pie has say 20% Pass, 40% Fail,40% unknown.
We want to be able to click on Pass, and show pass results in the grid.
I need to know the click happen on which slice.
0
Hi Jingying Wu,
You can extract the necessary information like this:
Note that if you are using RadControls version prior to Q1 2009 SP1, you will need to upgrade to the latest version of the controls due to a resolved issue with wrong ItemIndex in ChartItemClickEventArgs for radial series.
Kind regards,
Manuel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can extract the necessary information like this:
public Page() |
{ |
InitializeComponent(); |
RadChart1.DefaultSeriesDefinition = new PieSeriesDefinition(); |
RadChart1.DefaultView.ChartArea.ChartItemClick += new EventHandler<ChartItemClickEventArgs>(ChartArea_ChartItemClick); |
} |
void ChartArea_ChartItemClick(object sender, ChartItemClickEventArgs e) |
{ |
// extract the information for each respective slice from: |
// e.DataPoint -- the DataPoint associated with the clicked slice |
// e.ItemIndex & e.DataSeries -- the index of the clikced slice in the respective DataSeries |
// ... |
} |
Note that if you are using RadControls version prior to Q1 2009 SP1, you will need to upgrade to the latest version of the controls due to a resolved issue with wrong ItemIndex in ChartItemClickEventArgs for radial series.
Kind regards,
Manuel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zeeshan
Top achievements
Rank 1
answered on 23 May 2011, 11:07 AM
<telerik:RadChart x:Name="Via3DPieChart" Background="{x:Null}" >
<telerik:RadChart.DefaultSeriesDefinition>
<telerik:Pie3DSeriesDefinition/>
</telerik:RadChart.DefaultSeriesDefinition>
<telerik:RadChart.DefaultView>
<telerik:ChartDefaultView>
<telerik:ChartDefaultView.ChartArea>
<telerik:ChartArea
ToolTipService.ToolTip="{Binding OptionText}"
LegendName="chartLegend" ItemClick="ChartArea_ItemClick"/>
</telerik:ChartDefaultView.ChartArea>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
</telerik:RadChart>
void ChartArea_ItemClick(object sender, ChartItemClickEventArgs e)
{
MessageBox.Show("HELLO");
} Hi , This event is not firing.Can you tell me the reason
0
Hi Mohd,
Interactivity effects (click, selection, hover) are supported for 2D series only so if you need to handle the ItemClick event for the pie slice in your scenario, you will need to use the 2D pie series instead of Pie3D.
Greetings,
Giuseppe
the Telerik team
Interactivity effects (click, selection, hover) are supported for 2D series only so if you need to handle the ItemClick event for the pie slice in your scenario, you will need to use the 2D pie series instead of Pie3D.
Greetings,
Giuseppe
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Nidhi
Top achievements
Rank 1
answered on 07 Jun 2011, 01:01 PM
Hi
I am also facing the same issue. Instead of using chart area item click event. I want the use commands bcoz using MVVM. I found from Jan 2011. Command property is introduced. But didn't find any sample code for that...
Can you please provide us a sample code.
Thanks,
Nidhi
I am also facing the same issue. Instead of using chart area item click event. I want the use commands bcoz using MVVM. I found from Jan 2011. Command property is introduced. But didn't find any sample code for that...
Can you please provide us a sample code.
Thanks,
Nidhi
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 08 Jun 2011, 12:06 PM
Hello Nidhi,
You can review the code from the Chart first look example here http://demos.telerik.com/silverlight/#Chart/FirstLook -- the bar chart uses commanding.
Greetings,
Bart.
You can review the code from the Chart first look example here http://demos.telerik.com/silverlight/#Chart/FirstLook -- the bar chart uses commanding.
Greetings,
Bart.
0
Joshua
Top achievements
Rank 1
answered on 09 Sep 2014, 05:13 PM
Hey guys,
Just wanted to find out if the click event on a slice of Pie portion in 3D chart (silverlight) working ????
Please let me know
Thanks.
Just wanted to find out if the click event on a slice of Pie portion in 3D chart (silverlight) working ????
Please let me know
Thanks.
0
Hello,
Interactivity effects (click, selection, hover) are supported for 2D series only. In general we have found that the 3D effect does not bring additional value to data visualization and does not help to perceive the values any better. I suggest you do not use the old RadChart and do not use 3D series, but use the new ChartView control, which is much faster, very easy to set up and is very flexible.
Regards,
Petar Marchev
Telerik
Interactivity effects (click, selection, hover) are supported for 2D series only. In general we have found that the 3D effect does not bring additional value to data visualization and does not help to perceive the values any better. I suggest you do not use the old RadChart and do not use 3D series, but use the new ChartView control, which is much faster, very easy to set up and is very flexible.
Regards,
Petar Marchev
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
0
Joshua
Top achievements
Rank 1
answered on 13 Nov 2014, 03:49 PM
Excellent Answer !!!!!!!!
So what you are saying is World will go forward and you guys will be stuck in 1945...Come on guys you need to come visit future...
Hopefully your new Boss "Progress software" does a better job.
Thanks for your help.
So what you are saying is World will go forward and you guys will be stuck in 1945...Come on guys you need to come visit future...
Hopefully your new Boss "Progress software" does a better job.
Thanks for your help.
0
Joshua
Top achievements
Rank 1
answered on 13 Nov 2014, 03:51 PM
Excellent Answer !!!!!!!!
So what you are saying is World will go forward and you guys will be stuck in 1945...Come on guys you need to come visit future...
Thanks for your help.
So what you are saying is World will go forward and you guys will be stuck in 1945...Come on guys you need to come visit future...
Thanks for your help.
0
Hello Joshua,
I am really sorry to hear about your frustration. I hope I can shed some light on the situation and thus ensure you that we are actually going forward.
A while ago we took a step back and re-evaluated the needs of our customers and how our charting solution (RadChart) measured up those needs. The decision that we came upon was not an easy one - most customers would have us work on the performance and flexibility of RadChart and the control had its limitations. Nevertheless, we stood by our decision and the result was a new control - RadChartView. You can find a detailed comparison between the two controls in our online documentation. And indeed, we put the focus of this new control on performance, flexibility and ease of use and now, almost 3 years later, we are still focusing on these three points when developing RadChartView.
As our new charting solution developed and reached a certain set of features, we decided the put all our development efforts in RadChartView and plan only critical bugs for RadChart. As a result, we have not released new features for RadChart for some time now.
Now, regarding RadChartView and its missing support for 3D series - to be completely honest with you, 3D series support is not one of our major priorities, when developing our new charting solution. Its current priority is low compared to other feature requests for the control. The reason for this is that it brings no value into the data visualization element, it is not easier to compare values and to perceive data. I understand that some of our customers like 3D visualization better, but our current focus is on the missing data visualization features of RadChartView.
Regards,
Tsvetie
Telerik
I am really sorry to hear about your frustration. I hope I can shed some light on the situation and thus ensure you that we are actually going forward.
A while ago we took a step back and re-evaluated the needs of our customers and how our charting solution (RadChart) measured up those needs. The decision that we came upon was not an easy one - most customers would have us work on the performance and flexibility of RadChart and the control had its limitations. Nevertheless, we stood by our decision and the result was a new control - RadChartView. You can find a detailed comparison between the two controls in our online documentation. And indeed, we put the focus of this new control on performance, flexibility and ease of use and now, almost 3 years later, we are still focusing on these three points when developing RadChartView.
As our new charting solution developed and reached a certain set of features, we decided the put all our development efforts in RadChartView and plan only critical bugs for RadChart. As a result, we have not released new features for RadChart for some time now.
Now, regarding RadChartView and its missing support for 3D series - to be completely honest with you, 3D series support is not one of our major priorities, when developing our new charting solution. Its current priority is low compared to other feature requests for the control. The reason for this is that it brings no value into the data visualization element, it is not easier to compare values and to perceive data. I understand that some of our customers like 3D visualization better, but our current focus is on the missing data visualization features of RadChartView.
Regards,
Tsvetie
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Mehdi
Top achievements
Rank 1
answered on 27 Sep 2017, 09:46 AM
Hello Petar,
About Interactivity effects (Click event on Point of a Surface 3D) i saw in an old post (2014) that events are only supported for 2D series.
Is it now available for PointSeries 3D. I would need to figure out how to set an event (like MouseDoubleClick) on each points of PointSeries 3D of SurFaceSeries 3D.
Thank you
0
Hello Mehdi,
The RadChartView3D doesn't support click events on its 3D visual elements. However, you can use the WPF native 3D hit testing API to get the clicked element. I prepared a small example showing how to do this. I hope this helps.
Regards,
Martin Ivanov
Progress Telerik
The RadChartView3D doesn't support click events on its 3D visual elements. However, you can use the WPF native 3D hit testing API to get the clicked element. I prepared a small example showing how to do this. I hope this helps.
Regards,
Martin Ivanov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.