Pie Chart: 0% Label Renders Awkwardly, and Negative Values Crash Parser with Unclear Error #6584
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
When using the
pie
chart in Mermaid.js:0
is rendered with a0%
label that overlaps the edge of the chart.Steps to reproduce
Actual Behavior
MermaidParseError: Parsing failed: unexpected character: - at offset: 81
If "Negative Slice" is removed:
"Zero Slice"
appears in the legend and shows a0%
label at the top, overlapping the chart's border.Screenshots
Code Sample
Setup
Suggested Solutions
For Negative Values:
For Zero Values:
hideZeroSlices: true
flag in config.Documentation:
Update Pie Chart Docs to explain behavior for
0
and negative values.Additional Context
No response
The text was updated successfully, but these errors were encountered: