You need to separate the data values for groups with a pipe symbol such as |
Try this it works http://chart.apis.google.com/chart?chs=250x150&chd=t:55000|45000&chds=0,100000&cht=bhg&chco=FF0000,FF80C0&chtt=Average+Employment+Income|Males+and+Females+-+2005&chxt=x,y&chxl=0:|0|25000|50000|75000|100000|1:|Male|Female| Asad On Mon, Feb 9, 2009 at 8:02 PM, Travis_K <[email protected]> wrote: > > Is it possible to display difference colored data to a bar chart using > text encoded data? > I have tried using the simple encoding data and it works fine but when > I use the actual values (with a scale) only one color appears. Do I > have to use simple encoding to use multiple colors? > > http://chart.apis.google.com/chart? > chs=250x150 > &chd=t:55000,45000 > &chds=0,100000 > &cht=bhg > &chco=FF0000,FF80C0 > &chtt=Average+Employment+Income|Males+and+Females+-+2005 > &chxt=x,y > &chxl=0:|0|25000|50000|75000|100000|1:|Male|Female|<http://chart.apis.google.com/chart?%0Achs=250x150%0A&chd=t:55000,45000%0A&chds=0,100000%0A&cht=bhg%0A&chco=FF0000,FF80C0%0A&chtt=Average+Employment+Income%7CMales+and+Females+-+2005%0A&chxt=x,y%0A&chxl=0:%7C0%7C25000%7C50000%7C75000%7C100000%7C1:%7CMale%7CFemale%7C> > > Regards > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
