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

实例化chart的时候,通过 registerTheme 注册的 theme 不起作用。 #2781

Closed
1 task
BBSQQ opened this issue Aug 31, 2020 · 3 comments
Closed
1 task

Comments

@BBSQQ
Copy link
Member

BBSQQ commented Aug 31, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

修改官网 demo
image

Environment Info
g2 4.0.15
System -
Browser -
@bunnyxt
Copy link

bunnyxt commented Sep 1, 2020

啊这...鼠标移动上去能看到确实变成红色了,只不过只是那两个小圈圈变红了

QQ20200901-142146@2x

以下是按照文档推荐的方法使用自定义theme的结果,可以看到变红的行为应该是一样的

QQ20200901-142429@2x

⬆️代码地址:https://codesandbox.io/s/quirky-proskuriakova-tth72?file=/src/index.js

@visiky
Copy link
Member

visiky commented Sep 24, 2020

自定义注册的主题如果只是为了覆盖部分的话 建议继承基础主题来实现
后面会补全自定义主题的文档

@hustcc
Copy link
Member

hustcc commented Jan 29, 2021

ref #3025

@hustcc hustcc closed this as completed Jan 29, 2021
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

4 participants