Merge pull request #3609 from jasmaa/feature/3593_pie_slice_ordering

Order pie chart slices clockwise by order of entries
This commit is contained in:
Knut Sveidqvist
2022-10-25 14:24:44 +02:00
committed by GitHub
3 changed files with 21 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ Drawing a pie chart is really simple in mermaid.
- Start with `pie` keyword to begin the diagram
- `showData` to render the actual data values after the legend text. This is **_OPTIONAL_**
- Followed by `title` keyword and its value in string to give a title to the pie-chart. This is **_OPTIONAL_**
- Followed by dataSet
- Followed by dataSet. Pie slices will be ordered clockwise in the same order as the labels.
- `label` for a section in the pie diagram within `" "` quotes.
- Followed by `:` colon as separator
- Followed by `positive numeric value` (supported upto two decimal places)