-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Bug]: 自定义色板报错 #6612
Comments
看了下代码, https://github.com/antvis/G2/blob/v5/src/runtime/scale.ts
在这里调用了inferOptionsS函数
里面的色板引用了d3的'd3-scale-chromatic',暂不支持自定义色板。 |
这里感觉是一个 bug,应该调用注册得色板。 |
按照这种方式解决了,感谢解答🌹 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug / 问题描述
按照官网文档里的方法自定义色板,控制台报错
代码:
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
Version / 版本
🆕 5.x
OS / 操作系统
Browser / 浏览器
The text was updated successfully, but these errors were encountered: