making symptoms for scatter chart axes selectable

This commit is contained in:
frankknoll
2023-11-09 11:29:38 +01:00
parent 15786071c8
commit eb69b5d553
3 changed files with 26383 additions and 12 deletions

View File

@@ -7,7 +7,6 @@ class SymptomVsSymptomChartView {
this.#canvas = canvas;
}
// FK-TODO: refactor
loadAndDisplayChart(symptomX, symptomY) {
Promise
.all([symptomX, symptomY].map(symptom => PrrByVaccineProvider.getPrrByVaccine(symptom)))
@@ -18,12 +17,6 @@ class SymptomVsSymptomChartView {
});
}
setData(histoDescr) {
const data = this.#getData(histoDescr);
this.#chart.config.data = data;
this.#chart.update();
}
#displayChart(symptomX, symptomY, labels, data) {
if (this.#chart != null) {
this.#chart.destroy();