updating wording
This commit is contained in:
@@ -59,7 +59,7 @@ class FreeBedsChartView {
|
||||
backgroundColor: 'rgba(0, 0, 150, 1)'
|
||||
},
|
||||
{
|
||||
label: 'Median des Anteils freier Betten',
|
||||
label: 'Median der Anteile freier Betten',
|
||||
data: data,
|
||||
parsing: {
|
||||
yAxisKey: 'median_free_beds_in_percent'
|
||||
|
||||
@@ -11,20 +11,21 @@ class MedianOfFreeBedsByKreisChartView {
|
||||
if (this.#chart != null) {
|
||||
this.#chart.destroy();
|
||||
}
|
||||
const label = 'Median der Anteile freier Betten';
|
||||
this.#chart = new Chart(
|
||||
this.#canvas,
|
||||
{
|
||||
type: 'bar',
|
||||
data: this.#getData(data),
|
||||
options: this.#getOptions()
|
||||
data: this.#getData(data, label),
|
||||
options: this.#getOptions(label)
|
||||
});
|
||||
}
|
||||
|
||||
#getData(data) {
|
||||
#getData(data, label) {
|
||||
return {
|
||||
datasets: [
|
||||
{
|
||||
label: 'Kreis',
|
||||
label: label,
|
||||
data: data,
|
||||
parsing: {
|
||||
yAxisKey: 'median_free_beds_in_percent'
|
||||
@@ -35,7 +36,7 @@ class MedianOfFreeBedsByKreisChartView {
|
||||
};
|
||||
}
|
||||
|
||||
#getOptions() {
|
||||
#getOptions(label) {
|
||||
return {
|
||||
plugins: {
|
||||
title: {
|
||||
@@ -66,7 +67,7 @@ class MedianOfFreeBedsByKreisChartView {
|
||||
max: 100,
|
||||
title: {
|
||||
display: true,
|
||||
text: "Median des Anteils freier Betten"
|
||||
text: label
|
||||
},
|
||||
// FK-TODO: DRY with FreeBedsChartView.js
|
||||
ticks: {
|
||||
|
||||
@@ -18,7 +18,7 @@ FK-FIXME:
|
||||
|
||||
FK-TODO:
|
||||
- Intensivstationen ergänzen durch Tabelle oder Barchart:
|
||||
Kreis => "Median des Anteils freier Betten", absteigend sortiert nach "Median des Anteils freier Betten".
|
||||
Kreis => "Median der Anteile freier Betten", absteigend sortiert nach "Median der Anteile freier Betten".
|
||||
- Darstellung als Dashboard, siehe https://covid-karte.de/ oder https://experience.arcgis.com/experience/3a132983ad3c4ab8a28704e9addefaba
|
||||
|
||||
man 5 fcrontab
|
||||
|
||||
Reference in New Issue
Block a user