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!

.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 ...