Spaces:
Paused
Paused
Download frontend/src/components/analytics/ASRChart.tsx from Kyoiske/GOAT-Evolution: direct link, hf CLI and curl.
- Browser
- Download file 616 Bytes
-
https://huggingface.co/spaces/Kyoiske/GOAT-Evolution/resolve/main/frontend/src/components/analytics/ASRChart.tsx
- Command line
-
hf download hf://spaces/Kyoiske/GOAT-Evolution/frontend/src/components/analytics/ASRChart.tsx
-
curl -L -o ASRChart.tsx https://huggingface.co/spaces/Kyoiske/GOAT-Evolution/resolve/main/frontend/src/components/analytics/ASRChart.tsx
616 Bytes
| import { Line, LineChart, ResponsiveContainer, XAxis, YAxis } from "recharts"; | |
| export function ASRChart({ data }: { data: { x: number; y: number }[] }) { | |
| return ( | |
| <div className="h-56 rounded-xl border border-slate-700 bg-slate-900/70 p-3"> | |
| <div className="mb-2 text-sm">ASR Trend</div> | |
| <ResponsiveContainer width="100%" height="90%"> | |
| <LineChart data={data}> | |
| <XAxis dataKey="x" stroke="#94a3b8" /> | |
| <YAxis stroke="#94a3b8" /> | |
| <Line type="monotone" dataKey="y" stroke="#22c55e" dot={false} /> | |
| </LineChart> | |
| </ResponsiveContainer> | |
| </div> | |
| ); | |
| } | |