Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion How to add points in chart by clicking on different areas of it?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
saurabh hirani  
View profile  
 More options Jan 9, 7:53 am
From: saurabh hirani <saurabh.hir...@gmail.com>
Date: Fri, 9 Jan 2009 04:53:42 -0800 (PST)
Local: Fri, Jan 9 2009 7:53 am
Subject: How to add points in chart by clicking on different areas of it?
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?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google