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

pyecharts 2.0.1 导致1.9功能失效? #2116

Closed
PeikaiLi opened this issue Jan 23, 2023 · 10 comments
Closed

pyecharts 2.0.1 导致1.9功能失效? #2116

PeikaiLi opened this issue Jan 23, 2023 · 10 comments
Labels

Comments

@PeikaiLi
Copy link

问题
'VisualMapOpts' object has no attribute 'extend'

运行环境(系统环境及 pyecharts 版本)
系统环境python 3.9
pyecharts 2.0.1 报错
pyecharts 1.9 正常

代码及截图

截屏2023-01-23 10 14 18

@sunhailin-Leo
Copy link
Member

@PeikaiLi

  • 能提供一下尽可能完整的代码截图嘛?

@Ricardo0114
Copy link

Ricardo0114 commented Feb 1, 2023

@sunhailin-Leo 你好,我碰到了相同的问题,排查出的原因是Grid添加Heatmap

问题
'VisualMapOpts' object has no attribute 'extend'

运行环境(系统环境及 pyecharts 版本)
系统环境python 3.9
pyecharts 2.0.1 报错

代码及截图
image
image

@sunhailin-Leo
Copy link
Member

@Ricardo0114

  • Heatmap 这个之前 1.9 可以嘛?

@Ricardo0114
Copy link

@Ricardo0114

  • Heatmap 这个之前 1.9 可以嘛?

是可以的

@sunhailin-Leo
Copy link
Member

@PeikaiLi @Ricardo0114

  • 下一版修复哈~

@Ricardo0114
Copy link

@sunhailin-Leo 好的,辛苦了!

@PeikaiLi
Copy link
Author

PeikaiLi commented Feb 2, 2023

@PeikaiLi

  • 能提供一下尽可能完整的代码截图嘛?

不好意思,刚刚看到,既然已经有人回复了,我就不贴截图了,期待解决

@bucongfan
Copy link

bucongfan commented Feb 6, 2023

我碰到了相同的问题,但是我发现如果在grid中先加入一个bar或者box(我猜测是有axis的图),再加入heatmap就不会报错。但是heatmap的visualmap会错误的映射给前面的图,目前我没解决这个问题,不知道是否是轴索引的问题? @sunhailin-Leo

@fweiger
Copy link

fweiger commented Feb 8, 2023

在Windows 11上碰到这个问题,卸载到1.9才能使用,不知道具体啥问题。mac明天看下,好像mac没有这个问题

@Mount565
Copy link

@PeikaiLi

  • 能提供一下尽可能完整的代码截图嘛?

完整代码在这里:https://gallery.pyecharts.org/#/Candlestick/professional_kline_brush
在2.0.1版本跑一下就发现了。
这是一个严重bug, VisualMapOpts 是个dict类型,没有extend方法,要改成sequence ?
我只想学个皮毛,完成我的任务就好,谁知遇到了这个问题,害得我翻了半天源码!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants