This problem (broken explorer mode) is a bug that came up in the last
release. There is no workaround other than to recreate the chart (new
ColumnChart). You can see this by adding, before your chart.draw() call in
showHideSeries:
// Must recreate the chart, to reenable the explorer mode.
chart = new
google.visualization.ColumnChart(document.getElementById('my_chart'));
google.visualization.events.addListener(chart, 'select',
showHideSeries);
You can see this here: https://jsfiddle.net/dlaliberte/7accj9sm/5/
On Wed, Aug 2, 2017 at 3:23 PM, vlad <[email protected]> wrote:
> I have made a sample chart here (https://jsfiddle.net/vzelenko/7accj9sm/)
> that indicates the problem I am facing.
>
> The chart offers a script that hides/shows data series by clicking on the
> legend. It also supports pan/zoom functionality on hAxis. After the click
> to hide data is made, the pan/zoom resets the view and no longer works.
> Hide/show still works (more or less.)
>
> Any help with how to restore pan/zoom would be appreciated.
>
> Thanks,
>
> - vlad
>
> --
> 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 [email protected].
> To post to this group, send email to google-visualization-api@
> googlegroups.com.
> Visit this group at https://groups.google.com/
> group/google-visualization-api.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-visualization-api/2987351f-e1f4-4663-b15e-
> f37e49a2114d%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/2987351f-e1f4-4663-b15e-f37e49a2114d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]> 5CC, Cambridge MA
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO2KU3PD2e1c4woFMEWbDVCW16vncpgiMaSuafur2wHFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.