Annotations in bar series type not appearing

60 views
Skip to first unread message

Jan

unread,
Jul 25, 2012, 2:18:08 PM7/25/12
to google-visua...@googlegroups.com
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',
    width600,
    height400,
    seriesType"bars"
  });
}
 

asgallant

unread,
Jul 25, 2012, 3:17:35 PM7/25/12
to google-visua...@googlegroups.com
Annotations are not supported for BarCharts, ColumnCharts, or bar series on ComboCharts.
Reply all
Reply to author
Forward
0 new messages