community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.

How to Change Group Data Color in a pie chart

Highlighted
Asteroid

Hello,

I am creating a pie chart for two sets of data that will have two different pie charts. Some of the data ID are similar and some are different. I was wondering if there was a way that I could control the color of specific slices of the pie, such that the colors lines up identical between the two charts. I have uploaded two pie charts so that you can see what I am talking about. Thanks for the help!

 

 

Colin

Alteryx
Alteryx

@creily  

You can edit the XML... either directly or via a "action" (macro)

<Traces json:Array="true" xmlns:json="http://james.newtonking.com/projects/json">
<type>pie</type>
<mode>markers</mode>
<name>pie</name>
<valuessrc>Store Number</valuessrc>
<labelssrc>Store Number</labelssrc>
<marker>
<colors>rgb(0, 100, 0)</colors>
<colors>rgb(100, 0, 0)</colors>
<colors>rgb(0, 0, 100)</colors>
</marker>
</Traces>

 

Be careful when you edit the xml as it might corrupt the workflow if you make any un-necessary changes. 

Labels