Skip to content

Commit 661dde2

Browse files
committed
spec(ChartTooltip): a dot-only chart's tooltip describes the dot nearest the pointer
Adds module:ChartTooltip/pointMode. On a chart whose primary series are all dot-family marks, ChartTooltip picks the one eligible dot nearest the pointer in x and y, within the dot's painted radius + 8 CSS px; a tie goes to the dot drawn on top, and the card closes beyond reach. Every other chart keeps x-group selection, and utility annotations do not change the mode. For built-in marks, ChartTooltip is the only card renderer: dot marks expose their geometry through a package-private seam and draw no card, halo or hit target, and dotGLInteractive takes no renderTooltip. The pick comes from an exact indexed query; an accelerator may only narrow or confirm its candidates. Pick work runs only while a point-mode tooltip is mounted, and the move-to-paint p95 stays under 16 ms at 10,000 dots under a throttled phone emulation profile. component:ChartTooltip lists the module and changes nothing else.
1 parent 200a36f commit 661dde2

2 files changed

Lines changed: 279 additions & 1 deletion

File tree

‎docs/specs/components/ChartTooltip/ChartTooltip.spec.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ verified_by:
1515
packages/charts/src/ChartTooltip.test.tsx,
1616
apps/storybook/stories/charts/Tooltip.stories.tsx,
1717
]
18-
modules: []
18+
modules: [module:ChartTooltip/pointMode]
1919
families: []
2020
design_specs: []
2121
architecture:

0 commit comments

Comments
 (0)