apexcharts / ng-apexcharts

ng-apexcharts is an implementation of apexcharts for angular. It comes with one simple component that enables you to use apexcharts in an angular project.
MIT License
320 stars 79 forks source link

charts re-render after initial render #220

Closed nileshbhagwat closed 2 years ago

nileshbhagwat commented 2 years ago

It also fixes #152.

Angular execute hooks in following sequence
1. ngOnChanges called  before ngOnInit
2. ngOnInit called once after the first ngOnChanges
3. Further ngOnChanges is called if there are any sub-sequent changes in component inputs

In first load, render function (through createElement) is called twice (RC - seq.1 & 2 both executed)

For details, https://angular.io/guide/lifecycle-hooks
nileshbhagwat commented 2 years ago

@junedchhipa please review