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
310 stars 78 forks source link

fix: make SSR compatible #339

Closed arturovt closed 1 day ago

arturovt commented 2 weeks ago

In this commit, we have adjusted the chart to render only in the browser. Additionally, we need to lazy load the ApexCharts library in the browser as well. This is necessary because the library statically assumes the presence of the window object without checking whether it is available, leading to an error stating that "window is not defined".

Closes #166

junedchhipa commented 1 week ago

@arturovt Thanks for the contribution. Can you please fix the conflicts before it can be merged?