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!

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