Multiple Instances of Google Visualizations Chart Inside Separate Divs

前端 未结 1 1209
一生所求
一生所求 2021-01-22 02:21

I\'m trying to show several Google Gauge charts in separate divs on the same screen. I also need to handle the click event on those divs (consequently the charts). I tried to do

1条回答
  •  温柔的废话
    2021-01-22 03:08

    The right way to add a listener to a Gauge is using google.visualization.events.addListener method, as shown in this example.

    You could also try your code on Google Playground.

    0 讨论(0)
提交回复
热议问题