Dashboards & Visualizations

How to display data (not percentage) in a pie chart?

nghosh
New Member

In a pie chart we can show the percentage by setting charting.chart.showPercent to true. But how do I display the actual data not the percentage?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You can cheat by changing your split-by values to contain the actual data: ... | stats count by foo | eval foo = foo . " (" . count . ")"

Keep in mind that this will mess with drilldowns!

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Do post your search string.

0 Karma

nghosh
New Member

It is working but now instead of field values it is showing the field name. Like if I had field values yes & no under the field foobar,it is showing foobar(5) & foobar(2) instead of yes(5) & no(2). Anything can be dne about this?

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...