主题
Pie Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/PieDiagramConfig| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|---|---|---|---|---|---|---|---|
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config.schema.json* |
PieDiagramConfig Type
object (Pie Diagram Config)
all of
PieDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| textPosition | number | Optional | cannot be null | Mermaid Config |
| donutHole | number | Optional | cannot be null | Mermaid Config |
| legendPosition | string | Optional | cannot be null | Mermaid Config |
| highlightSlice | string | Optional | cannot be null | Mermaid Config |
textPosition
切片标签的轴向位置从中心的零到外边缘的 1。
textPosition
is optional
Type:
numbercannot be null
defined in: Mermaid Config
textPosition Type
number
textPosition Constraints
maximum: the value of this number must smaller than or equal to: 1
minimum: the value of this number must greater than or equal to: 0
textPosition Default Value
The default value is:
json
0.75donutHole
甜甜圈孔比例。有效值范围是0到0.9。默认值为0。
donutHole
is optional
Type:
numbercannot be null
defined in: Mermaid Config
donutHole Type
number
donutHole Constraints
maximum: the value of this number must smaller than or equal to: 0.9
minimum: the value of this number must greater than or equal to: 0
donutHole Default Value
The default value is:
json
0legendPosition
图例相对于图表的位置。默认为右侧。
legendPosition
is optional
Type:
stringcannot be null
defined in: Mermaid Config
legendPosition Type
string
legendPosition Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"top" | |
"bottom" | |
"left" | |
"right" | |
"center" |
legendPosition Default Value
The default value is:
json
"right"highlightSlice
高亮具有匹配标签的特定切片。设置为 'hover' 以高亮悬停的切片。
highlightSlice
is optional
Type:
stringcannot be null
defined in: Mermaid Config
highlightSlice Type
string
highlightSlice Default Value
The default value is:
json
""