Dashboards & Visualizations

How can I use the color input from the Single Value Visualization in my own modular viz?

jeffland
SplunkTrust
SplunkTrust

I've seen this input in the Single Value visualization:
alt text
I would like to use it in my own visualization, but the documentation doesn't seem to cover that, all I see there are radio, text and color picker inputs. Anyone with any experience on this?

0 Karma
1 Solution

magnew_splunk
Splunk Employee
Splunk Employee

Hi @jeffland,

Unfortunately, the current custom visualization framework does not support dynamic formatter options. You can set it up to have a set number of ranges that get colors, but you can't make the number of ranges variable. For an example of a basic set up, see the horseshoe meter custom viz (https://splunkbase.splunk.com/app/3166/). Dynamic formatter options are something we are looking at for the future.

View solution in original post

magnew_splunk
Splunk Employee
Splunk Employee

Hi @jeffland,

Unfortunately, the current custom visualization framework does not support dynamic formatter options. You can set it up to have a set number of ranges that get colors, but you can't make the number of ranges variable. For an example of a basic set up, see the horseshoe meter custom viz (https://splunkbase.splunk.com/app/3166/). Dynamic formatter options are something we are looking at for the future.

jeffland
SplunkTrust
SplunkTrust

Glad to hear some "official" thoughts on that, I appreciate your input.
I was wondering if maybe I could just use plain HTML and js in the format menu, but that seems like monkeypatching and I don't really want to go that way. It's comforting to know that the format menu will/might see some more features in the future.

0 Karma
Get Updates on the Splunk Community!

Customer Experience | Splunk 2024: New Onboarding Resources

In 2023, we were routinely reminded that the digital world is ever-evolving and susceptible to new ...

Celebrate CX Day with Splunk: Take our interactive quiz, join our LinkedIn Live ...

Today and every day, Splunk celebrates the importance of customer experience throughout our product, ...

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...