What's new
ng-apexcharts is fully signal-based and standalone, and as of this release the docs, the schematic, and the internals all match that reality.
Features
- Signal-reactive change handling.
ChartComponentno longer usesngOnChanges/SimpleChanges. Series-only changes take the animatedupdateSeries()fast path and keep the same chart instance; structural changes rebuild exactly once, even when combined with a series change in the same tick; a chart with no bound inputs stays inert. ng addinstalls apexcharts^6.7.0.
Bug Fixes
ng addworks again on modern Angular. The 2.4.0 schematic crashed at load on Angular 22, installed an unsupported apexcharts 4.0.0, wrote a no-opimportProvidersFrom(NgApexchartsModule)into standalone app configs, and injected a redundant ~940 KB global script intoangular.json. All four are fixed; re-runningng addalso removes the legacy global script if a previous version added it.- The published package is verified at build time. The schematics now load correctly under the package's module type, the build pipeline can no longer race and drop the schematics, and the npm README can no longer drift from the repo README. Every one of these failure modes is gated by a check that fails the build.
- SSR components use
inject()instead of constructor parameter injection.
Docs
- README and the apexcharts.com Angular guide rewritten for standalone components, signal inputs,
viewChild, zoneless change detection, tree-shaking, and SSR. No more NgModule-first instructions or@Input()listings (refs #510).
Note for subclass authors
ChartComponent no longer implements OnChanges. Code that overrode ngOnChanges or called component.ngOnChanges(...) manually (for example in tests) should set inputs instead; change handling is fully reactive.
Full Changelog: v2.4.0...v2.5.0