Skip to content

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

@Bangbabaz

Description

@Bangbabaz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions