Dashboards & Visualizations

How to change the color of an entire panel in an HTML dashboard?

softek
Explorer

Hi, sorry noob question but have been hunting the docs / answers for ages...

Simple XML. I have 2 panels.

  1. A chart panel which shows for example 10 bars and is lets say has been set to 400px tall.

  2. To the right of it, I have an HTML panel with just 2 lines of text for an explanation of the chart.

I have created / set custom CSS dashboard.css for the text panel to change it from white (default) to silver and it works ok..

However, the HTML panel is of course is as tall as the chart panel next to it, but the CSS silver color is only applied to the lines of text, the rest of the 300px of that panel are white..

How to color the entire HTML panel to silver so it doesnt look odd?

Thanks!

0 Karma
1 Solution

softek
Explorer

I have simply added this to the custom dashboard.css

.dashboard-row .dashboard-panel .panel-body.html {

background: #F5F5F5;

}

View solution in original post

0 Karma

nidhigoyal
Explorer

Find div element of the html Panel and apply following code by editing element number. for example in my case, "its element 1" :

div#element1{
background-color:#00CDCD;}

0 Karma

softek
Explorer

I have simply added this to the custom dashboard.css

.dashboard-row .dashboard-panel .panel-body.html {

background: #F5F5F5;

}

0 Karma

markthompson
Builder

@ppablo_splunk - Please convert this comment to answer and mark as answer. Thanks 🙂

0 Karma

norbert_hamel
Communicator

possible that you have applied the css color to the wrong HTML element? could you drop the code for better insight?

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...