WIP:DatePicker in Messkurven
This commit is contained in:
@@ -206,7 +206,21 @@ const LoopMeasurementChart = () => {
|
|||||||
const date = new Date(zeit);
|
const date = new Date(zeit);
|
||||||
return `${date.getDate()}.${date.getMonth() + 1}`;
|
return `${date.getDate()}.${date.getMonth() + 1}`;
|
||||||
}}
|
}}
|
||||||
tick={{ angle: -25, dy: 5 }} // Dreht die Labels für bessere Übersicht
|
tick={(props) => {
|
||||||
|
const { x, y, payload } = props;
|
||||||
|
const date = new Date(payload.value);
|
||||||
|
return (
|
||||||
|
<text
|
||||||
|
x={x}
|
||||||
|
y={y}
|
||||||
|
dy={5}
|
||||||
|
textAnchor="end"
|
||||||
|
transform={`rotate(-25, ${x}, ${y})`}
|
||||||
|
>
|
||||||
|
{`${date.getDate()}.${date.getMonth() + 1}`}
|
||||||
|
</text>
|
||||||
|
);
|
||||||
|
}} // Dreht die Labels für bessere Übersicht
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<YAxis
|
<YAxis
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const webVersion = "1.6.133";
|
const webVersion = "1.6.134";
|
||||||
export default webVersion;
|
export default webVersion;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit";
|
|||||||
|
|
||||||
// Typ für den State
|
// Typ für den State
|
||||||
export interface VariablesState {
|
export interface VariablesState {
|
||||||
|
selectedChartData: any;
|
||||||
kueBezeichnungen: string[];
|
kueBezeichnungen: string[];
|
||||||
isolationsgrenzwerte: number[];
|
isolationsgrenzwerte: number[];
|
||||||
verzoegerung: number[];
|
verzoegerung: number[];
|
||||||
@@ -40,6 +41,7 @@ export interface VariablesState {
|
|||||||
|
|
||||||
// Initialer Zustand
|
// Initialer Zustand
|
||||||
const initialState: VariablesState = {
|
const initialState: VariablesState = {
|
||||||
|
selectedChartData: null,
|
||||||
kueBezeichnungen: [],
|
kueBezeichnungen: [],
|
||||||
isolationsgrenzwerte: [],
|
isolationsgrenzwerte: [],
|
||||||
verzoegerung: [],
|
verzoegerung: [],
|
||||||
@@ -79,6 +81,9 @@ const variablesSlice = createSlice({
|
|||||||
name: "variables",
|
name: "variables",
|
||||||
initialState,
|
initialState,
|
||||||
reducers: {
|
reducers: {
|
||||||
|
setSelectedChartData(state, action: PayloadAction<any>) {
|
||||||
|
state.selectedChartData = action.payload;
|
||||||
|
},
|
||||||
setVariable(
|
setVariable(
|
||||||
state,
|
state,
|
||||||
action: PayloadAction<{
|
action: PayloadAction<{
|
||||||
@@ -99,6 +104,7 @@ const variablesSlice = createSlice({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export const { setVariable, setVariables } = variablesSlice.actions;
|
export const { setSelectedChartData, setVariable, setVariables } =
|
||||||
|
variablesSlice.actions;
|
||||||
|
|
||||||
export default variablesSlice.reducer;
|
export default variablesSlice.reducer;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const tailwindColors = {
|
const tailwindColors: Record<string, string> = {
|
||||||
"littwin-blue": "#00AEEF", // Hier alle Tailwind-Farben manuell eintragen
|
"littwin-blue": "#00AEEF", // Hier alle Tailwind-Farben manuell eintragen
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user