Merge branch 'ent-5132-Generacion-de-imagenes-en-PDFs-2' into 'develop'
Fix gauge pdf reports See merge request artica/pandorafms!2958
This commit is contained in:
commit
350dbaf832
|
@ -1169,7 +1169,7 @@ function createGauges(data, width, height, font_size, no_data_image, font) {
|
|||
maxinum,
|
||||
valor;
|
||||
|
||||
for (key in data) {
|
||||
for (var key in data) {
|
||||
nombre = data[key].gauge;
|
||||
|
||||
label = data[key].label;
|
||||
|
@ -1189,8 +1189,8 @@ function createGauges(data, width, height, font_size, no_data_image, font) {
|
|||
mininum = round_with_decimals(parseFloat(data[key].min));
|
||||
maxinum = round_with_decimals(parseFloat(data[key].max));
|
||||
|
||||
critical_inverse = parseInt(data[key].critical_inverse);
|
||||
warning_inverse = parseInt(data[key].warning_inverse);
|
||||
var critical_inverse = parseInt(data[key].critical_inverse);
|
||||
var warning_inverse = parseInt(data[key].warning_inverse);
|
||||
|
||||
valor = round_with_decimals(data[key].value);
|
||||
|
||||
|
|
|
@ -1763,7 +1763,7 @@ function round_with_decimals(value, multiplier) {
|
|||
if (typeof multiplier === "undefined") multiplier = 1;
|
||||
|
||||
// Return non numeric types without modification
|
||||
if (typeof value !== "number" || Number.isNaN(value)) {
|
||||
if (typeof value !== "number" || isNaN(value)) {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue