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

[Bug] 【散点图问题】当散点图设置了 grid.top = "14%" 之后,右上角的散点消失了 #16661

Closed
Bangbabaz opened this issue Mar 10, 2022 · 2 comments · Fixed by #18867

Comments

@Bangbabaz
Copy link

Bangbabaz commented Mar 10, 2022

Version

5.3.1

Link to Minimal Reproduction

No response

Steps to Reproduce

option = {
  xAxis: {},
  yAxis: {},
  grid: {
    top: '14%',
  },
  series: [
    {
      symbolSize: 20,
      data: [
        [1, 1],
        [1, 0],
      ],
      type: 'scatter'
    }
  ]
};

Current Behavior

我在开发散点图的时候遇到了这个问题,好像有不止这一个比例会使右上角的散点消失,例如:15, 16, 20 ,40,可能还有更多
QQ图片20220310155211

Expected Behavior

只要不超出 canvas 的范围,右上角的散点应该显示出来

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@Bangbabaz Bangbabaz added the bug label Mar 10, 2022
@echarts-bot echarts-bot bot added pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Mar 10, 2022
@echarts-bot
Copy link

echarts-bot bot commented Mar 10, 2022

@Bangbabaz It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] [Scatter plot problem] When the scatter plot is set with grid.top = "14%", the scatter in the upper right corner disappears

BODY

Version

5.3.1

Link to Minimal Reproduction

No response

Steps to Reproduce

option = {
xAxis: {},
yAxis: {},
grid: {
top: '14%',
},
series: [
{
symbolSize: 20,
data: [
[1, 1],
[1, 0],
],
type: 'scatter'
}
]
};

Current Behavior

I had this problem when developing a scatter plot, it seems like there is more than one scale that will make the scatter in the upper right corner disappear, eg: 15, 16, 20, 40, maybe more
QQ picture 20220310155211

Expected Behavior

The scatter in the upper right corner should show up as long as it doesn't go beyond the canvas

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@plainheart
Copy link
Member

plainheart commented Mar 10, 2022

#16329 类似。默认情况下系列会裁切超出坐标系的数据点,但因为坐标计算的时候会有微小的偏差导致被误裁切。可以先设置 series.clipfalse 关闭裁切。

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

Successfully merging a pull request may close this issue.

2 participants