2

I am setting up a bar chart using google chart, and I would like to display a value next to the bar chart to indicate the value the bar is referring to.

I know that when you hover over the bar, it will display the number as the example below: https://code.google.com/apis/ajax/playground/?type=visualization#bar_chart

But I want it to display without hovering, like how you can set up a bar chart with series displaying in PowerPoint.

I am not sure if there is a way to get around this? Or is this simple a non-existence at the moment for google chart?

Thanks, Roy

4

2 回答 2

0

此功能备受追捧,但遗憾的是 Google Charts 仍然不支持。

经过长时间的努力,我已经对ComboChart(可以使用BarChart并且ColumnChart也可以进行一些更改)将标签插入 SVG 进行了破解。

看看这个小提琴:http: //jsfiddle.net/augustomen/FE2nh/

在 Firefox 21、Chrome 27 和 IE 9 上测试。

于 2013-07-04T14:30:39.870 回答
0

看起来他们是在 2012 年 9 月添加的。 https://developers.google.com/chart/interactive/docs/customizing_tooltip_content

于 2013-02-21T07:09:07.520 回答