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

visualMap.itemSymbol not working as expected #8560

Closed
SevenOutman opened this issue Jun 21, 2018 · 1 comment · Fixed by #14243
Closed

visualMap.itemSymbol not working as expected #8560

SevenOutman opened this issue Jun 21, 2018 · 1 comment · Fixed by #14243

Comments

@SevenOutman
Copy link

SevenOutman commented Jun 21, 2018

One-line summary [问题简述]

visualMap.itemSymbol 以及 visualMap.inRange.symbolSize 无法按照文档介绍的方式工作。

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.1.0 via npm
  • Browser version [浏览器类型和版本]: Chrome 67
  • OS Version [操作系统类型和版本]: Ubuntu 16.04

Expected behaviour [期望结果]

  1. 使用分段式 visualMap 时希望使用圆形 icon,参考文档 http://echarts.baidu.com/option.html#visualMap-piecewise.itemSymbol,将 visualMap.itemSymbol 设为 'circle',并没有起作用。
  2. 阅读源码发现这里的 itemSymbol 配置可能会被 inRange.symbol 覆盖(即便并未设置 inRange.symbol,它的默认值 'roundRect' 也会覆盖 itemSymbol,这不符合预期),因此设置 inRange.symbol'circle',此时可以正常显示圆形图标,但 inRange.symbolSize 不起作用。

ECharts option [ECharts配置项]

option = {
  visualMap: {
    type: 'piecewise',
    itemSymbol: 'circle'
  }
}

Other comments [其他信息]

可以在此官方实例中重现。
http://www.echartsjs.com/gallery/editor.html?c=doc-example/scatter-visualMap-piecewise

@lauraxm
Copy link

lauraxm commented Jun 18, 2019

@Ovilia - this is a duplicate issue for 5719

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

Successfully merging a pull request may close this issue.

2 participants