Skip to content

Scatters are rendered outside of grid when setting axis range #10010

Closed

Description

@NingMengMeng

Version

4.2.1-rc1

Steps to reproduce

When min and max are set for yAxis, those outside the range of min and max are rendered, which is not expected.

option = {
    xAxis: {},
    yAxis: {
        min: 5,
        max: 10
    },
    series: [{
        symbolSize: 20,
        data: [
            [10.0, 8.04],
            [8.0, 6.95],
            [13.0, 7.58],
            [9.0, 8.81],
            [11.0, 8.33],
            [14.0, 9.96],
            [6.0, 7.24],
            [4.0, 4.26],
            [12.0, 10.84],
            [7.0, 4.82],
            [5.0, 5.68]
        ],
        type: 'scatter'
    }]
};

What is expected?

希望低于min和高于max的不要渲染出来
Scatters are not rendered for those outside grid.

What is actually happening?

They are rendered outside grid.

Activity

  1. echarts-bot commented on Feb 28, 2019

    @echarts-bot

    Hi! We've received your issue and please be patient to get responded. 🎉
    The average response time is expected to be within one day for weekdays.

    In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

    Have a nice day! 🍵

  2. added
    en
    pending
    on Feb 28, 2019
  3. added and removed
    pending
    on Feb 28, 2019
  4. added this to the 4.3.0 milestone on Feb 28, 2019
  5. removed
    en
    on Mar 6, 2019
  6. self-assigned this
    on Mar 12, 2019
  7. Ovilia commented on Mar 12, 2019

    @Ovilia
    Contributor

    This is a bug not only for scatter charts. We should apply a clipPath policy such that scatters outside the grid should not be rendered, and for rectangles of bar series, it should be rendered inside the grid area.

  8. modified the milestones: 4.3.0, on Mar 12, 2019
  9. changed the title [-] 散点图的渲染,设置yAxis的min和max[/-] [+]Scatters are rendered outside of grid when setting axis range[/+] on Apr 8, 2019
  10. modified the milestones: , 4.4.0 on Aug 27, 2019
  11. removed their assignment
    on Aug 27, 2019
  12. self-assigned this
    on Sep 2, 2019
  13. pissang commented on Sep 17, 2019

    @pissang
    Contributor

    Added clip option in the commit 0b2b5e6 .It will be included in the release 4.4.0

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