Skip to content

fix(history-chart): add colored dot to tooltip entries - #151

Merged
evert merged 1 commit into
vltpkg:mainfrom
vltbaudbot:evert/history-chart-tooltip-dots
Aug 26, 2026
Merged

fix(history-chart): add colored dot to tooltip entries#151
evert merged 1 commit into
vltpkg:mainfrom
vltbaudbot:evert/history-chart-tooltip-dots

Conversation

@vltbaudbot

Copy link
Copy Markdown
Contributor

Adds a colored circle matching each line's stroke color in front of the package manager / registry name in the hover tooltip, making it easier to correlate tooltip entries with their corresponding lines in the chart.

The custom formatter was bypassing the built-in ChartTooltipContent indicator dots, so this adds them inline.

Requested by Evert.

Add a colored circle matching each line's stroke color in front of the
package manager / registry name in the hover tooltip, making it easy to
correlate tooltip entries with their lines in the chart.
@evert
evert requested a review from a team August 19, 2026 20:54
@evert
evert enabled auto-merge (squash) August 19, 2026 20:54
@darcyclarke
darcyclarke requested a lite review from Copilot August 26, 2026 20:46
@evert
evert merged commit d6aea24 into vltpkg:main Aug 26, 2026
3 of 4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the HistoryChart tooltip rendering so each tooltip row includes a colored dot intended to match the corresponding line color, improving visual correlation between tooltip entries and chart lines.

Changes:

  • Extends the tooltip formatter to receive the Recharts payload item.
  • Renders an inline colored dot next to the series name inside the tooltip row.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +290 to +293
<span
className="inline-block h-2.5 w-2.5 shrink-0 rounded-full"
style={{ backgroundColor: item.color }}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants