Is this a bug in the API, or is it me? The following chart throws an 
"xxxxxx is not a valid hex color" error. If I remove the color option, the 
chart is drawn correctly. If I remove the annotation column, the chart is 
drawn correctly. But with both the annotation column and the color option, 
the error occurs.

<html>
<head>
<script src="https://www.google.com/jsapi"; type="text/javascript"></script>
<script>
google.load('visualization', '1.0', {packages:['corechart']});
google.setOnLoadCallback(create_chart);
function create_chart() {
  data = new google.visualization.DataTable();
  data.addColumn('string', 'X');
  data.addColumn('number', 'Y');
  data.addColumn({type:'string', role:'annotation'});
  data.addRows([
    ['Monday',1,'a1'],
    ['Tuesday',2,'a2'],
    ['Wednesday',3,'a3']]);
  options = {width:400,height:200,series:[{color:'FF0A4B'}]};
  chart = new 
google.visualization.ColumnChart(document.getElementById('chart_1'));
  chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_1"></div>
</body>
</html>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to