Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
"use client";
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
ResponsiveContainer,
} from "recharts";
const mockData = [
{ time: "08:00", moisture: 55 },
{ time: "10:00", moisture: 60 },
{ time: "12:00", moisture: 58 },
{ time: "14:00", moisture: 62 },
{ time: "16:00", moisture: 59 },
];
export default function MoistureGraph() {
return (
<div className="mt-4 h-64 w-full">
<ResponsiveContainer width="100%" height="100%">
<LineChart data={mockData}>
<CartesianGrid strokeDasharray="3 3" />
<XAxis dataKey="time" />
<YAxis domain={[0, 100]} unit="%" />
<Tooltip />
<Line
type="monotone"
dataKey="moisture"
stroke="#4ade80"
strokeWidth={2}
dot={{ r: 3 }}
/>
</LineChart>
</ResponsiveContainer>
</div>
);
}
2f31089fbThis file is pinned to the selected release. Download the original to open it in your design tool.