Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Coordinate #4137

Closed
7 tasks
pearmini opened this issue Sep 13, 2022 · 0 comments
Closed
7 tasks

Add Coordinate #4137

pearmini opened this issue Sep 13, 2022 · 0 comments
Assignees
Labels

Comments

@pearmini
Copy link
Member

pearmini commented Sep 13, 2022

坐标系

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

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

注意

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

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

// 实现 Reflect 的效果
G2.render({
  scale: {
    y: { range:[1, 0] }
  }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants