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!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...