主题
Sankey Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/SankeyDiagramConfig
包含特定于桑基图的配置的对象。
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* |
SankeyDiagramConfig Type
object
(Sankey Diagram Config)
all of
SankeyDiagramConfig Properties
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
width | number | Optional | cannot be null | Mermaid Config |
height | number | Optional | cannot be null | Mermaid Config |
linkColor | Merged | Optional | cannot be null | Mermaid Config |
nodeAlignment | string | Optional | cannot be null | Mermaid Config |
useMaxWidth | boolean | Optional | cannot be null | Mermaid Config |
showValues | boolean | Optional | cannot be null | Mermaid Config |
prefix | string | Optional | cannot be null | Mermaid Config |
suffix | string | Optional | cannot be null | Mermaid Config |
width
width
is optional
Type:
number
cannot be null
defined in: Mermaid Config
width Type
number
width Default Value
The default value is:
json
600
height
height
is optional
Type:
number
cannot be null
defined in: Mermaid Config
height Type
number
height Default Value
The default value is:
json
400
linkColor
桑基图中链接的颜色。
linkColor
is optional
Type: merged type (Details)
cannot be null
defined in: Mermaid Config
linkColor Type
merged type (Details)
any of
linkColor Default Value
The default value is:
json
"gradient"
nodeAlignment
控制桑基图的对齐方式。
See https://github.com/d3/d3-sankey#alignments.
nodeAlignment
is optional
Type:
string
cannot be null
defined in: Mermaid Config
nodeAlignment Type
string
nodeAlignment Constraints
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"left" | Align all inputs to the left. |
"right" | Align all outputs to the right. |
"center" | Like `left`, except that nodes without any incoming links are moved as right as possible. |
"justify" | Like `left`, except that nodes without any outgoing links are moved to the far right. |
nodeAlignment Default Value
The default value is:
json
"justify"
useMaxWidth
useMaxWidth
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
useMaxWidth Type
boolean
showValues
切换以显示或隐藏值以及标题。
showValues
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
showValues Type
boolean
showValues Default Value
The default value is:
json
true
prefix
用于值的前缀
prefix
is optional
Type:
string
cannot be null
defined in: Mermaid Config
prefix Type
string
suffix
用于值的后缀
suffix
is optional
Type:
string
cannot be null
defined in: Mermaid Config
suffix Type
string