antvis/G2

Add Coordinate #4137

pearmini posted onGitHub

坐标系

对位置通道进行坐标变换。

  • cartesian
  • polar
  • transpose
  • theta
  • parallel
  • fisheye
  • helix

注意

暂时不对外暴露 reflect 相关的坐标系,因为会增加绘制坐标轴的复杂度,同时可以通过设置比例尺的 range 达到相同的效果。

// 本来的坐标系
G2.render({
  scale: {
    y: { range:[0, 1] }
  }
})

// 实现 Reflect 的效果
G2.render({
  scale: {
    y: { range:[1, 0] }
  }
})

Fund this Issue

$0.00
Funded

Pull requests