Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork21
feat: add support for "unit stacking"#105
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
netlifybot commentedJun 2, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
❌ Deploy Preview forsvelteplot failed.
|
netlifybot commentedSep 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview forsvelteplot ready!
To edit notification comments on pull requests, go to yourNetlify project configuration. |
de43fa3 to78482e2Compare78482e2 tobee49a6Compare📦 Preview package for this PR is published! Version: Install it with: npm install svelteplot@pr-105# or install the specific versionnpm install svelteplot@0.4.4-pr-105.0 |
📦 Preview package for this PR is published! Version: Install it with: npm install svelteplot@pr-105# or install the specific versionnpm install svelteplot@0.4.4-pr-105.1 |
📦 Preview package for this PR is published! Version: Install it with: npm install svelteplot@pr-105# or install the specific versionnpm install svelteplot@0.4.4-pr-105.2 |
3961bb6 intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
resolves#102
This pull request introduces several improvements and bug fixes across the transforms, marks, and helpers in the codebase, focusing on more robust stacking, sorting, and recordizing logic. The most significant changes are enhancements to the stacking transforms with more comprehensive tests, improved sorting behavior for strings and dates, and better handling of raw value arrays in recordizing functions.
Transform logic improvements
stack.tsto handle both grouped and unit stacking, ensuring series identities remain consistent and supporting more stacking modes. Added support for facet stacking and improved handling of raw value arrays.[1][2][3]stackYandstackXtransforms, covering basic, centered, normalized, facet, unit, and recordized array stacking scenarios.Sorting enhancements
sorttransform to handle string and date sorting correctly usinglocaleComparefor strings and numeric comparison for dates. Also, non-finite sort values are mapped toInfinityto avoid sort errors.Recordizing and accessor fixes
recordizeXandrecordizeYto exclude irrelevant channels (x,x1,x2ory,y1,y2) when the input data is a raw value array, preventing channel pollution and improving downstream transforms.[1][2]resolvePropto use a more robust check for the presence ofRAW_VALUEon a datum, improving type safety.Mark and formatting tweaks
Plot.svelteandColorLegend.sveltefor more compact and grouped number display, improving chart readability.[1][2]AreaY.svelteto import required constants and functions for improved mark rendering.