diff --git a/docs/MedianOfFreeBedsByKreisChartView.js b/docs/MedianOfFreeBedsByKreisChartView.js index ee94e8537a1..473eece2e69 100644 --- a/docs/MedianOfFreeBedsByKreisChartView.js +++ b/docs/MedianOfFreeBedsByKreisChartView.js @@ -33,7 +33,7 @@ class MedianOfFreeBedsByKreisChartView { label: label, data: data, parsing: { - yAxisKey: 'median_free_beds_in_percent' + xAxisKey: 'median_free_beds_in_percent' }, backgroundColor: 'rgba(0, 255, 0, 1)' } @@ -43,6 +43,7 @@ class MedianOfFreeBedsByKreisChartView { #getOptions(label) { return { + indexAxis: 'y', plugins: { title: { display: true, @@ -56,16 +57,16 @@ class MedianOfFreeBedsByKreisChartView { }, responsive: true, scales: { - x: { + y: { title: { display: true, text: 'Landkreis' } }, - y: UIUtils.getPercentageScale(label) + x: UIUtils.getPercentageScale(label) }, parsing: { - xAxisKey: 'Kreis' + yAxisKey: 'Kreis' } }; } diff --git a/docs/intensivstationen.js b/docs/intensivstationen.js index c49eff31518..37c7c2789a6 100644 --- a/docs/intensivstationen.js +++ b/docs/intensivstationen.js @@ -72,6 +72,7 @@ function createSlider(sliderElement, range, onUpdate) { connect: true, range: range, step: 1, + orientation: 'horizontal' }); sliderElement.noUiSlider.on('update', onUpdate); }