Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions dashboard/src/skills/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,20 @@ function Sparkline({
}
return (
<ResponsiveContainer width="100%" height={80}>
<LineChart data={data} margin={{ top: 6, right: 6, bottom: 0, left: 0 }}>
<LineChart data={data} margin={{ top: 6, right: 6, bottom: 0, left: 4 }}>
<XAxis
dataKey="date"
tickFormatter={shortDate}
tick={{ fontSize: 10 }}
interval="preserveStartEnd"
minTickGap={16}
/>
<YAxis hide domain={["auto", "auto"]} />
<YAxis
domain={["auto", "auto"]}
tickFormatter={format}
tick={{ fontSize: 10 }}
width={40}
/>
<Tooltip
formatter={(value) => {
// Missing-data days carry null; show a placeholder
Expand All @@ -114,7 +119,7 @@ function Sparkline({
stroke="var(--color-focus, #3b82f6)"
strokeWidth={2}
dot={{ r: 2 }}
connectNulls={false}
connectNulls={true}
isAnimationActive={false}
/>
</LineChart>
Expand Down
Loading