Repository navigation
feat(mosaic): slide the chart tooltip between bars - #11006
austincalvelage merged 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
19293e3 to
a9f2a3f
Compare
🦋 Changeset detectedLatest commit: a9f2a3f The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
c771688
into
austin/mosaic-bar-chart-component


Description
Stacked on #10960. The chart tooltip now slides between bars instead of jumping, and the chart stops rerendering on every pointer move.
Chart.Tooltipsetsdata-movingfrom the first change of bar until it closes. While it's set, the styled tooltip transitionstopandleft, so the first open still only fades in. Under reduced motion it only fades.hide(). While the selected bar is scrolled out of view the tooltip is hidden and carriesdata-anchor-hidden. Before, a keyboard-selected tooltip stayed pinned on screen.dispatchskips storing it. In swingset dev (headless Chromium, 3 sweeps across the bars), React commits dropped from 321 to 71. Frames over 25 ms at 4× CPU throttle dropped from about 50 to 14.Before
chart-tooltip-before.mp4
After
chart-tooltip-after.mp4
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change