Google Charts API: Show/Hide Series on Legend Click. How?
问题 I found the following code online and would like to adapt it to my existing code. Here's the code to show/hide data series on click I found: http://jsfiddle.net/asgallant/6gz2Q/ Here's my Adaptation so far: function drawChart() { var data = new google.visualization.arrayToDataTable([ ['Draw', '1997', '1998'], ['1', 1236777, 1408007], ['2', 834427, 572882], ['3', 2164890, 1614181], ['4', 1893574, 3897171], ['5', 2851881, 673906], ['6', 359504, 630853] ]); // Instantiate and draw our chart,