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!

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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