Sankey Diagram Config Schema
https://mermaid.js.org/schemas/config.schema.json#/$defs/SankeyDiagramConfig
The object containing configurations specific for sankey diagrams.
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:
600
height
height
is optional
Type:
number
cannot be null
defined in: Mermaid Config
height Type
number
height Default Value
The default value is:
400
linkColor
The color of the links in the sankey diagram.
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:
"gradient"
nodeAlignment
Controls the alignment of the Sankey diagrams.
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:
"justify"
useMaxWidth
useMaxWidth
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
useMaxWidth Type
boolean
showValues
Toggle to display or hide values along with title.
showValues
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
showValues Type
boolean
showValues Default Value
The default value is:
true
prefix
The prefix to use for values
prefix
is optional
Type:
string
cannot be null
defined in: Mermaid Config
prefix Type
string
suffix
The suffix to use for values
suffix
is optional
Type:
string
cannot be null
defined in: Mermaid Config
suffix Type
string