Nathan, Though Client-side GChart doesn't have direct event support, it does support Widget-based annotations, which can be used to do the same kinds of things.
For example, by adding a transparent Image widget as an annotation that is centered on a particular data point (via the setAnnotationWidget and setAnnotationLocation(AnnotationLocation.CENTER) methods) you can capture user events targeted to that data point. The bar chart on the live demo (accessible from the GChart home page), which uses buttons for the annotations placed above each bar (try clicking on them) illustrates the basic technique. Since any GWT widget can be used as a point's annotation, you can exploit the event support built into the standard set of GWT widgets to make a GChart respond to user events in lots of interesting ways. John C. Gunther http://gchart.googlecode.com On Sep 12, 1:04 pm, Nathan <[EMAIL PROTECTED]> wrote: > I've been investigating the best way to do client-side graphing inGWT. The > features that I am looking for that don't seem to be widely > provided are the ability for users to select portions of the graph, > and to receive events for mouse clicks on any part of the graph. I > also can't use a solution that uses flash (IE support however, is not > important). > > The solution I'm currently considering is to write a bunch of > JavaScript Overlay classes for use with flot (http://code.google.com/p/flot/ > ). > > As far as I can tell,gchart(http://code.google.com/p/gchart/) is > the only nativeGWTgraphing solution, but has no events support. I > also looked into the dojox charting library, but flot seems to have > better events support (particularly the ability to click on any point > in the graph and get an event with the graph coordinates for the point > clicked). > > Are there any projects out there that I've missed? I'd really like a > nativeGWTsolution, if possible. > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
