mirror of
https://github.com/tiennm99/awesome-ai-dev-tools.git
synced 2026-10-11 03:13:05 +00:00
The emphasis and the bolded row came from Chart.js index-mode interaction, which only recomputes when the x index changes. Moving straight up and down inside one date therefore kept whichever series was picked on entry, so the highlight did not match the line under the cursor. Track the pointer on the canvas instead and derive both the date and the nearest series from pixel distance, so vertical movement re-picks. The built-in tooltip and interaction config are gone; a small plugin draws the vertical guide at the hovered date and a dot where the emphasized series crosses it, replacing the caret and hover point that came with them. Reads are throttled to one per animation frame, and the card now follows the cursor's height instead of the average of forty series.