显示Google柱形图的值
我有一个使用Google Visualization的柱形图。
现在,为了让我看到每个值,我必须在每个图上hover以查看值。 例如, 2.82 kbps
我希望在每个图形的顶部或图形内部显示我的所有值。
我该如何展示这样的东西?
任何提示将非常感谢!
你应该看一下注释。
柱形图文档在此处有封面。
要么将注释列添加到DataTable
,要么第1列的注释应该位于索引之后,或者您可以创建视图并对源列进行stringify
。
view.setColumns([0, //The "descr column" 1, //Downlink column { calc: "stringify", sourceColumn: 1, // Create an annotation column with source column "1" type: "string", role: "annotation" }]);
注释是放置在列顶部内部的柱形图的标准。
这是我的游戏小提琴