Chart marker/flag

60 views
Skip to first unread message

amirmiller

unread,
Nov 21, 2011, 8:58:43 AM11/21/11
to Google Visualization API
Hi,

I am not sure what the proper term is so i'll try to describe what I'm
looking for.
I am displaying a chart of bug trends and I would like to draw a line
or flag or some kind of marker which represent special days in the
project's life cycle such as Code freeze, Release etc.
Kind of like the Dividend marker on this chart from Yahoo Finance:
http://finance.yahoo.com/echarts?s=TEVA+Interactive#chart6:symbol=teva;range=6m;indicator=split+dividend+volume;charttype=line;crosshair=on;ohlcvalues=0;logscale=on;source=undefined

Hope someone can point me to the proper API.
Thanks,

Amir.

asgallant

unread,
Nov 21, 2011, 1:50:47 PM11/21/11
to google-visua...@googlegroups.com
Annotated Timeline charts (http://code.google.com/apis/chart/interactive/docs/gallery/annotatedtimeline.html) are probably what you are looking for (Flash required).

amirmiller

unread,
Nov 22, 2011, 3:14:59 AM11/22/11
to Google Visualization API
Isn't there a way to put an annotation on other charts?
The timeline chart doesn't fit my other requirements.

Amir.

On Nov 21, 8:50 pm, asgallant <drew_gall...@abtassoc.com> wrote:
> Annotated Timeline charts (http://code.google.com/apis/chart/interactive/docs/gallery/annotatedt...)

asgallant

unread,
Nov 22, 2011, 8:21:33 AM11/22/11
to google-visua...@googlegroups.com
No, there isn't a way to add annotations to an other charts.  The closest you can get to that functionality is the tooltips.

asgallant

unread,
Nov 22, 2011, 1:06:17 PM11/22/11
to google-visua...@googlegroups.com
I spoke too soon.  According to the new release candidate news, Line and Area charts now support annotations (use version 1.1 instead of 1.0 when calling google.load() to load the RC instead of the production version).

Roni Biran

unread,
Nov 22, 2011, 1:43:01 PM11/22/11
to google-visua...@googlegroups.com
Drew..... you must start talking more often. it seems that it only helps with new cool features ;-)

On Tue, Nov 22, 2011 at 8:06 PM, asgallant <drew_g...@abtassoc.com> wrote:
I spoke too soon.  According to the new release candidate news, Line and Area charts now support annotations (use version 1.1 instead of 1.0 when calling google.load() to load the RC instead of the production version).

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/jUMytymeNs4J.

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.

asgallant

unread,
Nov 22, 2011, 2:47:47 PM11/22/11
to google-visua...@googlegroups.com
Talking more often?  Don't I open my fat mouth around here often enough?  >;o)~

amirmiller

unread,
Nov 23, 2011, 7:13:10 AM11/23/11
to Google Visualization API
Unfortunately it does not provide any clue as to how to code these
annotations.
I tried adding 'displayAnnotations': true to my definition but that
didn't work.

Hope they will update their docs soon.

Roni Biran

unread,
Nov 23, 2011, 7:20:38 AM11/23/11
to google-visua...@googlegroups.com
Hi,

you can right-click and view the source and figure it out.
and as for you asgallant, As long as you're blabbing gives us great products.... you can keep it coming ;-)



--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

asgallant

unread,
Nov 23, 2011, 11:38:01 AM11/23/11
to google-visua...@googlegroups.com
The examples posted have the structure for the annotations (view the source and look at the chart drawing functions).  Basically, add 2 extra DataTable columns after each data column that you want to annotate, passing an object in the new format {type: 'data type', role: 'column role'} with type 'string' and roles 'annotation' and 'annotationText'.  The 'annotation' column contains the labels that appear on the chart while the 'annotationText' column contains the annotations' tooltip text.  I pulled the annotation example from those posted by the chart team and put them on jsfiddle to make it easy to see them in action along side the code: http://jsfiddle.net/9P8XF/1/
Reply all
Reply to author
Forward
0 new messages