Try putting nulls or leaving the data out altogether where zero and 
negative values are and setting interpolateNulls to true.

You should end up with something looking like this:

var data = google.visualization.arrayToDataTable([
    ['Year', 'Massachusetts', 'National'],
          ['2010',  88,  76],
          ['2011',  null,  82],
          ['2012',  96,  86],
          ['2013',  100,  91],
          ['2014',  null,  94],
          ['2015',  null,  98],
          ['2016',  100,  99],
          ['2017',  124,  100],
          ['2018',  125,  102]]);

  var options = { interpolateNulls: true };

or 

var data = google.visualization.arrayToDataTable([
    ['Year', 'Massachusetts', 'National'],
          ['2010',  88,  76],
          ['2011',  ,  82],
          ['2012',  96,  86],
          ['2013',  100,  91],
          ['2014',  ,  94],
          ['2015',  ,  98],
          ['2016',  100,  99],
          ['2017',  124,  100],
          ['2018',  125,  102]]);

  var options = { interpolateNulls: true };

Without setting interpolateNulls to true the graph will draw but you will 
have gaps in the line.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/5ca2c2eb-0708-4ec4-a256-db525b533f0e%40googlegroups.com.

Reply via email to