statkpi fix
This commit is contained in:
parent
6831b2bacb
commit
f6ff6bf59e
@ -679,7 +679,7 @@ include('parsedatachart.php');
|
|||||||
order: order
|
order: order
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log(response);
|
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
alert('Error saving chart order.');
|
alert('Error saving chart order.');
|
||||||
@ -708,7 +708,7 @@ include('parsedatachart.php');
|
|||||||
method: 'load'
|
method: 'load'
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log(response);
|
|
||||||
const order = JSON.parse(response);
|
const order = JSON.parse(response);
|
||||||
order.forEach(id => {
|
order.forEach(id => {
|
||||||
const chart = document.querySelector(`[data-id='${id}']`);
|
const chart = document.querySelector(`[data-id='${id}']`);
|
||||||
@ -1211,7 +1211,6 @@ include('parsedatachart.php');
|
|||||||
|
|
||||||
// remove bar chart and create a new one
|
// remove bar chart and create a new one
|
||||||
$('#analytesFailChart').html('');
|
$('#analytesFailChart').html('');
|
||||||
console.log("Dati degli analiti ricevuti:", data.failedAnalytes);
|
|
||||||
var analyteNames = data.failedAnalytes.map(function(item) {
|
var analyteNames = data.failedAnalytes.map(function(item) {
|
||||||
return item.AnalyteName;
|
return item.AnalyteName;
|
||||||
});
|
});
|
||||||
@ -1265,7 +1264,6 @@ include('parsedatachart.php');
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
console.log(data.failedAnalytes);
|
|
||||||
var chart = new ApexCharts(document.querySelector("#analytesFailChart"), options);
|
var chart = new ApexCharts(document.querySelector("#analytesFailChart"), options);
|
||||||
chart.render();
|
chart.render();
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user