fixed visualization of vertical bars graph when switching values on graph viewer
This commit is contained in:
parent
49bf10f0f8
commit
a0391e3ef2
|
@ -454,20 +454,28 @@ if ($view_graph) {
|
|||
data['threshold'] = 1;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ajax.php",
|
||||
dataType: "html",
|
||||
data: data,
|
||||
success: function (data) {
|
||||
document.getElementById("div-container").innerHTML = "";
|
||||
$("#spinner_loading").hide();
|
||||
$("#div-container").append(data);
|
||||
},
|
||||
error: function (data) {
|
||||
console.error("Fatal error")
|
||||
}
|
||||
});
|
||||
(function (stacked) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ajax.php",
|
||||
dataType: "html",
|
||||
data: data,
|
||||
success: function (data) {
|
||||
console.log("////////////");
|
||||
console.log(typeof stacked);
|
||||
if (stacked === "<?php echo CUSTOM_GRAPH_VBARS; ?>") {
|
||||
document.getElementById("div-container").classList.add('w100p', 'height_600px');
|
||||
}
|
||||
|
||||
document.getElementById("div-container").innerHTML = "";
|
||||
$("#spinner_loading").hide();
|
||||
$("#div-container").append(data);
|
||||
},
|
||||
error: function (data) {
|
||||
console.error("Fatal error")
|
||||
}
|
||||
});
|
||||
})(data['stacked']);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue