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 Rect #4176
Labels
Comments
pepper-nice
added a commit
that referenced
this issue
Oct 1, 2022
pepper-nice
added a commit
that referenced
this issue
Oct 8, 2022
pepper-nice
added a commit
that referenced
this issue
Oct 8, 2022
pepper-nice
added a commit
that referenced
this issue
Oct 8, 2022
pepper-nice
added a commit
that referenced
this issue
Oct 8, 2022
pepper-nice
added a commit
that referenced
this issue
Oct 8, 2022
pearmini
pushed a commit
that referenced
this issue
Oct 8, 2022
* feat: rect mark * feat: add inset in rect shape in cartesian coordinate (#4176)
hustcc
pushed a commit
that referenced
this issue
May 16, 2023
* feat: rect mark * feat: add inset in rect shape in cartesian coordinate (#4176)
hustcc
pushed a commit
that referenced
this issue
May 16, 2023
* feat: rect mark * feat: add inset in rect shape in cartesian coordinate (#4176)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
新增 Rect Mark
主要用于绘制直方图、聚合热力图和矩阵树图。
设计思考
在 4.0 里面的直方图是用 Interval 绘制的,存在的问题有至少有两点:
绘制直方图的图的另一个思路是用 Polygon Mark,但是这样就需要提供 4 个 x 和 4 个 y 用来生成控制点。这样最大的问题就是不能直接使用 StackY 等 transform,因为它们都是只处理两个 y 通道。
所以这里独立一个 Mark 出来:Rect,它的 x 和 y 通道都是离散的,并且只有 2 个 x 通道和 2 个 y 通道。
实现细节
案例验证
目前还没有添加 binX 和 binY transform,所以暂时用矩阵树图验证就好。替换这里的案例如下:
待办
下面两件事情分成两个 PR:
The text was updated successfully, but these errors were encountered: