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