Skip to content

Incorrectly render lines overflow the chart. #9200

@liyuanqiu

Description

@liyuanqiu

One-line summary [问题简述]

当使用dataZoom进行缩放时,线条会溢出图表。详见下面给出的JSFiddle

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.10
  • Browser version [浏览器类型和版本]: 69
  • OS Version [操作系统类型和版本]: macOS

Expected behaviour [期望结果]

进行缩放时,不要将线条渲染到图表之外。

ECharts option [ECharts配置项]

option = {
       xAxis: {
          type: 'time',
          min: 1462294400000,
          max: 1462294550000,
        },
        yAxis: {
          type: 'category',
          data: ['A', 'B'],
        },
        dataZoom: [{
          type: 'slider',
          xAxisIndex: [0],
        }],
        series: [{
          data: [{
            coords: [
              [1462294400000, 'A'],
              [1462294500000, 'A'],
            ],
          }, {
            coords: [
              [1462294450000, 'B'],
              [1462294550000, 'B'],
            ],
          }],
          type: 'lines',
          coordinateSystem: 'cartesian2d',
          silent: false,
        }]
}

Other comments [其他信息]

http://jsfiddle.net/62t3d9bf/

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions