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 badges1 Answer
Reset to default 4You 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
版权声明:本文标题:javascript - How to make vertical annotation when using Google Charts DataTable roles? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742284867a2446748.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论