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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...