Dashboards & Visualizations

How to change Dynamic Dropdown percentage and color?

Khanu89
Path Finder

I have added a dropdown in my panel as shown below. My issue is that regardless of which option I chose it shows red in the pie chart and 100%. I would like to know how I can change colors by the selection and also for the percentage to update based on the selection from the drop down.

Screen Shot 2022-04-28 at 10.36.45 PM.pngScreen Shot 2022-04-28 at 10.37.04 PM.png

Labels (4)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@Khanu89 - I feel like you don't need the Type input dropdown.

Think, when you select the type="informational" all Pie chart has is "informational", 100% of the values are from it.

So try removing the Type=$event_type$ from the query of the pie chart.

 

I hope this helps!!!

0 Karma

Khanu89
Path Finder

@VatsalJagani Thank you your input. The Type $event_type$ is the token name. If I remove that the dropdown will not work.

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@Khanu89 - That's what I'm saying you can remove the dropdown you don't need as you are using a pie chart that will show all those values at the same time.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Khanu89,

you can choose the colors for the percentage values clicking (in Dashboard Edit Mode) on the Value Format option (the one with the pen) of the panel, and setup the colors associated to the values.

For more infos see at https://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting 

Ciao.

Giuseppe

0 Karma

Khanu89
Path Finder

@gcusello Thank you Giuseppe for your input. I tried this but their is option like that when I click the pen.
Screen Shot 2022-04-29 at 9.14.51 AM.png

0 Karma
Get Updates on the Splunk Community!

Index This | How many sides does a circle have?

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

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...