amcharts / export

Apache License 2.0
56 stars 33 forks source link

PNG/JPG export is not working in Gantt chart in IE10 #33

Closed ksurakka closed 8 years ago

ksurakka commented 8 years ago

Hello,

I'm not sure if this is an issue of export-library or fabric-library, but when trying to export Gantt chart to PNG with IE10, I get: SCRIPT5022: SecurityError fabric.js, line 678 character 1

Can be tested in Amchart demo site: https://www.amcharts.com/demos/gantt-chart/

Best regards Kari S

maertz commented 8 years ago

Hi Kari,

that took a while, the IE10 seems to have an handling issue with the image origin of SVG images. They get misleadingly declared as "tainted" that's why it throws the SecurityError. Luckely we can simply disable the SVG icons to fallback to the PNG icons, therefore I would suggest you to disable svgIcons in your chart setup to solve that. sample: http://codepen.io/team/amcharts/pen/c9212be9eaf066f19810051123de1ff4

maertz commented 8 years ago

Hi Kari, just to let you know that we've handled it within the export plugin as well. We simply remove the SVG images to avoid such behaviour, if you want to keep those icons in IE10 use the svgIcons flag I've mentioned above.

Sincerely Ben