--- /usr/home/nugget/chart2.php 2014-11-24 15:38:50.519127541 -0600 +++ chart2.php 2014-11-24 15:40:04.585605685 -0600 @@ -36,6 +36,7 @@ 'profileIdx2' => array(T_ZBX_STR, O_OPT, null, null, null), 'updateProfile' => array(T_ZBX_STR, O_OPT, null, null, null), 'border' => array(T_ZBX_INT, O_OPT, P_NZERO, IN('0,1'), null), + 'legend' => array(T_ZBX_INT, O_OPT, null, IN('0,1'), null), 'width' => array(T_ZBX_INT, O_OPT, P_NZERO, '{} > 0', null), 'height' => array(T_ZBX_INT, O_OPT, P_NZERO, '{} > 0', null) ); @@ -121,7 +122,7 @@ $height = $dbGraph['height']; } -$graph->showLegend($dbGraph['show_legend']); +$graph->showLegend(getRequest('legend', $dbGraph['show_legend'])); $graph->showWorkPeriod($dbGraph['show_work_period']); $graph->showTriggers($dbGraph['show_triggers']); $graph->setWidth($width);