Skip to content

fix(web): deduplicate bar chart hover updates - #314

Merged
xingkaixin merged 1 commit into
mainfrom
feat/cs-192-stable-bar-hover
Aug 11, 2026
Merged

fix(web): deduplicate bar chart hover updates#314
xingkaixin merged 1 commit into
mainfrom
feat/cs-192-stable-bar-hover

Conversation

@xingkaixin

Copy link
Copy Markdown
Owner

Summary

  • suppress repeated bar hover callbacks when the column and band are unchanged
  • move daily usage hover state into the token bar subtree so unrelated cost, date, and accessibility content stays stable
  • memoize token chart derivations across hover updates

Performance

  • two pointer events over the same bar now emit one hover update instead of two
  • a hover update no longer rereads unrelated daily rows

Test plan

  • pnpm lint
  • pnpm format:check
  • pnpm test
  • pnpm build

Issue: CS-192

@xingkaixin
xingkaixin merged commit 1584f55 into main Aug 11, 2026
10 checks passed
@xingkaixin
xingkaixin deleted the feat/cs-192-stable-bar-hover branch August 11, 2026 15:55
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.

1 participant