Annotations are not supported for BarCharts, ColumnCharts, or bar series on
ComboCharts.
On Wednesday, July 25, 2012 2:18:08 PM UTC-4, Jan wrote:
>
> If you look at the code below and switch the seriesType value from bars
> and lines, you'll notice that the annotations appear when it's a line, but
> not when it's a bar.
>
>
>
>> function drawVisualization() {
>>
>> var data = new google.visualization.DataTable();
>>
>> data.addColumn('string', 'Quarter'); // Implicit domain column.
>> data.addColumn('number', 'Sales'); // Implicit data column.
>> data.addColumn({type:'string', role:'annotation'});
>> data.addRows([
>> ['q1', 165, 'A'],
>> ['q2', 135, 'B'],
>> ['q3', 157, 'C'],
>> ['q4', 139, 'D'],
>> ]);
>> // 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,
>> seriesType: "bars"
>> });
>> }
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/cRtPz_Nz2LUJ.
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.