You need to set the 'strictFirstColumnType' option to true to make this 
work:

function drawChart() {
  var data = new google.visualization.DataTable();
  data.addColumn('number', 'x');
  data.addColumn('number', 'Cats');
  data.addRow([1, 1]);
  data.addRow([2, 1]);
  data.addRow([2, 4]);
  data.addRow([3, 4]);
  data.addRow([3, 4]);
  data.addRow([4, 5]);
  data.addRow([4, 8]);
  data.addRow([5, 8]);
  data.addRow([5, 7]);
  data.addRow([6, 7]);
  data.addRow([6, 7]);
  
  var chart = new google.visualization.AreaChart(document.getElementById(
'chart_div'));
  chart.draw(data, {
      strictFirstColumnType: true
  });
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/yA-gt2NfGH4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to