File tree 3 files changed +42
-27
lines changed
3 files changed +42
-27
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ interface Props {
73
73
isListenausgabe: boolean ;
74
74
isNotHeatmap: boolean ;
75
75
loadingFile: boolean ;
76
- openPdfReportDialog: boolean ;
76
+ openPdfReportDialog? : boolean ;
77
77
}
78
78
79
79
const props = withDefaults (defineProps <Props >(), {
Original file line number Diff line number Diff line change @@ -132,6 +132,9 @@ const optionsDefault = computed(() => {
132
132
return value .toLocaleString ();
133
133
},
134
134
},
135
+ axisLine: {
136
+ show: true ,
137
+ },
135
138
},
136
139
{
137
140
type: " value" ,
@@ -144,6 +147,9 @@ const optionsDefault = computed(() => {
144
147
return ` ${value .toLocaleString ()} % ` ;
145
148
},
146
149
},
150
+ axisLine: {
151
+ show: true ,
152
+ },
147
153
},
148
154
],
149
155
series: seriesEntriesChart .value ,
@@ -214,6 +220,9 @@ const options2x4 = computed(() => {
214
220
return value .toLocaleString ();
215
221
},
216
222
},
223
+ axisLine: {
224
+ show: true ,
225
+ },
217
226
},
218
227
{
219
228
type: " value" ,
@@ -226,6 +235,9 @@ const options2x4 = computed(() => {
226
235
return ` ${value .toLocaleString ()} % ` ;
227
236
},
228
237
},
238
+ axisLine: {
239
+ show: true ,
240
+ },
229
241
},
230
242
{
231
243
name: " Fahrzeuge" ,
@@ -237,6 +249,9 @@ const options2x4 = computed(() => {
237
249
return value .toLocaleString ();
238
250
},
239
251
},
252
+ axisLine: {
253
+ show: true ,
254
+ },
240
255
gridIndex: 1 ,
241
256
},
242
257
{
@@ -250,6 +265,9 @@ const options2x4 = computed(() => {
250
265
return ` ${value .toLocaleString ()} % ` ;
251
266
},
252
267
},
268
+ axisLine: {
269
+ show: true ,
270
+ },
253
271
gridIndex: 1 ,
254
272
},
255
273
],
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ const xAxis = computed(() => {
136
136
});
137
137
138
138
const options = computed (() => {
139
- const options = {
139
+ return {
140
140
tooltip: {
141
141
trigger: " axis" ,
142
142
formatter : function (params : any []) {
@@ -244,39 +244,36 @@ const options = computed(() => {
244
244
return value .toLocaleString ();
245
245
},
246
246
},
247
+ axisLine: {
248
+ show: true ,
249
+ },
250
+ },
251
+ {
252
+ type: " value" ,
253
+ name: " in Prozent" ,
254
+ show: showSecondYAxis .value ,
255
+ min: 0 ,
256
+ max: yAxisMax .value ,
257
+ interval: yAxisInterval .value ,
258
+ axisLabel: {
259
+ formatter : function (value : number ) {
260
+ return ` ${value .toLocaleString ()}% ` ;
261
+ },
262
+ },
263
+ axisLine: {
264
+ show: true ,
265
+ },
247
266
},
248
- // Zweite Achse wird ggf. weiter unten gesetzt
249
267
],
250
268
series: seriesEntriesChart .value ,
251
269
};
252
-
253
- if (secondYAxis .value ) {
254
- options .yAxis [1 ] = secondYAxis .value ;
255
- }
256
-
257
- return options ;
258
270
});
259
271
260
- const secondYAxis = computed (() => {
261
- if (
272
+ const showSecondYAxis = computed (() => {
273
+ return (
262
274
filterOptions .value .schwerverkehrsanteilProzent ||
263
275
filterOptions .value .gueterverkehrsanteilProzent
264
- ) {
265
- return {
266
- type: " value" ,
267
- name: " in Prozent" ,
268
- min: 0 ,
269
- max: yAxisMax .value ,
270
- interval: yAxisInterval .value ,
271
- axisLabel: {
272
- formatter : function (value : number ) {
273
- return ` ${value .toLocaleString ()}% ` ;
274
- },
275
- },
276
- };
277
- } else {
278
- return undefined ;
279
- }
276
+ );
280
277
});
281
278
282
279
/**
You can’t perform that action at this time.
0 commit comments