Commit e31d020
committed
feat: ✨ smooth curves + interactive hover for data_visualization charts
- Line and area charts now use monotone-cubic (Fritsch–Carlson) interpolation
for smooth curves that never overshoot the data (safe for negatives).
- Hover behavior matching Slack:
- line/bar show a tooltip with the category and every series value, plus a
dashed vertical guide at the nearest category; line/area also mark each
series' value at that point.
- pie shows a tooltip for the hovered segment, and the slice expands outward
from the pie center.
- All interactivity is client-side and SSR-safe (default render is unchanged).
- Add demo screenshots under .github/assets (excluded from the npm package).
https://claude.ai/code/session_018T7Lik8eFCV8DMtTckZC6a1 parent e069e85 commit e31d020
5 files changed
Lines changed: 412 additions & 157 deletions
File tree
- .github/assets/data-visualization
- src/components/blocks
- test
Loading
Loading
Loading
0 commit comments