fix custom graph sql pandora_enterprise#10196
This commit is contained in:
parent
d1fb27f5c4
commit
3ef4482af2
|
@ -3489,8 +3489,9 @@ function graph_custom_sql_graph(
|
|||
$data_result = [];
|
||||
}
|
||||
|
||||
$data = [];
|
||||
$labels = [];
|
||||
$data_bar = [];
|
||||
$labels_pie = [];
|
||||
$data_pie = [];
|
||||
$count = 0;
|
||||
$other = 0;
|
||||
foreach ($data_result as $data_item) {
|
||||
|
|
|
@ -154,14 +154,14 @@ function progressbar(
|
|||
/**
|
||||
* Draw vertical bars graph.
|
||||
*
|
||||
* @param array $chart_data Data chart.
|
||||
* @param array $params Params draw chart.
|
||||
* @param integer $ttl Pdf option.
|
||||
* @param array|null $chart_data Data chart.
|
||||
* @param array $params Params draw chart.
|
||||
* @param integer $ttl Pdf option.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
function vbar_graph(
|
||||
array $chart_data,
|
||||
array|null $chart_data,
|
||||
array $options
|
||||
) {
|
||||
if (empty($chart_data) === true) {
|
||||
|
|
Loading…
Reference in New Issue