From 466e44681d6a1ab2bb80a8faf67bb21e593cf7bb Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 22 May 2023 10:37:52 +0200 Subject: [PATCH] #11282 Fixed basic chart --- .../include/graphs/flot/pandora.flot.js | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index ee99a0ad4f..4be0fd1f79 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -1975,25 +1975,27 @@ function pandoraFlotArea( !(type == 1 && /percentil/.test(index) == true) && !(type == 3 && /percentil/.test(index) == true) ) { - data_base.push({ - id: "serie_" + i, - data: value.data, - label: index, - color: color[index]["color"], - lines: { - show: line_show, - fill: filled, - lineWidth: lineWidth, - steps: steps_chart - }, - points: { - show: points_show, - radius: radius, - fillColor: fill_points, - fill: filled - }, - legend: legend.index - }); + if (color[index] !== null) { + data_base.push({ + id: "serie_" + i, + data: value.data, + label: index, + color: color[index]["color"], + lines: { + show: line_show, + fill: filled, + lineWidth: lineWidth, + steps: steps_chart + }, + points: { + show: points_show, + radius: radius, + fillColor: fill_points, + fill: filled + }, + legend: legend.index + }); + } } } i++;