Hi all,

Is it possible to have mulitple type series defined in a combo-chart?
Beside the normal serie bars i would like to have multiple series of
lines crossing the bars.
See the altered example code from the code playground, creating 2
series (5 and 6) of type "line".
This code shows only series 6 in type line.  How can I make both
series (5 and 6) work?

function drawVisualization() {
  // Some raw data (not necessarily accurate)
  var rowData = [['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua
Guinea',
                  'Rwanda', 'Average', 'high'],
                 ['2004/05', 165, 938, 522, 998, 450, 700, 800],
                 ['2005/06', 135, 1120, 599, 1268, 288, 700, 800],
                 ['2006/07', 157, 1167, 587, 807, 397,  700, 800],
                 ['2007/08', 139, 1110, 615, 968, 215,  700, 800],
                 ['2008/09', 136, 691, 629, 1026, 366,  700, 800]];

  // Create and populate the data table.
  var data = google.visualization.arrayToDataTable(rowData);

  // Create and draw the visualization.
  var ac = new
google.visualization.ComboChart(document.getElementById('visualization'));
  ac.draw(data, {
    title : 'Monthly Coffee Production by Country',
    width: 600,
    height: 400,
    vAxis: {title: "Cups"},
    hAxis: {title: "Month"},
    seriesType: "bars",
    series: {5: {type: "line"}},
    series: {6: {type: "line"}}
  });
}​

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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