Hooks & Utilities
v1.0.0Added in 1.0.0
The parts every chart is built from: palette, formatters, a measuring container, axes, crosshair, tooltip, legend and data table.
The demo is a small line chart assembled from the kit. Move the mouse over it for a crosshair and a tooltip that flips near the right edge. On a phone, tap a month to pin the readout above your finger, drag sideways to scrub (vertical drags still scroll the page), tap the same month again or anywhere outside to clear it. With the keyboard, Tab to the chart, then Left / Right walk the months, Home / End jump to the ends, PageUp / PageDown move by ten, Escape clears; a live region reads each point. Click or tap a legend entry to hide or show its series, hover or focus one to highlight it.
npx wingo-ui@latest add chart-kitPro item: the CLI needs a Pro account. See plans
Northwind CRM, January to September 2026. Hover, tap or focus the chart and use the arrow keys.
| Month | Revenue | Expenses |
|---|---|---|
| January 2026 | $84,200 | $61,300 |
| February 2026 | $91,800 | $64,900 |
| March 2026 | $88,400 | $70,100 |
| April 2026 | $102,600 | $68,800 |
| May 2026 | $110,900 | $74,200 |
| June 2026 | $98,700 | $79,600 |
| July 2026 | $106,300 | $72,400 |
| August 2026 | $97,500 | $69,900 |
| September 2026 | $128,450 | $81,200 |
tooltip: auto · draw-in: on