whisper-money/resources/js/components/charts
Víctor Falcón 721cbef024
feat: single-open Sankey expand, fit overflowing children (#487)
## What

- Expanding a category on the Sankey chart now **collapses any other
open category**, so only one subcategory column is shown at a time.
- Grow the SVG \`viewBox\` to the real content bounds so tall child
stacks no longer get **clipped above or below** the canvas.

## Why

Multiple simultaneously-expanded categories cluttered the chart, and a
parent with 3+ children produced a stack taller than the canvas — the
top entries were cut off (e.g. "Traveling €2,011" rendered half-hidden).

## Tests

- Added a test asserting opening a second parent collapses the first.
- Existing expand/collapse tests still pass (5/5).
2026-06-04 11:35:26 +02:00
..
cashflow-trend-chart.tsx feat(cashflow): add savings and period views (#424) 2026-05-25 16:41:00 +02:00
chart-currency-toggle.test.tsx fix: default account charts to user currency (#271) 2026-04-10 14:41:36 +01:00
chart-currency-toggle.tsx fix: default account charts to user currency (#271) 2026-04-10 14:41:36 +01:00
chart-granularity-toggle.tsx fix(charts): use settings popover for chart controls on mobile (#137) 2026-02-19 16:53:00 +01:00
chart-settings-popover.tsx feat(settings): centralize currency options and split profile/account support (#256) 2026-04-02 19:23:10 +02:00
chart-view-toggle.tsx fix(charts): use settings popover for chart controls on mobile (#137) 2026-02-19 16:53:00 +01:00
index.ts feat(settings): centralize currency options and split profile/account support (#256) 2026-04-02 19:23:10 +02:00
mom-chart.tsx fix: preserve cents in chart amounts (#270) 2026-04-10 15:41:24 +02:00
mom-percent-chart.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
sankey-chart.test.tsx feat: single-open Sankey expand, fit overflowing children (#487) 2026-06-04 11:35:26 +02:00
sankey-chart.tsx feat: single-open Sankey expand, fit overflowing children (#487) 2026-06-04 11:35:26 +02:00