A slightly different solution is this:

http://chart.apis.google.com/chart?cht=bvs&chs=200x125&chd=t:150,50,60,80,40&chco=c6d9fd|4d89f9|4d89f9|4d89f9|4d89f9&chbh=20&chds=0,160

That is using a bar '|' as a separator for the colors specified in chco to
provide the colors per bar. You can combine this with multiple series by
separating the sets of colors with a comma ','. Worth noticing here is that
'|' uses wrap around, while ',' repeats the last entry if not enough colors
are given.

Hope this helps.

marcus

Check out the docs here: http://code.google.com/apis/chart/colors.html#rgb

On Mon, Apr 20, 2009 at 9:05 PM, KeithB <[email protected]> wrote:

>
> This is quite a "workaround," but you could use two datasets like the
> following:
>
>
> http://chart.apis.google.com/chart?cht=bvs&chs=200x125&chd=t:-1,50,60,80,40|150,-1,-1,-1,-1&chco=4d89f9,c6d9fd&chbh=20&chds=0,160<http://chart.apis.google.com/chart?cht=bvs&chs=200x125&chd=t:-1,50,60,80,40%7C150,-1,-1,-1,-1&chco=4d89f9,c6d9fd&chbh=20&chds=0,160>
> http://tinyurl.com/cme2te
>
> A bit tricky, but it works just like you want -- definitely would be a
> pain to support this with widely varying data (highlight 4th bar this
> time, 5th bar next time, etc.
>
> Alternatively, you could use a shape marker:
>
> http://chart.apis.google.com/chart?cht=bvs&chs=200x125&chd=s:ello&chco=4d89f9&chm=a,990066,0,0,9.0
> http://tinyurl.com/de2t6t
>
> Good luck,
> K
>
> On Apr 20, 2:55 pm, Michiel <[email protected]> wrote:
> > Hi,
> >
> > I got a vertical bar chart with 7 bars...
> > Is it possible to give the first bar a different color, and all other
> > 6 the same. Just to make more clear that the first bar is the most
> > important?
> >
>


-- 
Google Switzerland GmbH (CH-020.4.028.116-1)
If you received this communication by mistake, don't forward it to anyone,
erase all copies of it, including all attachments, and please let me know it
went to you by mistake. Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to