Show Value of Bar on Bar Graph

146 views
Skip to first unread message

Primary Numbers

unread,
Jun 25, 2009, 3:52:45 PM6/25/09
to Google Visualization API
I was wondering if there is a way to show the value of the bar on a
bar graph.

Ex//

|||||||||||||||||||||||||||||||||||||||||||||||| 17
|||||||||||||||||||| 12
|||||||||||||||||||||||||||||||| 19

ChartMan

unread,
Jun 27, 2009, 10:34:08 AM6/27/09
to google-visua...@googlegroups.com
This feature was recently asked for by another person in the group and was added to our feature list.

ChartMan

MC Get Vizzy

unread,
Jun 28, 2009, 4:40:31 AM6/28/09
to google-visua...@googlegroups.com
you can do this with google.visualization.ImageChart:


the relevant option is chm: 'N'


I think that there is a bug in the ImageChart that the values shown with chm: N are often corrupted.  the workaround for now is to also specify chds: '0, 20' or some other min and max that suits your data.

MC Get Vizzy

unread,
Jul 12, 2009, 3:59:34 AM7/12/09
to google-visua...@googlegroups.com
here's a playground example using ImageChart:

On Thu, Jun 25, 2009 at 10:52 PM, Primary Numbers <chris....@gmail.com> wrote:

Ashish Sojitra

unread,
Oct 17, 2013, 7:29:07 AM10/17/13
to google-visua...@googlegroups.com, char...@google.com, Ashish Sojitra
HI,

how to show values on the the top of columns in Google charts like,

               _60_
              |       |
_45_       |       |
|     |        |       |
|     |        |       |
|     |       |        |
| __ |_  __|       |____________________________________________________________  |

asgallant

unread,
Oct 17, 2013, 9:46:48 AM10/17/13
to google-visua...@googlegroups.com, char...@google.com, Ashish Sojitra
That is not supported in the API.  I wrote a hack that implements something similar, but it only works well when you have only 1 series of data: http://jsfiddle.net/asgallant/QjQNX/
Reply all
Reply to author
Forward
0 new messages