It depends on how you have your data set up.  You can assign colors to (data 
table) columns, so if you set it up like this:

function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Month');
data.addColumn('number', '2010');
data.addColumn('number', '2011');

data.addRow();
data.setValue(0, 0, "January");
data.setValue(0, 1, <data for Jan 2010>);
data.setValue(0, 2, <data for Jan 2011>);
etc...
var options = {colors: ['#FF0000', '#0000FF']};
var chart = new 
google.visualization.ColumnChart(document.getElementById('chartDiv'));
chart.draw(data, options);
}

you get a chart of data for years grouped by months, with 2010 being red and 
2011 being blue.

-- 
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