How make a "check box" for select curves to be plotted
60 views
Skip to first unread message
Alan C.
unread,
Jan 10, 2012, 7:16:37 AM1/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Hi.
I'm developing a work that consists in plotting multiple curves in one
graph. I wonder if you can create a "check box" (or a toolbar) next to
the graph, to select the curve to be plotted. (excuse me for my
english...)
Thanks.
asgallant
unread,
Jan 10, 2012, 10:39:41 AM1/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
Yes, you can do this. Create a DataTable with the full data set, then use the checkboxes to select columns in the DataTable. Create a DataView based on the DataTable and set the columns selected by the checkboxes, and draw your chart using the DataView instead of the DataTable. See this as an example:
http://jsfiddle.net/gTxkN/1/
Alan C.
unread,
Jan 11, 2012, 7:32:11 AM1/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Thanks A Gallant..
But this checkboxes can be implemented in JAVA? because in the example
the checkboxes are in HTML...
asgallant
unread,
Jan 11, 2012, 9:44:47 AM1/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
I'm not a java developer, so I'm not certain how to code it, but ultimately all your server-side java code has to produce HTML elements for the clients' browsers to interpret.