Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Define Pie Chart Colors Based on Legend Values

I have to create a bunch of charts with crop data. There are a lot of different crops and I need to create a lot of differnet charts. Particularly pie charts. Currently it seems I have to manually go through and change every value to the correct color based on what it is. Is it possible to define a macro or something that will set the color based on the legend key? Right now I only see theme, but I don't want the first 8 to have the same value every time. I want corn to always be yellow, cotton to always be white, watermelon to always be green, etc. No matter where in the data set it falls. See link for image

 

https://imgur.com/a/Y0a69LN