fix: pie: Don't sort, keep order. Keep color order constant.#7295
fix: pie: Don't sort, keep order. Keep color order constant.#7295knsv merged 1 commit intomermaid-js:developfrom
Conversation
|
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@mermaid-js/examples
mermaid
@mermaid-js/layout-elk
@mermaid-js/layout-tidy-tree
@mermaid-js/mermaid-zenuml
@mermaid-js/parser
@mermaid-js/tiny
commit: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7295 +/- ##
==========================================
- Coverage 3.57% 3.57% -0.01%
==========================================
Files 473 474 +1
Lines 47475 47489 +14
Branches 734 734
==========================================
Hits 1696 1696
- Misses 45779 45793 +14
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
|
@daym, Thank you for the contribution! |

📑 Summary
This keeps the order of the pie slices in the order their values were ordered in the input. Since we still filter out small slices, make sure this doesn't shift colors either.
Resolves #5899
📏 Design Decisions
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSIONis used for all new features.pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.