Hi there,

This might seem like a silly question but I'm trying to create a simple 
stacked bar chart (exactly the same as the one on the google charts 
"stacked bar charts" example), however, the option isStacked: true doesn't 
seem to do anything:

<html>
  <head>
    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">
      google.load("visualization", "1.1", {packages:["bar"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
var data = google.visualization.arrayToDataTable([
  ['Genre', 'Fantasy & Sci Fi', 'Romance', 'Mystery/Crime', 'General',
  'Western', 'Literature', { role: 'annotation' } ],
  ['2010', 10, 24, 20, 32, 18, 5, ''],
  ['2020', 16, 22, 23, 30, 16, 9, ''],
  ['2030', 28, 19, 29, 30, 12, 13, '']
]);

      var options = {
        width: 600,
        height: 400,
        legend: { position: 'top', maxLines: 3 },
        bar: { groupWidth: '75%' },
        isStacked: true
      };

      var chart = new 
google.charts.Bar(document.getElementById('barchart_stacked'));

      chart.draw(data, options);
    }
    </script>
  </head>
  <body>
    <div id="barchart_stacked" style="width: 900px; height: 500px;"></div>
  </body>
</html>

Thanks in advance for any assistance

-- 
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 http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/7197aa56-7f66-4667-9f8b-c44e1897be00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [visualization-api] isSta... Nick Robinson

Reply via email to