Dashboards & Visualizations

Is there a way to manually choose the colors for a single value visualization without relying on a range to do it via xml tags only?

pepper_seattle
Path Finder

Issue
I have three single value panels at the top of my dashboard that I want to have color coded values or backgrounds for, but I want to pick the color of each one and have it stay that color. Using a range won't guarantee that my colors stay as I chose them as the values shift over time.

Question
Is there a way to manually choose the colors for a single value visualization without relying on a range to do it via xml tags only?

I cannot create a custom css file to pull from so anything outside of tags in the dashboard xml is a no go.

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi pepper_seattle,
you have to choose the same color for every range you have (at least 2), in this way you have always the fixes one.
Bye.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi pepper_seattle,
you have to choose the same color for every range you have (at least 2), in this way you have always the fixes one.
Bye.
Giuseppe

0 Karma

lguinn2
Legend

If you want to set the foreground or background color for a dashboard panel, you can. For example, in a chart you can do this in the XML:

<panel>
  <chart>
     ...
    <option name="charting.backgroundColor">0xFF9900</option>
  <chart>
</panel>

This should set the chart background color to orange. Here is the page in the Dashboards and Visualization manual: Chart configuration reference.

0 Karma

pepper_seattle
Path Finder

This doesn't work with single value visualizations unfortunately. I'm using v.6.5.0 if that helps.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...