Hi Dustqm, Unfortunately, the Histogram chart doesn't support annotations yet. Given that it is very similar to the column chart, it might not be too difficult to add support for annotations, but we don't have plans to do that at the moment.
On Mon, Feb 24, 2014 at 6:53 AM, Dustqm Sybolls <[email protected]> wrote: > If I draw line chart there is no problem but I want to this on histogram > graph.. > > For LineChart; > > var chart = new > google.visualization.LineChart(document.querySelector('#chart_div')); > > For Histogram; > > var chart = new > google.visualization.Histogram(document.querySelector('#chart_div')); > > Other Codes; > > function drawChart () { > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Name'); > data.addColumn({type: 'string', role: 'annotation'}); > data.addColumn('number', 'Value'); > > data.addRows([ > ['Foo', null, 4], > ['Bar', null, 3], > ['Baz', null, 7], > ['Bat', null, 9], > ['Cad', 'Vertical line here', 9], > ['Qud', null, 2], > ['Piz', null, 6] > ]); > > var chart = new > google.visualization.Histogram(document.querySelector('#chart_div')); > chart.draw(data, { > height: 300, > width: 400, > annotation: { > // index here is the index of the DataTable column providing the > annotation > 1: { > style: 'line' > } > } > });} > > -- > 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/groups/opt_out. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- 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/groups/opt_out.
