diff --git a/ui/web/templates/charts/stackedlinechartmodal.html b/ui/web/templates/charts/stackedlinechartmodal.html
index 62b6e3df..f0eb324e 100644
--- a/ui/web/templates/charts/stackedlinechartmodal.html
+++ b/ui/web/templates/charts/stackedlinechartmodal.html
@@ -284,12 +284,12 @@
Data Source
break
}
}
-
+
chartData["channels"] = channels;
chartData["things"] = things;
chartData["seriesNames"]= names;
chartData["colors"]=colors;
-
+
if (chartData.aggregationType != "") {
const updateInterval = form.querySelector("#update-interval");
if (chartData.updateInterval === "") {
@@ -316,19 +316,19 @@ Data Source
invalidTimeInput.classList.remove("is-invalid");
invalidTimeInput.classList.add("was-validated");
}
-
+
var widgetID = "stackedLineChart-" + Date.now();
-
+
chartData["Type"] = "stackedLineChart";
addWidget(chartData, widgetID);
metadataBuffer[widgetID] = chartData;
-
+
form.reset();
form.classList.remove("was-validated");
bootstrap.Modal.getInstance(document.getElementById("stackedLineChartModal")).hide();
-
+
});
-
+
document.querySelectorAll(".close-stackedLineChart-button").forEach((element) => {
const form = document.getElementById("create-stackedLineChart-form");
element.addEventListener("click", function () {
@@ -338,7 +338,7 @@ Data Source
form.classList.remove("was-validated");
})
});
-
+
function addRow() {
const uuidPattern = "{{ .UUIDPattern }}";
const table = document
@@ -366,7 +366,7 @@ Data Source
`;
}
-
+
function removeRow(button) {
const row = button.parentNode.parentNode;
row.parentNode.removeChild(row);