Skip to content

Incorrectly render lines overflow the chart. #9200

Closed

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/

Activity

  1. Ovilia commented on Oct 12, 2018

    @Ovilia
    Contributor

    We should probably put dataZoom overflow bug at a higher priority. @100pah
    See also #8935.

  2. added this to the 4.4.0 milestone on Aug 27, 2019
  3. self-assigned this
    on Sep 2, 2019
  4. Ovilia commented on Sep 4, 2019

    @Ovilia
    Contributor

    Check if #10748 is the same problem.

  5. liyuanqiu commented on Sep 5, 2019

    @liyuanqiu
    Author

    Check if #10748 is the same problem.

    Maybe the same problem.

  6. Ovilia commented on Sep 5, 2019

    @Ovilia
    Contributor

    #11010 may also be related.

  7. pissang commented on Sep 17, 2019

    @pissang
    Contributor

    Added clip option for lines series in the commit 94dfc92 . It will be included in version 4.4.0

    Here is the screenshot after fixed.
    image

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions