Google Line Chart Legend Click Events

37 views
Skip to first unread message

Ananya Ojha

unread,
Aug 18, 2014, 6:56:23 AM8/18/14
to google-visua...@googlegroups.com
Please tell me how to open a popup on click of legend in google chart..


Thanks

Sergey Grabkovsky

unread,
Aug 18, 2014, 10:33:33 AM8/18/14
to google-visua...@googlegroups.com
This question is a little bit difficult to answer for all cases all of the time, as series are interpreted differently for different charts. For a PieChart, a single series is a row, but for a LineChart, a series is a column. If you don't care which entry was clicked, or can figure out the series from its index, you can use the 'click' event. Here's an example of this: http://jsfiddle.net/znbg09ek/
On Mon Aug 18 2014 at 6:56:25 AM Ananya Ojha <ojhaana...@gmail.com> wrote:
Please tell me how to open a popup on click of legend in google chart..


Thanks

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Ananya

unread,
Aug 18, 2014, 1:04:44 PM8/18/14
to google-visua...@googlegroups.com
CAn you tell me how to open bootstrap popup or any other popup on click of legend?


--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/SKEDRd6IO_w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
Warm Regards...
      Ananya Ojha

Sergey Grabkovsky

unread,
Aug 18, 2014, 1:32:00 PM8/18/14
to google-visua...@googlegroups.com
I haven't really used bootstrap, and it's a bit outside of the scope of this mailing list. The example currently shows a browser alert on line 43, so you could change that line to do whatever is relevant to you.
Reply all
Reply to author
Forward
0 new messages