Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.1.0 渲染方式改成svg,结果绘制的时候还是canvas #8281

Closed
ashen9 opened this issue May 4, 2018 · 4 comments
Closed

4.1.0 渲染方式改成svg,结果绘制的时候还是canvas #8281

ashen9 opened this issue May 4, 2018 · 4 comments
Labels
stale Inactive for a long time. Will be closed in 7 days.

Comments

@ashen9
Copy link

ashen9 commented May 4, 2018

One-line summary [问题简述]

4.1.0 渲染方式改成svg,结果绘制的时候还是canvas

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.1.0
  • Browser version [浏览器类型和版本]: chrome v65.0.3325.181
  • OS Version [操作系统类型和版本]: windows10

Expected behaviour [期望结果]

渲染方式svg

Other comments [其他信息]

我看代码里init方法参数的注释是这样的@param {string} [opts.renderer] Currently only 'canvas' is supported.
是否代表不支持svg模式?

@pissang
Copy link
Contributor

pissang commented May 4, 2018

引入 svg 模块了么?

@ashen9
Copy link
Author

ashen9 commented May 10, 2018

引入了 import 'zrender/lib/svg/svg';
发现问题了,使用 import 'zrender/src/svg/svg';可以,但是柱形图报错如下:
Cannot read property '0' of null
at Object.rotate [as f] (matrix.js?8403:98)

@woshidamaomao
Copy link

woshidamaomao commented May 25, 2018

me too

@stale
Copy link

stale bot commented May 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Inactive for a long time. Will be closed in 7 days. label May 24, 2020
@stale stale bot closed this as completed May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants