Dashboards & Visualizations

How to add the percentage symbol in Splunk radial gauge chart?

ramkyreddy
Explorer

I want a percentage symbol in the radial gauge chart how to add it, I  tried from XML code also while adding the format option it showed a node not found error. could you please help me with this

Add the percentage symbol after 19%Add the percentage symbol after 19%


table percent_pass</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.chart">radialGauge</option>
<option name="charting.chart.rangeValues">[0,30,70,100]</option>
<option name="charting.chart.style">minimal</option>
<option name="charting.gaugeColors">["0xdc4e41","0xf8be34","0x53a051"]</option>
<option name="charting.legend.placement">right</option>
<option name="height">200</option>
<option name="refresh.display">progressbar</option>
</chart>
</panel>
<panel>

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Charting options are documented here

The option you probably want is 

<option name="charting.chart.usePercentageValue">true</option>
0 Karma

ramkyreddy
Explorer

@ITWhisperer Thanks a lot,  it worked for me as I expected 

ramkyreddy_0-1684296001970.png

 

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Try fieldformat command. (I have not tried it myself, but theoretically, it should work)

Let's say your percentage field name is "count", then add below at the end of your query

| fieldformat count = ""+count+" %"

 

I hope this helps!!!

0 Karma

ramkyreddy
Explorer

ramkyreddy_0-1684122704983.png

Tried but its not showing the percentage symbol

0 Karma
Get Updates on the Splunk Community!

Index This | What’s a riddle wrapped in an enigma?

September 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

BORE at .conf25

Boss Of Regular Expression (BORE) was an interactive session run again this year at .conf25 by the brilliant ...

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...