-
Notifications
You must be signed in to change notification settings - Fork 612
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
fix: Remove x2/y2 channels for overlaying line and point #8472
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Have a minor comment.
src/normalize/pathoverlay.ts
Outdated
@@ -151,7 +151,7 @@ export class PathOverlayNormalizer implements NonFacetUnitNormalizer<UnitSpecWit | |||
...pick(markDef, ['clip', 'interpolate', 'tension', 'tooltip']), | |||
...lineOverlay | |||
}, | |||
encoding: overlayEncoding | |||
encoding: omit(overlayEncoding, ['y2', 'x2']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(minor) Probably better to do this above once
overlayEncoding = omit(overlayEncoding , ['y2', 'x2']));
above add comment to explain why y2/x2 shouldn't be a part of "overlayEncoding". (Describe an example that we need to trigger this case.)
🚀 PR was released in |
* add example * Remove y2/x2 channel for overlaying lines and points * Add comment
Fixes the overlaying line and point layers not to have x2 and y2 which is either not necessary or can cause unwanted lines.
📦 Published PR as canary version:
5.5.1--canary.8472.2a80c42.0
✨ Test out this PR locally via:
npm install vega-lite@5.5.1--canary.8472.2a80c42.0 # or yarn add vega-lite@5.5.1--canary.8472.2a80c42.0