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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...