Dashboards & Visualizations

is it possible to add brackets to piechart percentage

kirrusk
Communicator

pie chart is showing values in percentage out side along with field value separated by comma.
is it possible to separate it by brackets.

like value,10%, but i want it to be like value(10%)

I'm using <"option name ="charting.chart.showpercent">true</option>

niketn
Legend

@kirrusk you can use the SPL itself to generate Pie slice label with percent to be displayed as per your requirement. Following is a run anywhere example that you can try out.

index=_internal sourcetype=splunkd log_level!=INFO
| top log_level showcount=t showperc=t
| eval percent=round(percent,2)
| eval log_level=log_level." (".percent."%)"

There are several examples on Splunk Answers with similar use case. Here is one of the older answers: https://answers.splunk.com/answers/591290/pie-chart-round-default-percentage.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

woodcock
Esteemed Legend

Probably @niketnilay can give you CSS for this.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...