Dashboards & Visualizations

Printing Dashboard: Getting values to print in color

splunkuserCA1
Path Finder

I ended up finding the answer to this question. It took me several hours to figure out, so I thought I'd post it here for future Splunkers.

I added some custom visualizations in a Splunk dashboard. I print these dashboards to a PDF and want to preserve the color. I was trying to figure out why my charts did not print out in color, but other Splunk charts did. It turns out that it has to do with the Splunk CSS. It has a print configuration like the following:

@media print {
  .visualization-controls {
  display: none !important;
  }
}

If the element doesn't contain the "!important" property, the formatting is removed when printing.

So when setting the color of my objects, I had to add "!important", like the following: 

    color: darkred!important

Otherwise, just doing "color: darkred" will not pass through the color when printing.

 

 

Labels (1)
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...