Re: displaying annotations in legend

42 views
Skip to first unread message

asgallant

unread,
Jan 11, 2013, 3:18:43 PM1/11/13
to google-visua...@googlegroups.com
You can hack something together to make this happen.  Use the "onmouseover" and "onmouseout" events to detect hovering over the annotations, and pull the data from your DataTable into an HTML element.  Here's a (very rough looking) example: http://jsfiddle.net/asgallant/qgUCC/

On Friday, January 11, 2013 12:41:16 PM UTC-5, laurent coudurier wrote:
Hi,

I'm using a LineChart (controled by ChartRange), having a annotation role column (to display where the user can find the maximum of the values).
Is it possible to display the annotations in a "legend like" box, just like in the annotated timeline ?

Thanks

laurent coudurier

unread,
Jan 14, 2013, 5:24:56 AM1/14/13
to google-visua...@googlegroups.com
Hi,

this is not what I want to do, but it's very interesting and can be useful in the future.
thanks for your answer.

what I want to do is having a list of all annotations, and the ability to click on them to auto scroll to the concerned part of the graph.

just like in the "annotated timeline"

so you'll ask me : why not using annotated timelime ?
well, I think that a LineChart controlled by a ChartRange is far more elegant.  ;-)

the annotated timeline have a strange aspect, very different than the others charts (I think).

asgallant

unread,
Jan 14, 2013, 6:17:39 PM1/14/13
to google-visua...@googlegroups.com
You can do that too.  Here's an example (with a few bells and whistles built in): http://jsfiddle.net/asgallant/GUREK/.  Note that I used jQuery in the example to do document manipulation and event binding; you can use other js libraries or plain js to accomplish the same thing if you don't use jQuery.

asgallant

unread,
Jan 14, 2013, 6:51:58 PM1/14/13
to google-visua...@googlegroups.com
Here's a better example: http://jsfiddle.net/asgallant/n9jMG/.  This one uses a Dashboard and ChartRangeFilter to properly emulate the ATL charts.

laurent coudurier

unread,
Jan 16, 2013, 7:08:43 AM1/16/13
to google-visua...@googlegroups.com
very interesting and useful !!

thanks a lot.
Reply all
Reply to author
Forward
0 new messages