We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Custom colors for Pie chart

meghasaraf
5 - Atom

Hi All,

 

Can anyone help me figure out how to add custom colors to Pie chart?

 

I have a predefined set of colors which needs to be used however, I am unable to set the colors in the Pie chart format area.

 

Can anyone help me with this.

 

Thanks,

Megha

1 REPLY 1
DavidThorpe
Alteryx Alumni (Retired)

Hi @meghasaraf 

 

You can edit the RuntimeData settings file to add your own custom colour palettes in C:\Program Files\Alteryx\bin\RuntimeData\HtmlAssets\Charting.

 

You can follow @kelly_gilbert's excellent post here: https://community.alteryx.com/t5/Alteryx-Designer-Discussions/How-to-customize-colors-in-an-Interact...

 

Note that the file you are looking to edit is now called ayx-chart-editor-tool.bundle

 

You will find the code line:

t.BREWER=d;var f=[i("D3"),i("G10"),i("T10"),i("Alphabet"),i("Dark24"),i("Light24"),i("test")] (my addition added in red)

 

You can then insert your own palette configurations (I have chosen the HEX code of three colours highlighted below):

DavidThorpe_0-1625483923610.png

 

You see these then appear in your list:

DavidThorpe_1-1625483988787.png

 

Please ensure you have the correct admin permissions to edit the file, and that you take a backup of the file before editing

 

Thanks!

 

David Thorpe

Sales Engineering

Labels
Top Solution Authors