refactoring

This commit is contained in:
frankknoll
2023-04-15 23:34:05 +02:00
parent f3652bf86a
commit 95b905c0f3

View File

@@ -35,14 +35,14 @@ class BatchCodeDetailsView {
} }
#displayHistogramViewForHistoDescrs(histoDescrs) { #displayHistogramViewForHistoDescrs(histoDescrs) {
this.#displayHeading(histoDescrs.batchcode); this.#displayHeading(histoDescrs.batchcode, histoDescrs['Company']);
this.#displayAdverseReactionReportsChart(histoDescrs); this.#displayAdverseReactionReportsChart(histoDescrs);
this.#displaySelectBatchcodeCombination(histoDescrs.histograms); this.#displaySelectBatchcodeCombination(histoDescrs.histograms);
this.#displayHistogram(histoDescrs.histograms[0]); this.#displayHistogram(histoDescrs.histograms[0]);
} }
#displayHeading(batchcode) { #displayHeading(batchcode, company) {
this.#headingElement.textContent = `Frequencies of reported Symptoms for Batch Code Combinations containing ${batchcode}` this.#headingElement.textContent = `Frequencies of reported Symptoms for Batch Code Combinations containing ${batchcode} from ${company}`
} }
#displayAdverseReactionReportsChart(histoDescrs) { #displayAdverseReactionReportsChart(histoDescrs) {