We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

click on datapoint

Thread ID:

Created:

Updated:

Platform:

Replies:

98218 Feb 15,2011 01:44 AM Feb 20,2011 11:42 PM Silverlight 3
loading
Tags: Chart
amar patil
Asked On February 15, 2011 01:44 AM

Hi,
I am using silverlight syncfusion chart controls.

I have a specific scenario where I need to handle click event on a datapoint(column bar).

In the click event I need the datacontext(the object that bar is bound to) of the bar.

I have been through the documentation and found that I could get the DataPoint's x and y value using currSegment.

But I need to access other properties of the object to which this bar is bound to.

For Example:

"Mychart" is name of Silverlight Syncfusion chart controls, here I bind state and population properties to a Mychart Control and ListData is object of list

C# Code:

MyChart.Areas[0].Series[0].BindingPathX = "State";

MyChart.Areas[0].Series[0].BindingPathsY = new List {"Population"};

MyChart.Areas[0].PrimaryAxis.LabelsSource = ListData;

MyChart.Areas[0].PrimaryAxis.ContentPath = "State";

MyChart.Areas[0].PrimaryAxis.PositionPath = "State";

Xaml code :








In Xaml Code I have taken MouseLeftButtonDownEvent ,Actually I want access another properties of my Object .when I am going to Click on bar column of state , I need to get its another information(Capital , City : this are another properties of the object ).






Saravanan A [Syncfusion]
Replied On February 16, 2011 08:29 AM

Hi Amar,

Thanks for choosing Syncfusion products.

Based on your requirement we have created a simple sample, in which all the properties of highlighted data points will be accessed and displayed in tooltip. Please download the sample from below location.

Sample:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Datapoint_Property1317613809.zip


Please let us know if you have any queries.

Regards,
Saravanan.



amar patil
Replied On February 17, 2011 08:27 AM

thank's a lot !!


Krishna Kumar [Syncfusion]
Replied On February 20, 2011 11:42 PM

Hi Amar,

Thanks for choosing Syncfusion products.

Thanks for your reply. Please do not hesitate to post new forums if you ever need further assistance from us.

Regards,
Krishnakumar.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;