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

Broken x-axis encoding for bar mark without y channel. Stack error? #7333

Closed
jheer opened this issue Mar 25, 2021 · 0 comments · Fixed by #7666
Closed

Broken x-axis encoding for bar mark without y channel. Stack error? #7333

jheer opened this issue Mar 25, 2021 · 0 comments · Fixed by #7666
Assignees
Labels
Bug 🐛 P2 Important Issues that should be fixed soon

Comments

@jheer
Copy link
Member

jheer commented Mar 25, 2021

Consider this example spec, which uses a binned x-domain and no y encoding. The result should be bars that fit the data domain and use the full group height. However, the x-axis domain is way too large, which appears to be the result of an automatically added but inappropriate stack transform in the output Vega spec. This error appears to have been introduced with the VL 5 release.

In Vega-Lite 4, the spec above worked without any explicit stack property. To get this to work in v5 I have to add an explicit stack: false, as in this example.

Note that this bug is preventing me from seamlessly porting a Crossfilter example on Observable to VL 5.

@jheer jheer added the Bug 🐛 label Mar 25, 2021
@kanitw kanitw added the P2 Important Issues that should be fixed soon label Aug 15, 2021
kanitw added a commit that referenced this issue Aug 28, 2021
kanitw added a commit that referenced this issue Aug 29, 2021
kanitw added a commit that referenced this issue Aug 30, 2021
kanitw added a commit that referenced this issue Aug 30, 2021
* fix: don't stack binned field

fix #7333

* chore: update TOC [CI]

* chore: update examples [CI]

Co-authored-by: GitHub Actions Bot <vega-actions-bot@users.noreply.github.com>
BradyJ27 pushed a commit to BradyJ27/vega-lite that referenced this issue Oct 19, 2023
* fix: don't stack binned field

fix vega#7333

* chore: update TOC [CI]

* chore: update examples [CI]

Co-authored-by: GitHub Actions Bot <vega-actions-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 P2 Important Issues that should be fixed soon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants