Dashboards & Visualizations

is it possible to add brackets to piechart percentage

Path Finder

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>


@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

Esteemed Legend

Probably @niketnilay can give you CSS for this.

0 Karma
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!