combochart

15 views
Skip to first unread message

deb

unread,
Dec 28, 2011, 1:12:53 AM12/28/11
to Google Visualization API
I want to create a chart like this one with visualization api.
Currently it's done with google image apis. I am trying to use
combochart, but not able to figure out how can i use different color
for some colums and how can i show a diagonal line in the chart.

deb

unread,
Dec 28, 2011, 3:09:46 AM12/28/11
to Google Visualization API

asgallant

unread,
Dec 28, 2011, 9:16:22 AM12/28/11
to google-visua...@googlegroups.com
You left out a link to the image chart.

The API colors all bars, columns, lines, etc by series, so the solution to getting multiple colors is to put your data into multiple series.  If you then set the "isStacked" option to true, your columns will look as if they were from the same series.  Note, this does not work if you already have multiple series for your columns and you don't want them stacked.  Search this forum for multi-colored bar charts - the same principle applies - there are several examples available for making this work.
Reply all
Reply to author
Forward
0 new messages