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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...