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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...