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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...