Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Interactive Chart: assign color to single data point

lostipod12
6 - Meteoroid

Hello,

 

I have some data going into an Interactive Chart. I'm able to see the data displayed nicely in the chart.

 

The last piece of this puzzle is to assign a color to the bar of a single data point (single field) which is different than the rest of the bars.

 

lostipod12_0-1652721586693.png

In this case, I want that the value of EMPTY to be red (circled in red above), and the rest of the values remain blue.

Is someone able to point me in the right direction?

 

Thank you,

 

Nick

 

3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

Hey @lostipod12 

You can assign colour here using a colour column:

IraWatt_0-1652722159031.png

IraWatt_1-1652722169772.png

 

 

lostipod12
6 - Meteoroid

IraWatt,

 

Thanks so much, that's really slick!

 

Paraphrased, I can create a custom color column in my data and programmatically assign colors to different data points based on their values.

 

In my case, using the formula tool I added a new column called NICK_COLOR, then looked for any field where the value was "EMPTY" and assigned the hex version of red; all the other values got the hex version of the default Alteryx blue.

 

lostipod12_4-1652727550089.png

 

And the results:

 

lostipod12_3-1652727519968.png

 

When I loaded that data into the Interactive Chart tool, I configured it to take on the NICK_COLOR field to define the colors of each data point:

lostipod12_2-1652727473487.png

 

And the results:

 

lostipod12_5-1652727606439.png

 

Thanks a bunch,

 

Nick

IraWatt
17 - Castor
17 - Castor

No worries @lostipod12 :) Glad it all worked for you!

Labels