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!

Announcing Scheduled Export GA for Dashboard Studio

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

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 GA in US-AWS!

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