ecomfe / echarts-wordcloud

Word Cloud extension based on Apache ECharts and wordcloud2.js
1.67k stars 708 forks source link

用Chrome瀏覽器無法執行example #4

Open ShelleyWu0427 opened 8 years ago

ShelleyWu0427 commented 8 years ago

Chrome端Console報錯: (example: optionKeywords.html opened by Chrome) issue

Invalid mask image SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

mikeop5439 commented 6 years ago

请问您解决了吗?我也遇到这个错误了

anotherLee commented 6 years ago

同问,完全使用给出的例子,但是一直报错Invalid mask image(无效的mask image),但是用的图片就是例子里给出的logo,请问是什么原因呢?

anotherLee commented 6 years ago

刚找到一个原因,就是不用file协议打开,开一下http-server运行就不会报这个错误了