admin管理员组

文章数量:1333201

I am using the Google Chart Tools DataTable Roles feature to annotate LineChart as mentioned in the below link:-

But the annotations are ing Horizontal and not vertical. For example "Started Using Spreadsheets" annotation below is vertical which is what I want but for me its not ing vertical.

I am using the below code to add annotated column:-

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

Please help.

I am using the Google Chart Tools DataTable Roles feature to annotate LineChart as mentioned in the below link:- https://developers.google./chart/interactive/docs/roles

But the annotations are ing Horizontal and not vertical. For example "Started Using Spreadsheets" annotation below is vertical which is what I want but for me its not ing vertical.

I am using the below code to add annotated column:-

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

Please help.

Share Improve this question asked Jun 6, 2012 at 11:49 AnuroopAnuroop 1,0025 gold badges14 silver badges26 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

You are close! Since you have regular annotations ready, just add to your chart options: annotations: {style: 'line'}.

jsFiddle example: http://jsfiddle/tVCv9/268/

Read the docs on annotations: https://developers.google./chart/interactive/docs/roles?hl=fr#annotationrole

Good luck!

本文标签: javascriptHow to make vertical annotation when using Google Charts DataTable rolesStack Overflow