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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...