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

Issue in getting DataPoint values using ItemToolTipEventArgs

1 Answer 35 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Anil Teja
Top achievements
Rank 1
Anil Teja asked on 05 May 2010, 06:18 AM
Hello All,

In one of my Charts, i'm using PieChart to show data for Spend Analytics in all the Financial Years available(say: 2008, 2009, 2010 as Segments of PieChart). On mouseover of any year segment of PieChart, the ToolTip should show a Series Chart (LineGraph) with data corresponding to Year of PieChart Segment. The code I used is as below:

private void ChartItemToolTipOpening(ItemToolTip2D tooltip, ItemToolTipEventArgs args) 
RadChart3.DefaultView.ChartLegend.Visibility = Visibility.Collapsed; 
intYear = int.Parse(args.DataPoint.Label); 
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri("http://localhost:1251/DataSource1.aspx?source=two&year=" + args.DataPoint.Label)); 
request.BeginGetResponse(new AsyncCallback(ReadCallbackOS_Quarterly), request); 
tooltip.Content = quarterChart; 

My issues is that, for the 1st Mouseover i'm unable to get correct details of the DataPoint, on which the Mouseover is done.

Please help me ASAP, as it is an urgent bug we need to fix....

Thanks in Advance.

Thanks,
Anil Teja

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 06 May 2010, 02:39 PM
Hi Anil Teja,

Please, find attached an example, showing this. It works correctly for me, give it a try and let us know if the issue is observed.

Greetings,
Ves
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.
Tags
Chart
Asked by
Anil Teja
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or