Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] DataZoom & Scrollbar 数据筛选不符合预期 #1460

Closed
kkxxkk2019 opened this issue Nov 9, 2023 · 0 comments · Fixed by #1506
Closed

[Bug] DataZoom & Scrollbar 数据筛选不符合预期 #1460

kkxxkk2019 opened this issue Nov 9, 2023 · 0 comments · Fixed by #1506
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kkxxkk2019
Copy link
Collaborator

Version

latest

Link to Minimal Reproduction

none

Steps to Reproduce

const CONTAINER_ID = 'chart';

const run = async () => {
  const response = await fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/cars.json');
  const data = await response.json();
  const spec = {
    type: 'scatter',
    xField: 'Miles_per_Gallon',
    yField: 'Horsepower',
    seriesField: 'Origin',
    data: [
      {
        id: 'data',
        values: data.filter(d => d['Horsepower'] && d['Miles_per_Gallon'])
      }
    ],
    dataZoom: [
      {
        orient: 'bottom',
        start: 0,
        end: 0.4,
        visible: false,
        // filterMode: 'axis',
        roamZoom: {
          enable: true
        }
      }
    ],
    axes: [
      {
        title: {
          visible: true,
          text: 'Horse Power'
        },
        orient: 'left',
        type: 'linear'
      },
      {
        title: {
          visible: true,
          text: 'Miles Per Gallon'
        },
        orient: 'bottom',
        label: { visible: true },
        type: 'linear'
      }
    ],
    legends: [{}]
  };
  const vchart = new VChart(spec, { dom: CONTAINER_ID });
  vchart.renderAsync();

  // Just for the convenience of console debugging, DO NOT COPY!
  window['vchart'] = vchart;
};
run();

Current Behavior

REC-20231109160526.mp4

Expected Behavior

fixed

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@kkxxkk2019 kkxxkk2019 added the bug Something isn't working label Nov 9, 2023
@kkxxkk2019 kkxxkk2019 added this to the 1.6.3 milestone Nov 9, 2023
@kkxxkk2019 kkxxkk2019 modified the milestones: 1.6.3, v1.6.4 Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants