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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...