Google Charts API:始终在图中显示数据点值 [英] Google Charts API: Always show the Data Point Values in Graph
本文介绍了Google Charts API:始终在图中显示数据点值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以始终在线条/条形图中显示数据点值?默认情况下,只有当数据点悬停在工具提示上时才会显示值。
类似于这样:
解决方案您可以使用这个:
data.addColumn({type:'string',role:'annotation });
Is it possible to always show the data point values in Line/Bar charts? by default values values are shown only when hovering on the data points as tooltip.
Something like this:
解决方案
Yes you can use this:
data.addColumn({type: 'string', role: 'annotation'});
这篇关于Google Charts API:始终在图中显示数据点值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文