Controlling Pie Chart Legend Colors (1 Viewer)

teel73

Registered User.
Local time
Today, 03:28
Joined
Jun 26, 2007
Messages
205
I have a pie chart with 5 categories. The legend is color coded. But if one of the categories is 0 then the corresponding color for that category is moved to the next category. For example.

1 = green
2 = blue
3 = yellow
4 = orange
5 = red

If category 1 has a total of 0 then the legend colors are displayed like this:

2 = green
3 = blue
4 = yellow
5 = orange

How can I keep colors consistent for the legend? Is this possible?

I want the categories to stay the same color. If there is a total of 0 for a category then that color isn't displayed.
 
Last edited:

Jack_Green

New member
Local time
Today, 03:28
Joined
Mar 6, 2009
Messages
3
I have a pie chart with 5 categories. The legend is color coded. But if one of the categories is 0 then the corresponding color for that category is moved to the next category. For example.

1 = green
2 = blue
3 = yellow
4 = orange
5 = red

If category 1 has a total of 0 then the legend colors are displayed like this:

2 = green
3 = blue
4 = yellow
5 = orange

How can I keep colors consistent for the legend? Is this possible?

I want the categories to stay the same color. If there is a total of 0 for a category then that color isn't displayed.

I'm having the same issue, I heard of a VB solution, but I cannot seem to find it and no idea on how to code it.
 

Users who are viewing this thread

Top Bottom