Hi Della,

I'm afraid we don't support syncing colors like that. Depending on how your
user filtering works, you might have to do different things. For example,
if you're using the Google Charts Controls, those will actually remove the
row from the DataTable that the chart sees, so there isn't any sensible way
to reassign the colors for things appearing after the series you want to
hide.

However, if you have a custom filter, then there might be a possible
solution:
On a line chart, you can hide the series by changing its visibleInLegend
option and setting the color to 'none' or 'transparent', and on the pie
chart, you can hide a series by simply setting its value to 0. This
automatically removes it from the legend as well.

On Tue, Oct 20, 2015 at 6:18 AM <dell...@knowledgefoundry.com> wrote:

> Hi there,
> I have a page with a pie chart and a bar chart referencing amount of users
> per country.
> I need to ensure the color references are the same for the countries in
> both charts so that when I user a filter South Africa will always be in
> blue and Zimbabwe will always be in Yellow (for example)
> Any help would be greatly appreciated.
> Della
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/286f1d54-fac7-4a60-9c60-de5e6f99808d%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/286f1d54-fac7-4a60-9c60-de5e6f99808d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAEwwup5XD6HwF6%2Be%2BdxUzbzDjjgKULcrOEhooQ9%3DMK9zw9Mqng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to