antvis/G2

constant 比例尺和其余比例尺合并展示图例 #4686

pearmini posted onGitHub

Constant 比例尺合并

对于常量非位置通道(color,opacity)通道的样式效果需要应用到图例上。本质上是需要 constant 比例尺和其余比例尺合并。

案例

<img width="300" alt="image" src="https://user-images.githubusercontent.com/25787943/215530797-efa7976e-432f-46f0-9c3f-a7b0bebc1496.png">

<img width="400" alt="image" src="https://user-images.githubusercontent.com/25787943/215538549-f3194a77-e286-4ae2-940d-d320b8bd2b90.png">

<img width="600" alt="image" src="https://user-images.githubusercontent.com/25787943/215535409-74c6ffba-5793-40ba-ab9d-58b5172b4545.png">


Fund this Issue

$0.00
Funded

Pull requests