Dashboards & Visualizations

How to show single value + percent of it in chart

aryamehr360
New Member

I would like to show each percent of my values sepratly in a dashboard,(Becuse of the SVG input)
How can I do dat ?!
for example I need this : SuspendedEV 12.897025
alt text

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Would adding a filter in your query for status="SuspendedEV" not work?

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Would adding a filter in your query for status="SuspendedEV" not work?

0 Karma

aryamehr360
New Member

Yes It works I use this commands
| where status="SuspendedEV"

0 Karma

aryamehr360
New Member

Thanks for your help , solved Ja
​​​​​​​

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Glad you found your answer. Don't forget to close the question by accepting the answer that worked for you.

0 Karma

somesoni2
SplunkTrust
SplunkTrust

What are you getting now? And what's the expected? (provide some mock expected output). Are you drilling down from above query? OR just want all % value in separate visualization?

0 Karma

aryamehr360
New Member

No I just need all % value in separate visualization in this case.

0 Karma

aryamehr360
New Member

For example I need % value of "SuspendedEV 12.897025"
and then

| eval percent=round(percent,0) 
| fields percent 
| `svg_viz_battery_percentage_simple(percent)`

to show that in a SVG battery
like this : 13%
https://drive.google.com/open?id=1AU9wYqdskwK2LCXJnVUzW6uBIRhY9FJj
link text

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...