Skip to content
Advertisement

Google chart line with zoom and select event

I built a line chart that fire an alert when the points are clicked, that works fine.

The problem is when I add the ‘explorer’ option (commented line, below) to enable the scroll zoom on the chart: the select event doesn’t fire and the click doesn’t work anymore (fiddle)…

JavaScript

Please check this fiddle

Advertisement

Answer

Put the draw method after register the select event.

JavaScript

I updated your fiddle

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement