Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have 2 charts which I need to change the value colors, first is a pie chart which shows top 4 values, top value should be RGB(0,186,255), second value RGB(90,90,90), third value rgb(150,150,150), fourth value rgb(190,190,190). I'm able to change the color of the slices on the "Colors" tab but I also want to change the colors of the values.
The second chart is a bar chart, first value should be RGB(0,186,255), next 4 values should be RGB(90,90,90), and everything else should be rgb(150,150,150).
I attached screenshots of the 2 charts and highligted the part that I want the color to match the bar/slice color. I feel like this is feasible on the "Text Color" of the expressions I just don't know what code to apply.
Thank you so much in advance.
Hey, I am San
Let me know, If this helps you.
Check this video for your pie chart:
Thanks,
Hi, yes I'm aware that we can put the logic there. And the logic that needs to be applied for the pie chart is first value RGB(0,186,255), second value RGB(90,90,90), third value rgb(150,150,150), fourth value rgb(190,190,190), the pie chart is limited to 4 highest value.
For the bar chart, first value should be RGB(0,186,255), next 4 values should be RGB(90,90,90), and everything else should be rgb(150,150,150). It is sorted from highest value to lowest value.
I'm asking for help with regards to how to code that logic.
Thank you.
Hi,
Thank you for your help, the rank function really did the trick. However, it only works for the bar chart in the expressions' text color. For the pie chart, it doesn't work because the numbers being shown are based on the legend not the "values on data point." If I apply the same logic on the legend font color, it only takes the first color and applies the color to both the number and text. I only want it for the number.
Any ideas?
Thank you!