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