Dashboards & Visualizations

How to change the background color of the panels in a dashboard using the style tag in XML?


How to change the background color of the panels in a dashboard using the style tag in XML?

Tags (4)
0 Karma


I don't think you can do it directly via the "style" tag from HTML without referencing the Javascript classes for the panels/charts.

Instead, see the answer in this post that references the SimpleXML documentation for changing background colors.


Doc: http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/ChartConfigurationReference, see charting.BackgroundColor

0 Karma


@rjthibod, this should indeed be possible through CSS style as well. Panel Color, Dashboard Color etc. Please refer to Custom Layout Dark example in Splunk 6.x Dashboard Examples app.

Ideally unless we want to convert from Simple XML to HTML dashboard, it is best to use Simple XML chart configuration reference the way you have pointed out. For any HTML DOM elements which can not be styled using Simple XML Chart Configuration Reference Style override can be applied.

<html depends="$alwaysHideHTMLPanelOnlyforStyling$">
                background-color:blue !important;
           .dashboard-row .dashboard-panel{
                background-color:red !important;
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

Path Finder

docs link doesn't work (because of the comma) - here's one that does, for the latest version at this point in time:


0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!