CurveType and combochart and area

302 views
Skip to first unread message

NA

unread,
Jun 15, 2011, 12:58:30 PM6/15/11
to Google Visualization API
Hi,

The documentation for the combochart indicates that curve type is
supported for line and area charts. But it doesn't seem to work for
area charts. Code snippet is below. Changing to a line works,
though.

Can you both update the doc and also add this in as a feature request?

thanks,

// ====================================

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

// 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: "area",curveType:"function"}}
});
}

d d

unread,
Jun 15, 2011, 4:55:30 PM6/15/11
to google-visua...@googlegroups.com
hi

2011/6/15 NA <nabee...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


visigoth

unread,
Jun 16, 2011, 9:11:33 AM6/16/11
to google-visua...@googlegroups.com
Your are correct, the documentation is wrong. curveType is only supported for line, either as a standalone or as part of a combo chart.
We will fix the documentation. Thanks for the notice.
Reply all
Reply to author
Forward
0 new messages