echarts-gl icon indicating copy to clipboard operation
echarts-gl copied to clipboard

Server side rendering (ssr) fails with forceatlas2

Open digital-codes opened this issue 3 years ago • 0 comments

I'm using echarts-gl in a project with vite bundler. Server side rendering fails due to the use of "window.URL.createObjectURL" in src/chart/graphGL/ForceAtlas2.js. The "window" object is only available in browser environment. I can work around by using "client-only" rendering, but this is inconvenient. Not sure how to handle this properly though ... Can we leave generating the blob to the user?

digital-codes avatar Sep 05 '22 09:09 digital-codes