apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.25k stars 19.61k forks source link

[Bug] Load SVG but radialGradient not work #18407

Open tctdrb opened 1 year ago

tctdrb commented 1 year ago

Version

5.4.1

Link to Minimal Reproduction

No response

Steps to Reproduce

I am using echarts to load SVG , but radialGradient not work.

image

<!DOCTYPE html>

Current Behavior

I am using echarts to load SVG , but radialGradient not work.

Expected Behavior

Make radialGradient working.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

helgasoft commented 1 year ago

agree, Demo Code

plainheart commented 1 year ago

Currently, parsing from SVG is still limited. The case you mentioned is not supported yet. See also https://github.com/ecomfe/zrender/blob/master/src/tool/parseSVG.ts#L556-L596 I believe it would be awesome if we enhanced this feature in the future.

ssjtbcf commented 1 year ago

Currently, parsing from SVG is still limited. The case you mentioned is not supported yet. See also https://github.com/ecomfe/zrender/blob/master/src/tool/parseSVG.ts#L556-L596 I believe it would be awesome if we enhanced this feature in the future.

linearGradient is not work too, Do you have a plan for when to support?