Client-side GChart 2.4 was just released today, It supports click
events, so that might help you. Unfortunately,
there are still no client to model coordinate conversion functions.
Please consider adding a request for this feature to the GChart issue
tracker. In the meantime, looking at the setClientX, setClientY,
xToPixel, yToPixel internal methods in GChart.java might help you to
implement such conversion functions on your own (I had considered
adding a clientToModel method within the Axis class for 2.4, which is
where I think this fits into the current API).

Appreciate hearing that you found the product helpful.

John C. Gunther
http://gchart.googlecode.com

On Jan 9, 7:53 am, saurabh hirani <[email protected]> wrote:
> Hi all,
>
> Thanks for developing a great product like GChart which integrates so
> easily with GWT and works like charm. I had a query - I want to draw a
> chart where I can click on any point along the x-y axis to determine
> the point cordinates in model units. Once I get that, I can do an
> addPoint() to add the point to the curve.
>
> I tried doing that in GChart but I did not find any methods through
> which I can handle a mouse click event to get the x-y cordinates in
> model units. I can get the cordinates by implementing an EventListener
> for the chart but those cordinates are of the browser window and in
> different units. So it does not help. How can we accomplish this in
> GChart?
>
> Also, as GChart is a subclass of widget, I can use widget's methods on
> it. But as Curve, Point are classes enclosed within GChart, I cannot
> use widget methods on it. Am I right in saying this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to