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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...