Skip to content

Commit 3dde250

Browse files
committed
feat(web): restore heavier line styling on uptime chart
1 parent 56c40ee commit 3dde250

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

‎apps/web/src/app/usage/_components/UptimeChart.tsx‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -244,42 +244,42 @@ export function UptimeChart({
244244

245245
<ResponsiveContainer width="100%" height={400}>
246246
<LineChart data={data} margin={{ top: 12, right: 24, left: 8, bottom: 24 }}>
247-
<CartesianGrid strokeDasharray="3 3" stroke="#222" />
247+
<CartesianGrid strokeDasharray="3 3" stroke="#333" />
248248
<XAxis dataKey="date" tick={{ fill: "#888", fontSize: 12 }} tickMargin={8} />
249249
<YAxis
250250
domain={[85, 100]}
251251
tick={{ fill: "#888", fontSize: 12 }}
252252
label={{ value: "Uptime %", angle: -90, position: "insideLeft", fill: "#888" }}
253253
/>
254254
<Tooltip content={<CustomTooltip />} />
255-
<Legend wrapperStyle={{ paddingTop: 24 }} iconType="line" iconSize={14} />
256-
{/* Cloud providers — slim background lines */}
257-
<Line type="monotone" dataKey="AWS" stroke="#f59e0b" strokeWidth={1} dot={false} strokeOpacity={0.45} activeDot={{ r: 3 }} />
258-
<Line type="monotone" dataKey="Google Cloud" stroke="#3b82f6" strokeWidth={1} dot={false} strokeOpacity={0.45} activeDot={{ r: 3 }} />
259-
<Line type="monotone" dataKey="Azure" stroke="#8b5cf6" strokeWidth={1} dot={false} strokeOpacity={0.45} activeDot={{ r: 3 }} />
260-
<Line type="monotone" dataKey="Cloudflare" stroke="#ef4444" strokeWidth={1} dot={false} strokeOpacity={0.45} activeDot={{ r: 3 }} />
261-
<Line type="monotone" dataKey="Vercel" stroke="#06b6d4" strokeWidth={1} dot={false} strokeOpacity={0.45} activeDot={{ r: 3 }} />
262-
<Line type="monotone" dataKey="DigitalOcean" stroke="#14b8a6" strokeWidth={1} dot={false} strokeOpacity={0.45} activeDot={{ r: 3 }} />
263-
<Line type="monotone" dataKey="Oracle Cloud" stroke="#ea580c" strokeWidth={1} dot={false} strokeOpacity={0.45} activeDot={{ r: 3 }} />
264-
{/* Blockchain RPCs — dashed mid-emphasis */}
255+
<Legend wrapperStyle={{ paddingTop: 24 }} />
256+
{/* Cloud providers — thinner lines */}
257+
<Line type="monotone" dataKey="AWS" stroke="#f59e0b" strokeWidth={1.5} dot={{ fill: "#f59e0b", r: 2.5 }} strokeOpacity={0.8} />
258+
<Line type="monotone" dataKey="Google Cloud" stroke="#3b82f6" strokeWidth={1.5} dot={{ fill: "#3b82f6", r: 2.5 }} strokeOpacity={0.8} />
259+
<Line type="monotone" dataKey="Azure" stroke="#8b5cf6" strokeWidth={1.5} dot={{ fill: "#8b5cf6", r: 2.5 }} strokeOpacity={0.8} />
260+
<Line type="monotone" dataKey="Cloudflare" stroke="#ef4444" strokeWidth={1.5} dot={{ fill: "#ef4444", r: 2.5 }} strokeOpacity={0.8} />
261+
<Line type="monotone" dataKey="Vercel" stroke="#06b6d4" strokeWidth={1.5} dot={{ fill: "#06b6d4", r: 2.5 }} strokeOpacity={0.8} />
262+
<Line type="monotone" dataKey="DigitalOcean" stroke="#14b8a6" strokeWidth={1.5} dot={{ fill: "#14b8a6", r: 2.5 }} strokeOpacity={0.8} />
263+
<Line type="monotone" dataKey="Oracle Cloud" stroke="#ea580c" strokeWidth={1.5} dot={{ fill: "#ea580c", r: 2.5 }} strokeOpacity={0.8} />
264+
{/* Blockchain RPCs — dashed mid-thickness */}
265265
<Line
266266
type="monotone"
267267
dataKey="Blockchain RPCs"
268268
stroke="#ec4899"
269-
strokeWidth={1.5}
270-
dot={false}
271-
activeDot={{ r: 4 }}
269+
strokeWidth={2}
270+
dot={{ fill: "#ec4899", r: 3 }}
271+
activeDot={{ r: 5 }}
272272
strokeDasharray="5 5"
273-
strokeOpacity={0.75}
273+
strokeOpacity={0.9}
274274
/>
275275
{/* Lava Network — last so it sits on top, thickest line */}
276276
<Line
277277
type="monotone"
278278
dataKey="Lava Network"
279279
stroke="#10b981"
280-
strokeWidth={2.5}
281-
dot={false}
282-
activeDot={{ r: 5, strokeWidth: 2, stroke: "#10b981", fill: "#fff" }}
280+
strokeWidth={4}
281+
dot={{ fill: "#10b981", r: 5, strokeWidth: 2, stroke: "#fff" }}
282+
activeDot={{ r: 7, strokeWidth: 2 }}
283283
strokeOpacity={1}
284284
/>
285285
</LineChart>

0 commit comments

Comments
 (0)