apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

the min/max of yAxis don't match the boundary of selected area when using toolbox zoom button #14709

Closed loadingwyn closed 1 year ago

loadingwyn commented 3 years ago

Version

4.9.0

Steps to reproduce

config = {
    ...
    toolbox: {
          show: true,
          feature: {
            dataZoom: {
              filterMode: 'none'
            }
          }
        },
        dataZoom: [
          ...channelList.map((c, i) => ({
            type: 'inside',
            // xAxisIndex: 'none',
            filterMode: 'none' as any,
            yAxisIndex: i
          })),
          {
            type: 'inside',
            // xAxisIndex: 'none',
            filterMode: 'none',
            xAxisIndex: 0
          },
          {
            type: 'slider',
            // xAxisIndex: 'none',
            filterMode: 'none',
            xAxisIndex: 0
          }
    }
}

(I don't assign any fixed min/max for yAxis) image

What is expected?

the max and min of y axis should match the selected area. For this case, no data point should be shown on the graph because no one is in the selected area, no matter whether min/max of yaxis is set to a fixed value or not

What is actually happening?

the max of y axis is the max value of the curve. image

Demo

https://codesandbox.io/s/clever-proskuriakova-pmds2?file=/src/index.js

echarts-bot[bot] commented 3 years ago

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.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵

echarts-bot[bot] commented 3 years ago

@loadingwyn Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

loadingwyn commented 3 years ago

Demo added @Ovilia

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!