Blogs

News

Favorite Posts

ctodx

Discussions, news and rants from the CTO of Developer Express, Julian M Bucknall

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

     

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.

Published Jun 10 2009, 01:08 PM by Julian Bucknall (DevExpress)
Filed under: , ,
Technorati tags: Charting, v2009.2, XtraCharts
Bookmark and Share

Comments

 

Richard Morris (DevExpress) said:

What I am really looking forward to doing with this is building my own custom ways to "drill down" into data for the business information reports I build for my 'other' customer.

June 10, 2009 10:08 PM
 

ctodx said:

I feel like one of those newspaper boys on the streets in those old black-and-white newsreels: "Extra

June 12, 2009 5:01 PM
 

Martin Hart said:

Julian: Two of the things I would like in XtraChart hit testing is hit-test info for 3D pie charts and axis hit info for 2D bar charts.

Is this included in 9.2?

Thanks.

June 18, 2009 2:53 AM

About Julian Bucknall (DevExpress)

Julian is the Chief Technology Officer at Developer Express. You can reach him directly at julianb@devexpress.com. You can also follow him on Twitter with the ID JMBucknall.
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.