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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...