Display the data point value above each bar (Column Chart)

18,490 views
Skip to first unread message

Chrétien M.

unread,
Jun 26, 2011, 4:49:28 PM6/26/11
to Google Visualization API
Hello guys,

I've just started using the Visualisation API, but I have a problem
with the Column Chart:
(http://code.google.com/apis/chart/interactive/docs/gallery/
columnchart.html)

Is there a way to display the data point value above each bar like in
the Image Chart API?
(http://code.google.com/apis/chart/image/docs/gallery/
bar_charts.html#introduction)

Thanks,

ChartALot

unread,
Jul 3, 2011, 10:15:21 AM7/3/11
to google-visua...@googlegroups.com
I'm sorry, but our dynamic charts do not provide this option.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


ana...@gmail.com

unread,
Jul 22, 2013, 5:22:21 PM7/22/13
to google-visua...@googlegroups.com

Do you know if/when this feature will be added to Column Charts?

For users of the Column Chart who want to print out the image of the chart, it is very useful to have the data value of each bar displayed on the bar itself along with a cumulative total at the top of the bar... just like you can do with the deprecated Google Image Charts API for stacked column charts.

Thanks!



On Sunday, July 3, 2011 10:15:21 AM UTC-4, ChartALot wrote:
I'm sorry, but our dynamic charts do not provide this option.

On Sun, Jun 26, 2011 at 11:49 PM, Chrétien M. <chret...@gmail.com> wrote:
Hello guys,

I've just started using the Visualisation API, but I have a problem
with the Column Chart:
(http://code.google.com/apis/chart/interactive/docs/gallery/
columnchart.html)

Is there a way to display the data point value above each bar like in
the Image Chart API?
(http://code.google.com/apis/chart/image/docs/gallery/
bar_charts.html#introduction)

Thanks,

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

asgallant

unread,
Jul 22, 2013, 5:39:42 PM7/22/13
to google-visua...@googlegroups.com
I wrote a hack for this: http://jsfiddle.net/asgallant/QjQNX/.  It only works if you want to use a ColumnChart - it does not work for BarCharts.  


On Monday, July 22, 2013 5:22:21 PM UTC-4, ana...@gmail.com wrote:

Do you know if/when this feature will be added to Column Charts?

For users of the Column Chart who want to print out the image of the chart, it is very useful to have the data value of each bar displayed on the bar itself along with a cumulative total at the top of the bar... just like you can do with the deprecated Google Image Charts API for stacked column charts.

Thanks!


On Sunday, July 3, 2011 10:15:21 AM UTC-4, ChartALot wrote:
I'm sorry, but our dynamic charts do not provide this option.

On Sun, Jun 26, 2011 at 11:49 PM, Chrétien M. <chret...@gmail.com> wrote:
Hello guys,

I've just started using the Visualisation API, but I have a problem
with the Column Chart:
(http://code.google.com/apis/chart/interactive/docs/gallery/
columnchart.html)

Is there a way to display the data point value above each bar like in
the Image Chart API?
(http://code.google.com/apis/chart/image/docs/gallery/
bar_charts.html#introduction)

Thanks,

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.

Jaume Pomes

unread,
Sep 27, 2013, 1:38:16 PM9/27/13
to google-visua...@googlegroups.com
basing on your answer, for a two-column chart.

not's the best way, but works.



El dilluns 22 de juliol de 2013 23:39:42 UTC+2, asgallant va escriure:

Ryan Gartin

unread,
Oct 24, 2013, 11:04:16 AM10/24/13
to google-visua...@googlegroups.com
Thanks asgallant, your method worked!

Albert Virgin

unread,
Apr 16, 2014, 1:29:50 AM4/16/14
to google-visua...@googlegroups.com
HI asgallant,

I saw your hack for the chart, but i have doubt in that, please help me.
I am new to google charts.
I want his chart to be in horizontal. How can i change it ?

Thank you..

Regards,
Albert

Andrew Gallant

unread,
Apr 16, 2014, 8:47:09 AM4/16/14
to google-visua...@googlegroups.com
You don't need to use my hack any more, as the BarCharts support annotations natively now: http://jsfiddle.net/asgallant/63sje/
Reply all
Reply to author
Forward
0 new messages