Skip to content

Toolbox zoom returns chart in odd state #10224

Closed

Description

@ClemMakesApps

Version

4.2.1

Steps to reproduce

  1. Go to https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-tooltip-touch
  2. Select the first toolbox icon
  3. Select a small area of the chart

What is expected?

Zoomed in area of the chart

What is actually happening?

No data displayed on the chart

2019-04-05 09 41 57

Activity

  1. echarts-bot commented on Apr 5, 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 Apr 5, 2019
  3. Ovilia commented on Apr 8, 2019

    @Ovilia
    Contributor

    This is a bug when no data is selected in the visible area, but areaStyle should still be applied, which in this case is the background color under data lines.
    We should improve our clipping ability so that the area can be rendered and clipped.
    Related to #10010 .

  4. removed
    pending
    on Apr 8, 2019
  5. added this to the milestone on Apr 8, 2019
  6. self-assigned this
    on Apr 16, 2019
  7. modified the milestones: , 4.4.0 on Aug 27, 2019
  8. removed their assignment
    on Aug 27, 2019
  9. self-assigned this
    on Sep 2, 2019
  10. pissang commented on Sep 17, 2019

    @pissang
    Contributor

    It's because there is no point left after the dataZoom component filtered the data.

    Just pushed a commit d80db8e to support filterMode in the toolbox dataZoom.

    Now it can be fixed by the following config:

    toolbox: {
      feature: {
        dataZoom: { filterMode: 'none' }
      }
    }
  11. pissang commented on Sep 17, 2019

    @pissang
    Contributor

    I found in this case. Set filterMode: 'none' in the exists dataZoom also works.

    image

    But if you only want the dataZoom in toolbox. You may need this commit.

  12. Muqeet1 commented on May 25, 2022

    @Muqeet1

    @Ovilia @pissang this issue seems to still linger on even in 5.1.2, I have tried 5.3.2 as well & your fix mentioned here did not work for my use case either,
    I use simple line chart without any areaStyle but the data is quite large most of the time.
    Please re-open this issue or maybe we can create a new one?

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

Metadata

Metadata

Assignees

Labels

bugen

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions