Prevent chart from touching the chart border

This commit is contained in:
Matthias 2023-12-03 15:23:01 +01:00
parent 8288f10cc5
commit fd4fd17580

View File

@ -574,6 +574,12 @@ function initializeChartOptions() {
yAxis: [ yAxis: [
{ {
scale: true, scale: true,
max: (value) => {
return value.max + (value.max - value.min) * 0.02;
},
min: (value) => {
return value.min - (value.max - value.min) * 0.04;
},
}, },
{ {
scale: true, scale: true,