antvis/G2

label in polar coordinate #4224

visiky posted onGitHub

新增内容:

  • limitInShape 的 label transform
  • label autoRotate ? 自动旋转。polar 坐标系下标签自动沿着径向

使用方式:

.label({
    text: 'state',
    position: 'inside',
    fontSize: 10,
    transform: [{ type: 'limitInShape' }],
  });

预览:

<img width="589" alt="image" src="https://user-images.githubusercontent.com/15646325/198212379-3fadb511-a576-40ba-99aa-fd5ada44f278.png">


Fund this Issue

$0.00
Funded

Pull requests