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

refactor: simplify path sort in output Vega specs #9348

Merged
merged 2 commits into from
May 9, 2024
Merged

Conversation

kanitw
Copy link
Member

@kanitw kanitw commented May 9, 2024

Use mark's output x/y instead of a complex expression.

This will make it easier to output the right sort order when we have conditional logic for handling invalid values.

After years of writing Vega-Lite, I just read Vega's mark doc one more time and realized today that we can simplify this part. lol

image

You can see that there is no diff for SVG/png outputs.

(The only SVG change is area_vertical.svg, but the two diffs also look identical.)

Use mark's output x/y instead of a complex expression.

This will make it easier to output the right sort order when we have conditional logic for handling invalid values
@kanitw kanitw requested review from lsh and yhoonkim May 9, 2024 21:46
@kanitw kanitw requested a review from a team as a code owner May 9, 2024 21:46
@kanitw kanitw changed the title refactor: simplify path sort refactor: simplify path sort in output Vega specs May 9, 2024
@kanitw kanitw merged commit 40a59dc into main May 9, 2024
13 checks passed
@kanitw kanitw deleted the kw/simplify-path-sort branch May 9, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants