Skip to content
Open
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
10 changes: 8 additions & 2 deletions app/src/components/history-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,15 @@ export const HistoryChart = ({
return String(label);
}
}}
formatter={(value, name) => (
formatter={(value, name, item) => (
<div className="flex flex-1 justify-between items-center gap-4">
<span className="text-muted-foreground">{name}</span>
<span className="flex items-center gap-2 text-muted-foreground">
<span
className="inline-block h-2.5 w-2.5 shrink-0 rounded-full"
style={{ backgroundColor: item.color }}
/>
{name}
</span>
<span className="font-mono font-medium tabular-nums text-foreground">
{typeof value === "number"
? isPerPackageVariation
Expand Down
Loading