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

Request for 'jitterY' #5876

Closed
1 task done
YiSiWang opened this issue Dec 4, 2023 · 5 comments · Fixed by #5887
Closed
1 task done

Request for 'jitterY' #5876

YiSiWang opened this issue Dec 4, 2023 · 5 comments · Fixed by #5887
Assignees

Comments

@YiSiWang
Copy link
Contributor

YiSiWang commented Dec 4, 2023

AntV Open Source Contribution Plan

  • 我同意将这个 Issue 参与 OSCP 计划

问题描述

为什么 transform 只有 jitterX 没有 jitterY ?(而且也没法用 jitter 实现 jitterY)
用场景:横向条形图和散点图 画在同一视图中,散点图被 coordinate 交换 XY ,需要用 jitterY 进行扰动

Issue 类型

初级任务

任务描述

添加 jitterY

参考

JitterX 的实现

@pearmini
Copy link
Member

pearmini commented Dec 4, 2023

@YiSiWang 要不来贡献一下🌹!很简单的,可以参考 jitterX

@kun6696
Copy link
Contributor

kun6696 commented Dec 5, 2023

认领

@kun6696
Copy link
Contributor

kun6696 commented Dec 5, 2023

image
image
image
我看jitterX 也能实现y方向上面的扰动,是否有增加这个参数 算冗余?

@pearmini
Copy link
Member

pearmini commented Dec 5, 2023

@kun6696 嗯嗯,我最开始也是这么想的,所以没有加 jitterY。但是同时绘制多个 Mark 的时候可能就有问题了,比如 issue 描述里面说的:

横向条形图和散点图 画在同一视图中,散点图被 coordinate 交换 XY ,需要用 jitterY 进行扰动

@kun6696
Copy link
Contributor

kun6696 commented Dec 5, 2023

@YiSiWang 可以把你这个issue例子代码贴出来嘛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants