npm chart.js 4.6.2
v4.6.2

one hour ago

Essential Links

Bugs Fixed

  • #12411 fix: skip missing active elements when setting hover
  • #12414 fix: apply category bounds after inferring labels
  • #12421 fix: let responsive charts grow back in containers sized by their content
  • #12426 fix: zero tick format bounds, plus docs and tests for the 4.6.2 scale and legend fixes
  • #12415 fix: exclude explicit scale bounds from grace
  • #12379 fix: align inner tick labels inwards on reversed linear axes
  • #12352 fix: do not throw when ticks.format sets only one fraction digits bound
  • #12348 fix(legend): call onLeave on mouseout over a legend item
  • #12339 Fix width calculation for multiline vertical legend labels
  • #12323 Fix resize update mode being an array when resizeDelay is set
  • #12292 fix legend line point style not showing the dataset dash
  • #12282 Fix floating point drift in generated linear scale ticks
  • #12289 fix(scale): make time getValueForPixel the inverse of getPixelForValue
  • #12302 fix: apply number format options to zero ticks
  • #12420 fix(tooltip): tolerate a missing dataset controller on events outside chartArea
  • #12419 fix: update before drawing when a resize arrives before the first update
  • #12194 fix: handle splice with single argument
  • #12286 fix(helpers): resolveObjectKey returns wrong value for Object.prototype keys

Types

  • #12264 fix(types): allow skipNull on bar datasets

Documentation

  • #12404 docs: describe multiple axes with the scales option instead of xAxes/yAxes
  • #12393 docs: fix tooltip titleSpacing, bodySpacing and footerSpacing descriptions
  • #12377 docs(elements): document point and bar hover color options
  • #12338 docs: fix broken in-page anchors
  • #12278 docs: note lineTension rename to tension in v3 migration guide
  • #12410 Clarify chart-specific legend overrides
  • #12228 Minor bug fix in usage.md example code
  • #12394 docs: remove duplicated word in doughnut spacing JSDoc

Development

  • #12433 chore: version bump to 4.6.2 to prepare for release
  • #12424 docs: design the migration of the docs site from VuePress to VitePress
  • #12423 docs: design the migration of the test suite from Karma to Vitest
  • #12402 add oklch colors by updating to @kurkle/color 0.6
  • #12270 Add regression test for enter animation with fractional container width
  • #12417 chore: remove unused coveralls dev dependency
  • #12408 chore: upgrade rollup to v4 and karma/jasmine dependencies
  • #12407 Upgrade to pnpm 12 and node lts 26

Thanks to @Aurantium-47, @Hashim1999164, @HuzaifaChaudary, @MarkAStevens04, @Ph0tonic, @SatvikMishra08, @SrkianFardin25, @UlikGames, @adityajai119, @azizu06, @contactjawad, @dieterstemmet, @etimberg, @farisbasha, @kerdofficial, @kurkle, @kwy404, @ninglinLiu, @pei711, @pentaoa, @puneetdixit200, @spokodev, @veeceey, @wozhenbang2004 and @zizhao-hu

Don't miss a new chart.js release

NewReleases is sending notifications on new releases.