How to make vertical annotation when using Google Chart DataTable roles?

I use the DataTable Google Chart Tools role function to comment on LineChart, as indicated in the link below: https://developers.google.com/chart/interactive/docs/roles

But annotations go horizontally, not vertically. For example, the annotation "Getting Started with Tables" is shown vertically, what I want, but for me it will not be vertical. enter image description here

I use the code below to add an annotated column: -

addColumn({type:'string', role:'annotation'});

Please, help.

+5
source share
1 answer

You are close! Since you have a regular annotations, just add the parameters chart: annotations: {style: 'line'}.

jsFiddle: http://jsfiddle.net/tVCv9/268/

: https://developers.google.com/chart/interactive/docs/roles?hl=fr#annotationrole

!

+3

All Articles