Is it possible to make a multicolor bar chart like in the playground example but with a regular bar chart?

108 views
Skip to first unread message

akanevsky

unread,
Sep 21, 2011, 2:29:28 PM9/21/11
to Google Visualization API
Hello,

If I use the BarChart class to create my chart, is it possible to make
the one and only series I have in different colors?

E.g. exactly like in the example but for the BarChart class instead of
ImageChart.

The documentation does not say that this is not supported but for some
reason when I change the example to use BarChart, the colors are not
shown.

Thanks,
Anton

ChartMan

unread,
Sep 21, 2011, 2:53:16 PM9/21/11
to google-visua...@googlegroups.com

Colors relate to categories so you should have many categories, I.e., put your values in one row rather than one column. 

HTH

> --
> You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
> To post to this group, send email to google-visua...@googlegroups.com.
> To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
>

akanevsky

unread,
Sep 21, 2011, 5:54:40 PM9/21/11
to Google Visualization API
Obviously you are not aware of the playground examples where different
colors are all for the same category:

http://code.google.com/apis/ajax/playground/?type=visualization

Click on Image Multicolor Bar Chart. It has multiple colors within the
same category.

What I want is to use the Bar Graph instead of the Image Graph so I
can add interactivity. Can I still have multiple colors within the
same category?

Thanks.

On Sep 21, 2:53 pm, ChartMan <chart...@google.com> wrote:
> Colors relate to categories so you should have many categories, I.e., put
> your values in one row rather than one column.
>
> HTH

asgallant

unread,
Sep 22, 2011, 9:39:28 AM9/22/11
to google-visua...@googlegroups.com
The image charts allow multicolor series, but the interactive charts do not.  The only way to achieve this functionality is to put your data in different series.
Reply all
Reply to author
Forward
0 new messages