Skip to content

[Bug] Scatter dots sometimes disappear after resizing window #17113

@kayoch1n

Description

@kayoch1n

Version

5.2.1

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. 坐标轴的最大值是100,有的数据点的值正好是100
  2. 偶尔调整窗口大小之后,或者在特定窗口大小的情况下会消失
option = option = {
  xAxis: {
    type: 'value',
    scale: true,
    splitLine: { show: false },
    nameLocation: 'middle',
    nameGap: 25,
    axisLine: { onZero: false },
    name: '百分比',
    axisLabel: { formatter: '{value}%', rotate: 0 },
    max: 100,
    min: 80
  },
  yAxis: {
    scale: true,
    splitLine: { show: false },
    nameGap: 10,
    axisLine: { onZero: false },
    name: '测试y轴',
    axisLabel: { rotate: 0 }
  },
  legend: { right: '10%', width: '80%', top: 5, type: 'scroll' },
  series: [
    {
      name: '有有有',
      type: 'scatter',
      data: [
        [80.53, 6.66, 570, '有有有', '测试节点666666'],
        [100, 8.08, 14, '有有有', '测试节点333【测试用】'],
        [77.78, 9.01, 72, '有有有', '测试节点888【测试用】'],
        [83.6, 17.67, 189, '有有有', '测试节点555'],
        [94.87, 2.23, 156, '有有有', '测试节点444'],
        [100, 8.16, 7, '有有有', '测试节点222【测试用】'],
        [100, 6.54, 81, '有有有', '测试节点111【测试用】']
      ],
      label: { show: true, position: 'inside', formatter: '{@[4]}' },
    },
    {
      name: '无无无',
      type: 'scatter',
      data: [
        [89.8, 7.1, 98, '无无无', '999'],
        [0, 3.33, 170, '无无无', '测试']
      ],
      label: { show: true, position: 'inside', formatter: '{@[4]}' }
    }
  ],
  visualMap: {
    show: false,
    dimension: 2,
    outOfRange: { symbolSize: 10, color: ['rgb(217,217,217)'] },
    inRange: { symbolSize: [10, 30] },
    min: 7,
    max: 570
  },
  grid: { top: 70, left: '10%', right: '10%', bottom: 70 }
};

Current Behavior

  1. 调整窗口大小之后数据点消失,如下图
    image

Expected Behavior

  1. 正常展示数据点,如下图
    image

Environment

- OS: windows
- Browser: chrome 100
- Framework: vue2

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions