refactoring

This commit is contained in:
frankknoll
2023-06-11 10:21:14 +02:00
parent 88b0c92322
commit 7f8e4c1b20
3 changed files with 3 additions and 3 deletions

View File

@@ -126,7 +126,7 @@ class BatchCodeTableInitializer {
#getBarChartDescription(barChartDescriptions, batchcode) { #getBarChartDescription(barChartDescriptions, batchcode) {
const barChartDescription = barChartDescriptions.barChartDescriptions[batchcode]; const barChartDescription = barChartDescriptions.barChartDescriptions[batchcode];
barChartDescription.batchcode = batchcode; barChartDescription.batchcode = batchcode;
barChartDescription.dateRange = barChartDescriptions.dateRange; barChartDescription['dateRange guessed'] = barChartDescriptions['dateRange guessed'];
return barChartDescription; return barChartDescription;
} }

View File

@@ -35,7 +35,7 @@ class BatchcodeByCountryBarChart {
data: barChartDescription["frequencies before deletion"] data: barChartDescription["frequencies before deletion"]
}, },
{ {
label: `frequencies guessed ${this.#dateRange2str(barChartDescription.dateRange)}`, label: `frequencies guessed ${this.#dateRange2str(barChartDescription['dateRange guessed'])}`,
data: barChartDescription["frequencies guessed"] data: barChartDescription["frequencies guessed"]
} }
] ]

View File

@@ -1,5 +1,5 @@
{ {
"dateRange": { "dateRange guessed": {
"start": "02.03.2023", "start": "02.03.2023",
"end": "09.06.2023" "end": "09.06.2023"
}, },