Column or Bar chart - highlight one column

863 views
Skip to first unread message

drozzy

unread,
Mar 9, 2010, 8:26:15 AM3/9/10
to Google Visualization API
Hi guys,
I was wandering if anyone ever tried making one column in a column
chart (or barchart) stand out with a different color, like this:
http://i46.tinypic.com/106gb39.png

I tried using formatters, even tried creating two datasets (but it
just squishes the columns of the graph).
Any tips?

drozzy

unread,
Mar 9, 2010, 9:23:03 AM3/9/10
to Google Visualization API
Hello, again,
Well it seems you can use Image Chart instead.
But does that allow me for interactive behavior (i.e. can i still have
mouse overs)? Also - BackgroundColor does not work with Image Chart.

drozzy

unread,
Mar 9, 2010, 9:27:08 AM3/9/10
to Google Visualization API
OK - backgroundColor DOES work.
The only things I am missing are:
1. Events
2. X and Y axis labels.

Bug Chart

unread,
Mar 9, 2010, 10:33:13 AM3/9/10
to google-visua...@googlegroups.com
Hi,

1: Events
    This is not as difficult as it looks ;]
    Also, we intend to make it easier in the future also.

2: X and Y axis labels

HTH,

BugChart.

drozzy

unread,
Mar 9, 2010, 10:54:07 AM3/9/10
to Google Visualization API
Hm.. isn't the whole point of SVG to allow javascript access to
object, like lines and such?

I don't know why I can't access ColumnChart attributes of a particular
column for example. Or at least is the code for visualizations
available somewhere?

Thanks but I'm not using image maps - I might have to go back to my
hand-crafted raphael js library. Damn it... but this google
visualizations business looked so promising...

drozzy

unread,
Mar 9, 2010, 12:43:23 PM3/9/10
to Google Visualization API
Well it took me a while but I finally got to it:

var frame = $$('iframe')[0];
frame.document().body.childNodes[1].children[0].childNodes[1].childNodes[25].childNodes[0].attributes['5'].value
= '#EEEEEE'

I was using prototype for $$ selector and the following addition to
prototype to enable accessing iframe object:
http://www.ridingtheclutch.com/2008/10/09/want-to-use-prototype-to-access-something-in-an-iframe.html

Reply all
Reply to author
Forward
0 new messages