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
80
forks
source link
TypeError: e.setAttribute is not a function when try to call dataURI() method or download the chart as PNG #67
I have an issue with downloading chart both through the toolbar button and forming chart as a base64 string through dataURI() method. This issue appears with the last version of Apex Charts (3.17.0). With version 3.15.0 everything works fine.
core.js:6185 ERROR Error: Uncaught (in promise): TypeError: e.setAttribute is not a function TypeError: e.setAttribute is not a function at t.value (apexcharts.esm.js:6) at apexcharts.esm.js:6 at new ZoneAwarePromise (zone-evergreen.js:960) at t.value (apexcharts.esm.js:6) at t.value (apexcharts.esm.js:14) at ChartComponent.dataURI (ng-apexcharts.js:280) at VehicleAnalyticsComponent.sendViaEmail (vehicle-analytics.component.ts:238) at VehicleAnalyticsComponent_mat_tab_46_div_4_Template_button_click_1_listener (vehicle-analytics.component.html:118) at executeListenerWithErrorHandling (core.js:21693) at wrapListenerIn_markDirtyAndPreventDefault (core.js:21735) at resolvePromise (zone-evergreen.js:798) at resolvePromise (zone-evergreen.js:750) at zone-evergreen.js:860 at ZoneDelegate.invokeTask (zone-evergreen.js:399) at Object.onInvokeTask (core.js:41264) at ZoneDelegate.invokeTask (zone-evergreen.js:398) at Zone.runTask (zone-evergreen.js:167) at drainMicroTaskQueue (zone-evergreen.js:569) at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:484) at invokeTask (zone-evergreen.js:1621)
Hi guys!
I have an issue with downloading chart both through the toolbar button and forming chart as a base64 string through
dataURI()
method. This issue appears with the last version of Apex Charts (3.17.0). With version 3.15.0 everything works fine.core.js:6185 ERROR Error: Uncaught (in promise): TypeError: e.setAttribute is not a function TypeError: e.setAttribute is not a function at t.value (apexcharts.esm.js:6) at apexcharts.esm.js:6 at new ZoneAwarePromise (zone-evergreen.js:960) at t.value (apexcharts.esm.js:6) at t.value (apexcharts.esm.js:14) at ChartComponent.dataURI (ng-apexcharts.js:280) at VehicleAnalyticsComponent.sendViaEmail (vehicle-analytics.component.ts:238) at VehicleAnalyticsComponent_mat_tab_46_div_4_Template_button_click_1_listener (vehicle-analytics.component.html:118) at executeListenerWithErrorHandling (core.js:21693) at wrapListenerIn_markDirtyAndPreventDefault (core.js:21735) at resolvePromise (zone-evergreen.js:798) at resolvePromise (zone-evergreen.js:750) at zone-evergreen.js:860 at ZoneDelegate.invokeTask (zone-evergreen.js:399) at Object.onInvokeTask (core.js:41264) at ZoneDelegate.invokeTask (zone-evergreen.js:398) at Zone.runTask (zone-evergreen.js:167) at drainMicroTaskQueue (zone-evergreen.js:569) at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:484) at invokeTask (zone-evergreen.js:1621)