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

Support clockwise direction for slices in the Donut Chart #508

Closed
ramkumarkb opened this issue Feb 21, 2024 · 0 comments · Fixed by #509
Closed

Support clockwise direction for slices in the Donut Chart #508

ramkumarkb opened this issue Feb 21, 2024 · 0 comments · Fixed by #509
Assignees
Milestone

Comments

@ramkumarkb
Copy link

Hello,

Currently (as per v0.2.0) - it looks like the Donut Chart goes in anti-clockwise direction when displaying the slices. From the Data Viz best practice, Donut slices usuallygo clockwise (starting at 90deg).

Example -
https://www.eea.europa.eu/data-and-maps/daviz/learn-more/chart-dos-and-donts

  #chart.piechart(    
    data,    
    value-key: 1,    
    label-key: 0,    
    radius: 4,    
    slice-style: colors,    
    inner-radius: 1.8,    
    start: 90deg,    
    stop: 450deg,    
    // outset: 0,    
    inner-label: (content: (value, label) => [#text(white, label)], radius: 110%),    
    // inner-label: (content: none),    
    // outer-label: (content: "%", radius: 110%)    
    outer-label: (content: none)    )

anticlockwise_donut

@johannes-wolf johannes-wolf self-assigned this Feb 21, 2024
@johannes-wolf johannes-wolf added this to the 0.2.1 milestone Feb 21, 2024
@johannes-wolf johannes-wolf linked a pull request Feb 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants