Merge branch 'main' into pages

This commit is contained in:
frankknoll
2022-03-20 21:34:43 +01:00
2 changed files with 7 additions and 1 deletions

View File

@@ -56,6 +56,12 @@ class MedianOfFreeBedsByKreisChartView {
}, },
responsive: true, responsive: true,
scales: { scales: {
x: {
title: {
display: true,
text: 'Landkreis'
}
},
y: UIUtils.getPercentageScale(label) y: UIUtils.getPercentageScale(label)
}, },
parsing: { parsing: {

View File

@@ -61,7 +61,7 @@ function _displayMedianOfFreeBedsByKreisChart(canvas, sliderElement, data) {
min: 0, min: 0,
max: data.length - 1 max: data.length - 1
}, },
values => medianOfFreeBedsByKreisChartView.setData(data.slice(values[0], values[1] + 1))); ([start, end]) => medianOfFreeBedsByKreisChartView.setData(data.slice(start, end + 1)));
} }
function createSlider(sliderElement, range, onUpdate) { function createSlider(sliderElement, range, onUpdate) {