htr3n commented on issue #16127: URL: https://github.com/apache/echarts/issues/16127#issuecomment-995304513
@pissang @plainheart Regarding the nightly build that you recommended, I've noticed a strange issue. I tried to load the legend icons as dataURI per documentation here: https://echarts.apache.org/en/option.html#legend.data.icon. ```javascript legend: { show: true, data: [ { name: 'LegendIcon', icon: 'image://data:image/svg+xml;base64,PHN2ZyB4bWxuc....' } ] } ``` The React UI can render successfully the icon but the new server-side rendering implementation `renderToSVGString()` raised an error: `ReferenceError: HTMLImageElement is not defined`. It seems it could not load the `dataURI`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org