Dashboards & Visualizations

Dashboard CSS Styles

kashz
Explorer

Hi,
So, I'm new to dashboard and styling. (I have very limited experience with CSS / JS).

I currently have a dashboard built up and I want to style it. Looking online there are multiple ways

  • HTML / CSS / JS
  • node.js (I dont have experience with node.js)
  • Simple XML Reference with CSS stylesheet
  1. Whats the easiest approach to learn and deliver a custom dashboard. I'm mainly aiming at Simple XML Reference dashboard with CSS. Is that okay?
  2. I do have one major question - online I see people adding EXTERNAL .css file in the app/static directory, which requires the splunk system to be rebooted, Would it better to use the inline approach of styling within the XML code and then extracting to make the process faster? What is the best approach to styling?

Looking at this example - https://answers.splunk.com/answers/659719/how-to-add-style-to-panel-titles-in-my-dashboard.html

  1. What is depends="$alwaysHideCSSPanel$"or depends=$HideForCSS$" - I cannot find any documentation on splunk / css for this?
  2. Wouldn't we need to set id= for a xml key inorder to use the css selector .panel or something?
  3. I see someplaces people use #dashboard-panel but without referencing that keyword, in CSS we need to use the class= selector before using it?

Need some general guidance / direction ?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...