@mermaid-editor-sdk/headless / setPieSliceValue
Function: setPieSliceValue()
setPieSliceValue(
source,label,value):string
Defined in: source/pie-mutations.ts:197
Updates a pie chart slice value.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
label | string | Displayed label. |
value | number | Value to assign. |
Returns
string