I am using the Google Chart Tools DataTable Roles feature to annotate LineChart as mentioned in the below link:- https://developers.google.com/chart/interactive/docs/roles
But the annotations are coming Horizontal and not vertical. For example "Started Using Spreadsheets" annotation below is vertical which is what I want but for me its not coming vertical.
I am using the below code to add annotated column:-
addColumn({type:'string', role:'annotation'});
Please help.
You are close!
Since you have regular annotations ready, just add to your chart options:
annotations: {style: 'line'}
.
jsFiddle example: http://jsfiddle.net/tVCv9/268/
Read the docs on annotations: https://developers.google.com/chart/interactive/docs/roles?hl=fr#annotationrole
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With