Making Line Chart complicated...

14 views
Skip to first unread message

Jacson

unread,
Mar 29, 2012, 6:22:57 PM3/29/12
to Google Visualization API
I am loving these charts. Pulling data from databases is a breeze and
manipulating the display is working great!

So now I want to complicate my life.

Imagine a simple line graph tracking data points over time.

For every point >= 0 I want it and the line segment preceding it to be
red.
For every point < 0 I want it and the line segment preceding it to be
green.

Any ideas, how I could accomplish such?

Point me to the pertinent docs please.

Alternatively, maybe a different chart type would work. The line
chart is best for my purposes, but will consider others.

Thanks.

asgallant

unread,
Mar 30, 2012, 10:24:44 AM3/30/12
to google-visua...@googlegroups.com
You might be able to get something like this working by using a DataView with calculated columns, like this: http://jsfiddle.net/RCsMy/ 
Reply all
Reply to author
Forward
0 new messages