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

View solution in original post

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
.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!