I am facing this issue recently when I resize the window the chart works properly or else its not working in angular
smitsonani77 opened this issue · 2 comments
smitsonani77 commented
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 apexcharts/vue-apexcharts#185 (comment)
marcioggs commented
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.
github-actions commented
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.