Welcome Guest. Sign in or Signup

2 Comments

How to hide/show lines in line chart?

Asked by: 14877 views 6.Google-Charts

0
0

This sample illustrates how to hide/show lines in line chart using google-chart API. You can hide/show the lines By clicking on the sales and expenses legends which is right side to the chart.

Please open the Results page of this fiddle below to see the output.

2 Comments



  1. Or on Dec 03, 2013 Reply

    This code didn’t run on my browser.
    After tweaking it around I’ve found out that the condition for whether the this is a column or not is wrong!

    please correct it to:

    if (sel[0].row === null) {
    ….



  2. melowise on Apr 05, 2014 Reply

    Thanks, worked like a charm.


Comments on Question