Fixed visual bug in agent acccess rate from treview
This commit is contained in:
parent
e3803ac934
commit
1c8a80923d
|
@ -2441,10 +2441,14 @@ function graphic_agentaccess(
|
||||||
} else {
|
} else {
|
||||||
$options['generals']['pdf']['width'] = 350;
|
$options['generals']['pdf']['width'] = 350;
|
||||||
$options['generals']['pdf']['height'] = 125;
|
$options['generals']['pdf']['height'] = 125;
|
||||||
|
if (!empty($data_array)) {
|
||||||
|
$imgbase64 = '<img src="data:image/jpg;base64,';
|
||||||
|
$imgbase64 .= vbar_graph($data_array, $options, 2);
|
||||||
|
$imgbase64 .= '" />';
|
||||||
|
} else {
|
||||||
|
$imgbase64 .= vbar_graph($data_array, $options, 2);
|
||||||
|
}
|
||||||
|
|
||||||
$imgbase64 = '<img src="data:image/jpg;base64,';
|
|
||||||
$imgbase64 .= vbar_graph($data_array, $options, 2);
|
|
||||||
$imgbase64 .= '" />';
|
|
||||||
return $imgbase64;
|
return $imgbase64;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue