本文介绍了如何在使用Google Charts DataTable角色时进行垂直注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Chart Tools DataTable Roles功能来注释LineChart,如下面的链接所述: -



阅读有关注释的文档:



祝你好运!


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!

这篇关于如何在使用Google Charts DataTable角色时进行垂直注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 03:16