Dashboards & Visualizations

How to make multiple colour per category in Pie Chart

POR160893
Builder

Hi,

I need to create a pie chart .... however, the query sets all BOTH categories the SAME colour.

POR160893_0-1654594228990.png

 

POR160893_1-1654594244411.png

 





How can I make them different?


Thanks

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

You have a Completion Status value of an empty string - this is not the same as a null value nor just a space. Convert the empty string to a space (or some other more useful value).

| eval "Completion Status"=if('Completion Status'=""," ",'Completion Status')

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

You have a Completion Status value of an empty string - this is not the same as a null value nor just a space. Convert the empty string to a space (or some other more useful value).

| eval "Completion Status"=if('Completion Status'=""," ",'Completion Status')

POR160893
Builder

This worked 🙂

But, how can I standardize the 3 pie charts to have the same color scheme as the pie chart on the right:

POR160893_0-1654677785862.png
The following is my code:

POR160893_2-1654677897992.png

 

POR160893_1-1654677872315.png

 




Many thanks as always and I have given you Karma again 🙂

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Include the same charting.seriesColors option in all three charts.

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...