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] customMark 的回调上无法拿到 vgrammar 的语法图元,同 extensionMark 不一致 #2156

Closed
kkxxkk2019 opened this issue Jan 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kkxxkk2019
Copy link
Collaborator

Version

latest

Link to Minimal Reproduction

none

Steps to Reproduce

目前是这么使用的:

customMark: [
  {
    style: {
      x: (datum, ctx) => {
        return ctx.vchart.getChart().getAllSeries()[0].getMarkInName('bar').getProduct().elements; 
     }
    }
  }
]

Current Behavior

customMark ctx.vchart.getChart().getAllSeries()[0].getMarkInName('bar').getProduct().elements 始终为空

Expected Behavior

可以获取到 elements

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@kkxxkk2019 kkxxkk2019 added the bug Something isn't working label Jan 26, 2024
xile611 added a commit that referenced this issue Jan 26, 2024
fix: custom mark should run after all the series marks, fix #2156
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

No branches or pull requests

2 participants