antvis/G2

无法自定义颜色吗? #6521

Mrcxt posted onGitHub

问题描述

想自定义柱状图、饼图等的颜色,目前是在style中根据判断设置的色值,但是tooltip和legend的中对应的色值却并未跟着改变,所以我想之后有没有一个字段可以统一自定义色值?

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


参考 demo 使用 color encode 设置就可以统一修改了。

通过 style 不会影响其他组件。

posted by hustcc 5 months ago

Fund this Issue

$0.00
Funded

Pull requests