You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using the export module to export my charts to png/pdf's external from the chart (by calling chart.exportChartLocal) . I have exporting:false on the chart itself.
When i call chart.destroy() the destroyExport() is eventually called (exporting.js line 715 on v4.1.8). I'm getting the error Cannot read property 'length' of undefined within this method because chart.exportSVGElements does not exist. To workaround, i'm manually setting this to an empty array, however this should probably be handled internally by checking it's existence before calling .length on it.
The text was updated successfully, but these errors were encountered:
I guess this happens when setting exporting: false, while should be exporting: { enabled: false } (misconfigured options), example: http://jsfiddle.net/x75ft843/1/
Hi,
I'm currently using the export module to export my charts to png/pdf's external from the chart (by calling
chart.exportChartLocal
) . I haveexporting:false
on the chart itself.When i call
chart.destroy()
thedestroyExport()
is eventually called (exporting.js line 715 on v4.1.8). I'm getting the error Cannot read property 'length' of undefined within this method becausechart.exportSVGElements
does not exist. To workaround, i'm manually setting this to an empty array, however this should probably be handled internally by checking it's existence before calling.length
on it.The text was updated successfully, but these errors were encountered: