@mermaid-editor-sdk/headless / setPieSliceLabel
Function: setPieSliceLabel()
setPieSliceLabel(
source,currentLabel,nextLabel):string
Defined in: source/pie-mutations.ts:211
Renames a pie chart slice.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
currentLabel | string | Current slice label. |
nextLabel | string | Replacement slice label. |
Returns
string