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

折线图配置 point 样式后,交互的时候,图形样式会覆盖用户配置样式。 #37

Closed
weepy3641 opened this issue Sep 9, 2019 · 0 comments
Assignees

Comments

@weepy3641
Copy link
Contributor

折线图配置 point 样式后,交互的时候,图形样式会覆盖用户配置样式。
需要改 plot 底层。

如下配置项。
hover 时,
期待的效果:点的填充色时粉色,边框色黑色,高亮,移出后恢复。
实际效果:点的填充色变成了主题中的默认色,边框色为红色,移出后有时还不能恢复。

point: {
        visible: true,
        color: 'red',
        size: 5,
        style: {
          fillStyle: 'pink',
          lineWidth: 2,
          strokeStyle: 'black',
        },
      },

原始图表:
image
hover时,鼠标移动到点上:
image
鼠标移出后
image

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

No branches or pull requests

2 participants