Sneak peek: Hit testing in XtraCharts v2009 vol 2 (WinForms charts)

ctodx
10 June 2009

One of a series of posts on the new functionality that'll appear in DXperience v2009 vol 2. This is all pre-beta stuff, it'll probably be something like the end of the month before the beta is ready.

In this post, we'll look at a new feature for charting in Windows Forms: hit testing. This is the ability to ascertain what's under the mouse cursor without having to do something like click, so it's a mouse over or hover type event. With XtraCharts, we've gone the whole hog: you can literally hover over any element in the chart and your event handler will be called with information about what that element is. In the demo for this feature, we merely float a tooltip with the requisite information:

Hit testing in XtraCharts

We fire off events (and the corresponding data) for the diagram, the panes, the series, the data points, the axes, the titles, the labels, the legends, and so on.

Using this hit testing event, you can now more easily show additional information about your data points on the chart, for example, and reduce the "noise" in the chart itself by removing the series labels.

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.