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

Pie slices aren't sorted by their label as claimed by docs #5899

Open
ta-mv opened this issue Sep 25, 2024 · 0 comments
Open

Pie slices aren't sorted by their label as claimed by docs #5899

ta-mv opened this issue Sep 25, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@ta-mv
Copy link

ta-mv commented Sep 25, 2024

Description

The current documentation says:

Followed by dataSet. Pie slices will be ordered clockwise in the same order as the labels.

Instead they're sorted by their value. I've read #4774 and I'm not sure if the docs are wrong or I'm using it wrong.

Steps to reproduce

Create a pie chart with data not sorted by value.

Screenshots

image

Code Sample

pie showData
    title Key elements in Product X
    "Calcium" : 42.96
    "Potassium" : 50.05
    "Magnesium" : 10.01
    "Iron" :  5

Setup

  • Mermaid version: v10.9.1 as supplied by the latest version of Joplin
  • Browser and Version: I don't know what Joplin uses.

Suggested Solutions

No response

Additional Context

No response

@ta-mv ta-mv added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant