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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...