Spaces:
Running
Running
Commit ·
e5cc00d
1
Parent(s): 500bec8
Fix TypeScript tooltip formatter types in ModelHealth.tsx
Browse files
frontend/src/pages/ModelHealth.tsx
CHANGED
|
@@ -187,7 +187,7 @@ export default function ModelHealth() {
|
|
| 187 |
{signalData.map((s, i) => <Cell key={i} fill={s.color} />)}
|
| 188 |
</Bar>
|
| 189 |
<XAxis dataKey="name" tick={{ fontSize: 10, fill: 'var(--text-muted)' }} axisLine={false} tickLine={false} />
|
| 190 |
-
<Tooltip formatter={(v
|
| 191 |
</BarChart>
|
| 192 |
</ResponsiveContainer>
|
| 193 |
<div style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: 10 }}>
|
|
@@ -227,7 +227,7 @@ export default function ModelHealth() {
|
|
| 227 |
<CartesianGrid strokeDasharray="3 3" stroke="var(--border)" vertical={false} />
|
| 228 |
<XAxis dataKey="name" tick={{ fontSize: 9, fill: 'var(--text-muted)' }} axisLine={false} tickLine={false} />
|
| 229 |
<YAxis tick={{ fontSize: 9, fill: 'var(--text-muted)' }} axisLine={false} tickLine={false} />
|
| 230 |
-
<Tooltip formatter={(v
|
| 231 |
<Bar dataKey="value" radius={[3, 3, 0, 0]}>
|
| 232 |
{cacheBreakdown.map((c, i) => <Cell key={i} fill={c.color} />)}
|
| 233 |
</Bar>
|
|
|
|
| 187 |
{signalData.map((s, i) => <Cell key={i} fill={s.color} />)}
|
| 188 |
</Bar>
|
| 189 |
<XAxis dataKey="name" tick={{ fontSize: 10, fill: 'var(--text-muted)' }} axisLine={false} tickLine={false} />
|
| 190 |
+
<Tooltip formatter={(v) => [v, 'stocks']} contentStyle={{ background: 'var(--bg-card)', border: '1px solid var(--border)', borderRadius: 8, fontSize: 11 }} />
|
| 191 |
</BarChart>
|
| 192 |
</ResponsiveContainer>
|
| 193 |
<div style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: 10 }}>
|
|
|
|
| 227 |
<CartesianGrid strokeDasharray="3 3" stroke="var(--border)" vertical={false} />
|
| 228 |
<XAxis dataKey="name" tick={{ fontSize: 9, fill: 'var(--text-muted)' }} axisLine={false} tickLine={false} />
|
| 229 |
<YAxis tick={{ fontSize: 9, fill: 'var(--text-muted)' }} axisLine={false} tickLine={false} />
|
| 230 |
+
<Tooltip formatter={(v) => [v, 'entries']} contentStyle={{ background: 'var(--bg-card)', border: '1px solid var(--border)', borderRadius: 8, fontSize: 11 }} />
|
| 231 |
<Bar dataKey="value" radius={[3, 3, 0, 0]}>
|
| 232 |
{cacheBreakdown.map((c, i) => <Cell key={i} fill={c.color} />)}
|
| 233 |
</Bar>
|