Splunk Search

Separate chart legend on dashboard

rereeser
Explorer

Hello, I've got several charts on the same row that use the same legend. This particular dashboard is intended to be very small, so, to save space, I'd like to have one legend for all of my charts. I have done this by removing the legend from all but one of the charts with

param name="legend.placement">none<

However, I would like to place the legend horizontally under all of my charts in that row. If I place the legend on the bottom of one chart, it crams itself into the column space that is reserved for that chart only, and won't invade the space of the other charts. So, I wonder if there is a way to have the dashboard display a chart's legend, but not the chart?

I've tried doing this with

param name="chart">none<

that removes the chart, but it will not display the legend, even if the legend placement is explicitly defined. Is there a way to do this?

By the way, are there any examples of dashboards that are designed to take very little screen space? The intention is to be able to put this in the corner of one's monitor.

0 Karma
1 Solution

RicoSuave
Builder

You can probably achieve this via custom css. Use firebug to find what element is controlling its placement and then adjust it from there. Once you have your custom css you can include it in the dashboard to control alignment.

http://docs.splunk.com/Documentation/Splunk/latest/Developer/UseCSS

View solution in original post

RicoSuave
Builder

You can probably achieve this via custom css. Use firebug to find what element is controlling its placement and then adjust it from there. Once you have your custom css you can include it in the dashboard to control alignment.

http://docs.splunk.com/Documentation/Splunk/latest/Developer/UseCSS

rereeser
Explorer

Okay, thanks. I was hoping maybe someone had found a hacky way to trick the dashboard into only displaying the legend using XML.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...