Skip to content

Commit

Permalink
Limit percentageDecimals to 20, the maximum value of Intl.NumberForma…
Browse files Browse the repository at this point in the history
…tOptions.minimumFractionDigits
  • Loading branch information
thedustin committed Feb 5, 2024
1 parent 5f8e2b3 commit af4c232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid/src/docs/syntax/pie.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ Possible pie diagram configuration parameters:
| Parameter | Description | Default value |
| -------------------- | ------------------------------------------------------------------------------------------------------------ | ------------- |
| `textPosition` | The axial position of the pie slice labels, from 0.0 at the center to 1.0 at the outside edge of the circle. | `0.75` |
| `percentageDecimals` | The number of decimal places to show in the percentage label, from 0 to 100. (v<MERMAID_RELEASE_VERSION>+) | `0` |
| `percentageDecimals` | The number of decimal places to show in the percentage label, from 0 to 20. (v<MERMAID_RELEASE_VERSION>+) | `0` |
2 changes: 1 addition & 1 deletion packages/mermaid/src/schemas/config.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
percentageDecimals:
type: number
minimum: 0
maximum: 100
maximum: 20
description: |
The number of decimal places to show in the percentage label.
default: 0
Expand Down

0 comments on commit af4c232

Please sign in to comment.