Highlights
- It fills the card - the previous release measured the chart's container once, at page load, while the chart was still behind its loading state. The measurement found nothing and never ran again, so the chart fell back to a fixed width exactly as before. It now measures whenever the chart appears, including after its data arrives.
- No jump on load - the chart waits for a real measurement rather than drawing at a guessed size and resizing a moment later.
Changes
Fixes
- fix(company-costs): the trend chart's container measurement runs when the container appears rather than only at mount, so the chart sizes itself to the card instead of falling back to a fixed width.