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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...