[ZBXNEXT-1246] Add support for legend argument to chart2.php (patch attached) Created: 2012 May 31  Updated: 2014 Nov 24

Status: Need info
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 2.0.0
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: David McNett Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: graphs, patch, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File chart2_legend.2.patch     Text File zabbix24-chart2.patch    

 Description   

Attached is a patch which adds support for controlling the display of the legend on graphs emitted by chart2.php to mimic the identical behavior that already exists in chart3.php. Please consider incorporating this small change to the codebase. Thanks.



 Comments   
Comment by David McNett [ 2012 May 31 ]

Bug in patch. Will revist.

Comment by David McNett [ 2012 May 31 ]

Amending patch (typo error)

Comment by David McNett [ 2012 May 31 ]

Wrong name for db field

Comment by Oleksii Zagorskyi [ 2012 Jun 01 ]

It's a feature request, moved from ZBX project.

Comment by richlv [ 2013 Feb 22 ]

could you please clarify what should this do functionally ?

Comment by David McNett [ 2014 Nov 24 ]

Updated patch for Zabbix 2.4 codebase

Comment by David McNett [ 2014 Nov 24 ]

This patch adds an optional "legend=0" URL argument that can be supplied to chart2.php. This is identical in form and function to the legend argument that already exists in chart3.php. This is used to embed zabbix graphs via img src="" in other non-zabbix web pages where it's useful to override the presence or absence of a legend on the graph as defined in the zabbix database.

One web page with lots of graphs embedded where you don't need the same legend repeated in every single image. Or where you just want to make the graph content more consistently sized when side-by-side graphs have wildly varying legend contents.

Generated at Thu Apr 25 01:22:37 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.