feat(chart): X-Achsen-Labels optimiert für bessere Lesbarkeit

- Jahreszahl aus der X-Achse entfernt, um die Darstellung kompakter zu machen.
- Datumsformat von `TT.MM.YYYY` auf `TT.MM` geändert.
- Achsenbeschriftung um 25° gedreht (`angle: -25`) für bessere Übersicht.
- `dy: 5` hinzugefügt, um die Abstände der Labels anzupassen.
This commit is contained in:
Ismail Ali
2025-03-15 11:42:17 +01:00
parent e0379c24a6
commit da28d64f8c
10 changed files with 22 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ interface BrushState {
endIndex: number;
startDate: string | null;
endDate: string | null;
isBrushReset: boolean; // 🆕 Hinzugefügt für zuverlässigen Reset
}
const initialState: BrushState = {
@@ -13,6 +14,7 @@ const initialState: BrushState = {
endIndex: 0,
startDate: null,
endDate: null,
isBrushReset: false, // 🆕
};
const brushSlice = createSlice({
@@ -24,16 +26,17 @@ const brushSlice = createSlice({
state.endIndex = action.payload.endIndex;
state.startDate = action.payload.startDate || state.startDate;
state.endDate = action.payload.endDate || state.endDate;
state.isBrushReset = false; // 🆕 Sobald Brush gesetzt wird, Reset zurücksetzen
},
resetBrushRange(state) {
state.startIndex = 0;
state.endIndex = 0;
state.startDate = null;
state.endDate = null;
state.isBrushReset = true; // 🆕 Status für Reset setzen
},
},
});
export const { setBrushRange, resetBrushRange } = brushSlice.actions;
export default brushSlice.reducer;