starting to add sliders to charts

This commit is contained in:
frankknoll
2023-01-29 21:30:27 +01:00
parent 81d91b6368
commit aed3ec8298
3 changed files with 14 additions and 4 deletions

View File

@@ -4,6 +4,10 @@ class UIUtils {
return document.getElementById(templateId).content.firstElementChild.cloneNode(true);
}
static createCanvas() {
return UIUtils.instantiateTemplate('template-canvas');
}
static createChartViewElementWithHeading(heading) {
const chartViewElement = UIUtils.instantiateTemplate('template-ChartView');
chartViewElement.querySelector(".heading").textContent = heading;