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.

Get seires data point on mouse hover

Thread ID:

Created:

Updated:

Platform:

Replies:

80369 Apr 1,2009 03:52 AM Apr 6,2009 09:18 AM WPF 7
loading
Tags: Chart
Saad
Asked On April 1, 2009 03:52 AM

Hi,

I am trying to get the value from a series when the mouse pointer moves over certain area. I want to be able to show the current values as the pointer moves over different parts of the series.

I tried the examples and some posts in the forum but none seems to solve my problem.

Regards,
Saad


Pavithra J [Syncfusion]
Replied On April 1, 2009 09:36 AM

Hi Saad,

Thanks for your interest in Syncfusion products.

Please make use of the sample from the below given link in which when you touches the series with the mouse pointer a tooltip will be opened which shows the BindingPathX and the BindingPathsY value of the series.

Line and Spline Tooltip sample

Please let us know if you have further queries and also if require a sample for finding each and every point on the series.

Regards,
Pavithra.J


Dale Haessel
Replied On April 1, 2009 01:52 PM

That is the data point, but I want the interpolated value on the line (aka, I hover over a point between lines, I want the interpolated value).

>Hi Saad,

Thanks for your interest in Syncfusion products.

Please make use of the sample from the below given link in which when you touches the series with the mouse pointer a tooltip will be opened which shows the BindingPathX and the BindingPathsY value of the series.

Line and Spline Tooltip sample

Please let us know if you have further queries and also if require a sample for finding each and every point on the series.

Regards,
Pavithra.J




Saad
Replied On April 2, 2009 03:22 AM

Yes, I was looking for the same. I want the X and Y values of the series on the point the mouse is hovered.

Seems like this is not possible.

/Saad


Saad
Replied On April 2, 2009 03:24 AM

Just to add, I am using a StackingArea chart.


Pavithra J [Syncfusion]
Replied On April 2, 2009 06:15 AM

Hi Saad,

Thanks for your interest in Syncfusion products.

As far as your requirement is on showing each and every point on a series of a StackingArea Chart, we have created a sample on it. You can download the sample from the below given link,

Series Hover Point

Here, we have used annotations to display the mouse hover points.

The below given lines inside the Series.MouseMove will help to get the exact mouse-hover point.

Point pt = e.MouseEventArgs.GetPosition(chart1.Areas[0]);
double x = Math.Truncate(chart1.Areas[0].PointToValue(chart1.Areas[0].PrimaryAxis, pt));
double y = Math.Truncate(chart1.Areas[0].PointToValue(chart1.Areas[0].SecondaryAxis, pt));

Please let us know if you have further queries.

Regards,
Pavithra.J


Saad
Replied On April 3, 2009 11:25 AM

Thank you very much for the prompt reply but this still doesn't solve my problem completely.

Please consider the following:

1. The X-Axis on my chart has DateTime values so I would like the annotations to display date/time.

2. When there are multiple series stacked on top of each other, displaying the actual value of each series is more meaningful rather then displaying the accumulated value. What I need here is the actual value of a series under the mouse pointer.

Thanks,
Saad


Pavithra J [Syncfusion]
Replied On April 6, 2009 09:18 AM

Hi Saad,

Thanks for your interest in Syncfusion products.

Please make use of the attached sample for reference in which we used two StackingArea Chart and make use of annotations to show the Series Data while performing Mouse Hover action.

StackingArea Sample with MouseHover Points

Please let us know if you have further queries.

Regards,
Pavithra.J


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.

;