making symptoms for scatter chart axes selectable
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user