antvis/G2
The issue has been closed
constant 比例尺和其余比例尺合并展示图例 #4686
pearmini posted onGitHub
Constant 比例尺合并
对于常量非位置通道(color,opacity)通道的样式效果需要应用到图例上。本质上是需要 constant 比例尺和其余比例尺合并。
- 这个 https://github.com/antvis/G2/pull/4664 把常量通道的比例尺换成了 costant 比例尺。
- 这个是解决这个 https://github.com/antvis/G2/issues/4603 提到的问题。
案例
<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">