- Listen to Stimulus
disconnect
event to destroy the chart #1944
- Replace
chartjs/auto
import with explicitChart.register()
call #1263
- Add
chartjs:view-value-change
event #1605
- Remove restriction that prevented Chart.js 3.9 #1518
- Add support for Chart.js version 4
- Change "module" key back to "main" in package.json
- Revert "Change JavaScript package to
type: module
"
- Add Symfony 7 support.
- Change JavaScript package to
type: module
-
Add support for symfony/asset-mapper
-
Add dependency on symfony/stimulus-bundle
-
Minimum required PHP version is now 8.1.
-
Minimum required Symfony version is now 5.4.
- The chart will now automatically re-render if the
view
Stimulus value (i.e. thedata-symfony--ux-chartjs--chart-view-value
attribute) changes. This makes Chart.js work perfectly inside of a LiveComponent.
-
The
chartjs:connect
JavaScript event now bubbles up. -
Add
assets/src
to.gitattributes
to exclude source TypeScript files from installing. -
TypeScript types are now included.
-
[BC BREAK] The
assets/
directory was moved fromResources/assets/
toassets/
. Make sure the path in yourpackage.json
file is updated accordingly. -
The directory structure of the bundle was updated to match modern best-practices.
- Support for
stimulus
version 2 was removed and support for@hotwired/stimulus
version 3 was added. See the @symfony/stimulus-bridge CHANGELOG for more details. - Support added for Symfony 6
- Upgrade Chart.js to version 3
-
[DEPENDENCY CHANGE]
chart.js
is no longer included automatically (#93) butsymfony/flex
will automatically add it to yourpackage.json
file when upgrading. Additionallysymfony/flex
1.13 or higher is now required if installed. -
Chart.js: add horizontalBar type to chart model #87 - @duboiss