Fix graph
This commit is contained in:
parent
d9886044a6
commit
9595504b56
@ -164,8 +164,8 @@ class box_scheduled_jobs extends ModeleBoxes
|
||||
'text' => $langs->trans("NumberScheduledJobError")
|
||||
);
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => 'class="right"colspan="2"',
|
||||
'textnoformat' => $nbjobsinerror ? '<span class="error"><a href="'.DOL_URL_ROOT.'/cron/list.php?search_lastresult='.urlencode('<>0').'">'.$nbjobsinerror.'</a></span>'.img_error() : '0'
|
||||
'td' => 'class="right" colspan="2"',
|
||||
'textnoformat' => ($nbjobsinerror ? '<span class="error"><a href="'.DOL_URL_ROOT.'/cron/list.php?search_lastresult='.urlencode('<>0').'">'.$nbjobsinerror.'</a></span>'.img_error() : '0')
|
||||
);
|
||||
} else {
|
||||
$this->info_box_contents[0][0] = array(
|
||||
|
||||
@ -1151,10 +1151,11 @@ class DolGraph
|
||||
$this->stringtoshow .= ', stacked: true';
|
||||
}
|
||||
$this->stringtoshow .= ' }]';
|
||||
$this->stringtoshow .= ', yAxes: [{ ticks: { beginAtZero: true }';
|
||||
if ($type == 'bar' && count($arrayofgroupslegend) > 0) {
|
||||
$this->stringtoshow .= ', yAxes: [{ stacked: true }]';
|
||||
$this->stringtoshow .= ', stacked: true';
|
||||
}
|
||||
$this->stringtoshow .= ' }';
|
||||
$this->stringtoshow .= ' }] }';
|
||||
// Add a callback to change label to show only positive value
|
||||
if ($isfunnel) {
|
||||
$this->stringtoshow .= ', tooltips: { mode: \'nearest\',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user