ng-apexcharts icon indicating copy to clipboard operation
ng-apexcharts copied to clipboard

I am facing this issue recently when I resize the window the chart works properly or else its not working in angular

Open smitsonani77 opened this issue 2 years ago • 2 comments

          I am facing this issue recently when I resize the window the chart works properly or else its not working in angular

Originally posted by @sujith-sairam in https://github.com/apexcharts/vue-apexcharts/issues/185#issuecomment-1632220316

smitsonani77 avatar Jul 13 '23 16:07 smitsonani77

This happened to me when I was updating the series variable content:

<eui-apex-chart
   [chart]="chart"
   [series]="series">
</eui-apex-chart>
series: ApexAxisChartSeries = [{ data: [] }];

loadChartSeries() {
   this.series[0].data = [/* some data */];
}

It works well if I replace series instead:

series: ApexAxisChartSeries = [];

loadChartSeries() {
   this.series= [{ data: [/* some data */] }];
}

Probably related to how the component expects new values via ngOnChanges.

marcioggs avatar Aug 18 '23 13:08 marcioggs

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 02 '24 14:08 github-actions[bot]