Fixed basic chart

This commit is contained in:
Daniel Maya 2023-05-22 10:37:52 +02:00
parent efd2adac06
commit 466e44681d
1 changed files with 21 additions and 19 deletions
pandora_console/include/graphs/flot

View File

@ -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++;