WIP:DatePicker in Messkurven
This commit is contained in:
@@ -206,7 +206,21 @@ const LoopMeasurementChart = () => {
|
||||
const date = new Date(zeit);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user