Page 1 of 2

Legend taking up too much space in HighCharts on Dashboard

Posted: Mon Aug 18, 2014 11:54 am
by jmooreca
Is there a way to make HighCharts graphs on a dashboard NOT show a legend? On some of the graphs, my legend is taking up more space than the actual graph. This is slightly better in 2014R1.4, since it only shows some of the legends, but I'd ready like a way to hide them completely. Is there any way to do this?

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Mon Aug 18, 2014 2:29 pm
by slansing
It does not seem to take up much space on my systems, could you post a screenshot of one of yours which you think is taking up an inordinate amount of space? I do know there is not really an easy way to disable it piecemeal, and that would make it so you can't filter our certain metrics on graphs with multiple data points. Unless you are not talking about the select-able options.

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Tue Aug 19, 2014 12:56 pm
by jmooreca
I'm attaching an example. The dashboard has a bunch of graphs close to this size. It's meant as a high-level overview, that's left on a monitor all day. If the legend wasn't showing, there would be plenty of room to see the actual graph, and then click through the title for any filtering that needed to be done.

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Tue Aug 19, 2014 1:54 pm
by WillemDH
I'm having exactly the same problem. The service and host graphs in host / service overview are almost unvisible due to the legend taking up too much space. The graphs in graph explorer are ok though..

Willem

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Tue Aug 19, 2014 4:14 pm
by Box293
Same problem observed here.

It would be great if we could define templates like in PNP.

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Tue Aug 26, 2014 12:56 pm
by jmooreca
slansing wrote:It does not seem to take up much space on my systems, could you post a screenshot of one of yours which you think is taking up an inordinate amount of space? I do know there is not really an easy way to disable it piecemeal, and that would make it so you can't filter our certain metrics on graphs with multiple data points. Unless you are not talking about the select-able options.
I'm not worried about being able to filter out certain metrics. This dashboard is meant to be a high-level overview. Ideally someone would be able to click on the graph title to drill down to the full graph in Host Graphs (which is what happens now), and would do any filtering from there.

This is actually holding back our going live with Nagios XI to replace our current solution.

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Tue Aug 26, 2014 1:55 pm
by jomann
With 2014r1.5 there will be a change to the size of the perfdata graphs to be a % of the overall width of your screen (down to a minimum size) and will most likely resolve most of the issues with this. I've attached a screenshot of my machine.

As far as dashlets go... it would be a good idea to implement the option to remove it from dashlets. Giving users the ability to remove the legend for a dashlet when you have the popup ask you which dashboard to place it in. Or, I was thinking as a user-saved option on the perfdata pages so that any dashlet you add would automatically not have it unless you turned it off. Either way, we've actually added a feature request for the the removal of the legend from dashboards and will likely be in a release very soon.

Edit: Changed this post to reflect the new feature request.

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Tue Aug 26, 2014 2:19 pm
by jmooreca
jomann wrote:With 2014r1.5 there will be a change to the size of the perfdata graphs to be a % of the overall width of your screen (down to a minimum size) and will most likely resolve most of the issues with this. I've attached a screenshot of my machine.

However, with that being said the legends COULD be removed if this is something people wanted. Would you still want the legends to be removable even with the bigger graphs? Or are you talking about perfdata dashlets too, because that would be a good idea to implement in dashlets... the ability to remove the legend for a dashlet when you place it on the dashboard...
Yes, the option to remove the legend from dashlets would be perfect. Personally, I think they're great to have on the bigger graphs, but take up too much space when you're trying to fit a bunch of small graphs on a dashboard. I'll attach a screenshot of the dashboard in question so you can see what I mean. As you can see, the vertically smaller graphs are fairly useless because the legend takes up half of the frame.

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Tue Aug 26, 2014 2:53 pm
by lmiltchev
Noted. Thanks for the feedback, jmooreca.

Re: Legend taking up too much space in HighCharts on Dashboa

Posted: Wed Aug 27, 2014 2:16 pm
by jmooreca
[quote="jomann"]
... Either way, we've actually added a feature request for the the removal of the legend from dashboards and will likely be in a release very soon.
[/quote]

Any ballpark idea of a timeframe for "Very soon"? I'm trying to determine whether it's worth my time to try to hack the HighCharts javascript myself so we can roll this out.

Thanks