使用Google 堆叠的柱状图/条形图,可以这样显示每个组上的值:
我尝试使用批注,但是如果我没记错的话,它只允许我们批注整个列,例如在此代码中打开http://codepen.io/anon/pen/xLIuB
...
var data = google.visualization.arrayToDataTable([
['API Category', 'Social', 'Music', 'File Sharing', 'Storage',
'Weather', { role: 'annotation' } ],
['2011', 98, 53, 12, 16, 6, '15'],
['2012', 151, 34, 26, 36, 49, '14'],
['2013', 69, 27, 22, 17, 15, '14'],
]);
...
Run Code Online (Sandbox Code Playgroud)
泰