Re: How to set annotation position?

7,570 views
Skip to first unread message

asgallant

unread,
Jan 6, 2013, 9:10:11 PM1/6/13
to google-visua...@googlegroups.com
Annotation position is determined by the position of the data point, so if you want to move them, you have to change the data point's location.

I would like to thank you for this post, as it inspired a solution to the age-old problem of adding annotations to a ColumnChart.  My solution uses a ComboChart instead of layering, but the idea is similar.  See the code here: http://jsfiddle.net/asgallant/QjQNX/, and modified to change the location of the annotations here: http://jsfiddle.net/asgallant/QjQNX/1/

On Sunday, January 6, 2013 1:58:53 PM UTC-5, Dezső Róbert wrote:
Hi,

i've been trying to put annotations above column charts, but i had to realize there is no way to do that. So i put another div under my column chart's div and added a line chart with annotations to it.
You can see the result on the attached image.
Unfortunately i haven't find any reference about the annotation's positioning. Does anybody know how to set its position? I want to place it a little bit further from the columns.

Thanks for your help,
Robert

pascoa...@gmail.com

unread,
Feb 19, 2014, 7:52:47 AM2/19/14
to google-visua...@googlegroups.com
What about Stacked Columns. I need to change position on a Stacked column, how can i do that. Do you have any sollution?
Can you please, please, take a look on my jsfiddle : http://jsfiddle.net/U4VFU/ 

asgallant

unread,
Feb 19, 2014, 3:54:15 PM2/19/14
to google-visua...@googlegroups.com
You can use the same technique: http://jsfiddle.net/asgallant/U4VFU/1/

pascoa...@gmail.com

unread,
Feb 19, 2014, 4:02:37 PM2/19/14
to google-visua...@googlegroups.com
 Sure, it is so easy and i couldn't see that!

Thanks for your time, asgallant.

Nethaji j

unread,
Oct 25, 2016, 12:53:31 AM10/25/16
to Google Visualization API
i want  annotations text position  below this link



Nethaji j

unread,
Oct 25, 2016, 12:55:35 AM10/25/16
to Google Visualization API


On Tuesday, 25 October 2016 10:23:31 UTC+5:30, Nethaji j wrote:
i want  annotations text position  below this link in columnchart



Reply all
Reply to author
Forward
0 new messages