开发者

Google Chart Visualization API, Bar chart values / tooltips

开发者 https://www.devze.com 2023-03-07 21:30 出处:网络
I am trying to add the actual value of all the bars in my chart to the end of each bar. I want this to either replace, or to add to the tool-

I am trying to add the actual value of all the bars in my chart to the end of each bar. I want this to either replace, or to add to the tool- tip functionality.

I see that this is possible in the image chart, it is the function开发者_开发知识库ality described in the following link that I wish to replicate:

http://code.google.com/apis/ajax/playground/#image_bar_chart

I am wondering if this is possible in the Javascript based version of the bar chart?

Many thanks,

H.


It looks like there's no built in functions to draw text ad-hoc on top of google's different charts. Behind the scenes, it's generating SVG so you could try to insert some valid SVG on your own.

Another option would be to use a more flexible (but less featureful) library like raphael.js:

http://raphaeljs.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消