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后,图元点击事件不生效 #3638

Closed
skie1997 opened this issue Jan 3, 2025 · 0 comments · Fixed by #3642
Closed

[Bug] 配置datazoom后,图元点击事件不生效 #3638

skie1997 opened this issue Jan 3, 2025 · 0 comments · Fixed by #3642
Assignees
Labels
bug Something isn't working

Comments

@skie1997
Copy link
Contributor

skie1997 commented Jan 3, 2025

Version

1.13.2

Link to Minimal Reproduction

null

Steps to Reproduce

原因:_foregroundMarkxiang 响应了交互导致图元交互没触发
image
image

const spec = {
  type: 'bar',
  data: [
    {
      id: 'barData',
      values: [
        { month: 'Monday', sales: 22 },
        { month: 'Tuesday', sales: 13 },
        { month: 'Wednesday', sales: 25 },
        { month: 'Thursday', sales: 29 },
        { month: 'Friday', sales: 38 }
      ]
    }
  ],
  xField: 'month',
  yField: 'sales',
  dataZoom: [
      {
          "orient": "bottom",
          "filterMode": "axis"
      }
  ],
  "region": [
      {
        "style": {
            "cursor": "pointer",
        }
      }
  ]
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
vchart.on('pointerup',{markName: 'bar'}, console.log)

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

Current Behavior

20250103183005_rec_

Expected Behavior

响应交互

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

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