feat: Brush-Achsenbeschriftung auf Datumsformat umgestellt
- TickFormatter für Brush angepasst, sodass anstelle von Unix-Timestamps jetzt das formatierte Datum (TT.MM.JJJJ) angezeigt wird. - Redux-Brush-Slice um `startDate` und `endDate` erweitert, um die Auswahlbereiche mit Datum statt Indizes zu speichern. - Brush-Event-Handler (`handleBrushChange`) aktualisiert, sodass Start- und Enddatum beim Verschieben im Redux-Store gespeichert werden.
This commit is contained in:
@@ -6,11 +6,15 @@ const brushSlice = createSlice({
|
||||
initialState: {
|
||||
startIndex: 0,
|
||||
endIndex: 0,
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
},
|
||||
reducers: {
|
||||
setBrushRange(state, action) {
|
||||
state.startIndex = action.payload.startIndex;
|
||||
state.endIndex = action.payload.endIndex;
|
||||
state.startDate = action.payload.startDate || state.startDate;
|
||||
state.endDate = action.payload.endDate || state.endDate;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user