Gantt Diagram Config Schema β
https://mermaid.js.org/schemas/config.schema.json#/$defs/GanttDiagramConfig
The object containing configurations specific for gantt 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* |
GanttDiagramConfig Type β
object
(Gantt Diagram Config)
all of
GanttDiagramConfig Properties β
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
titleTopMargin | integer | Required | cannot be null | Mermaid Config |
barHeight | integer | Required | cannot be null | Mermaid Config |
barGap | integer | Optional | cannot be null | Mermaid Config |
topPadding | integer | Required | cannot be null | Mermaid Config |
rightPadding | integer | Required | cannot be null | Mermaid Config |
leftPadding | integer | Required | cannot be null | Mermaid Config |
gridLineStartPadding | integer | Required | cannot be null | Mermaid Config |
fontSize | integer | Required | cannot be null | Mermaid Config |
sectionFontSize | integer | Required | cannot be null | Mermaid Config |
numberSectionStyles | integer | Required | cannot be null | Mermaid Config |
axisFormat | string | Required | cannot be null | Mermaid Config |
tickInterval | string | Optional | cannot be null | Mermaid Config |
topAxis | boolean | Required | cannot be null | Mermaid Config |
displayMode | string | Optional | cannot be null | Mermaid Config |
weekday | string | Required | cannot be null | Mermaid Config |
titleTopMargin β
Margin top for the text over the diagram
titleTopMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
titleTopMargin Type β
integer
titleTopMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value β
The default value is:
25
barHeight β
The height of the bars in the graph
barHeight
is required
Type:
integer
cannot be null
defined in: Mermaid Config
barHeight Type β
integer
barHeight Constraints β
minimum: the value of this number must greater than or equal to: 0
barHeight Default Value β
The default value is:
20
barGap β
The margin between the different activities in the gantt diagram
barGap
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
barGap Type β
integer
barGap Constraints β
minimum: the value of this number must greater than or equal to: 0
barGap Default Value β
The default value is:
4
topPadding β
Margin between title and gantt diagram and between axis and gantt diagram.
topPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
topPadding Type β
integer
topPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
topPadding Default Value β
The default value is:
50
rightPadding β
The space allocated for the section name to the right of the activities
rightPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
rightPadding Type β
integer
rightPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
rightPadding Default Value β
The default value is:
75
leftPadding β
The space allocated for the section name to the left of the activities
leftPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
leftPadding Type β
integer
leftPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
leftPadding Default Value β
The default value is:
75
gridLineStartPadding β
Vertical starting position of the grid lines
gridLineStartPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
gridLineStartPadding Type β
integer
gridLineStartPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
gridLineStartPadding Default Value β
The default value is:
35
fontSize β
Font size
fontSize
is required
Type:
integer
cannot be null
defined in: Mermaid Config
fontSize Type β
integer
fontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
fontSize Default Value β
The default value is:
11
sectionFontSize β
Font size for sections
sectionFontSize
is required
Type:
integer
cannot be null
defined in: Mermaid Config
tsType:
string | number
sectionFontSize Type β
integer
sectionFontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
sectionFontSize Default Value β
The default value is:
11
numberSectionStyles β
The number of alternating section styles
numberSectionStyles
is required
Type:
integer
cannot be null
defined in: Mermaid Config
numberSectionStyles Type β
integer
numberSectionStyles Constraints β
minimum: the value of this number must greater than or equal to: 0
numberSectionStyles Default Value β
The default value is:
4
axisFormat β
Date/time format of the axis
This might need adjustment to match your locale and preferences.
axisFormat
is required
Type:
string
cannot be null
defined in: Mermaid Config
axisFormat Type β
string
axisFormat Default Value β
The default value is:
"%Y-%m-%d"
tickInterval β
axis ticks
Pattern is:
/^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/;
tickInterval
is optional
Type:
string
cannot be null
defined in: Mermaid Config
tickInterval Type β
string
tickInterval Constraints β
pattern: the string must match the following regular expression:
/^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/
topAxis β
When this flag is set, date labels will be added to the top of the chart
topAxis
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
topAxis Type β
boolean
displayMode β
Controls the display mode.
displayMode
is optional
Type:
string
cannot be null
defined in: Mermaid Config
displayMode Type β
string
displayMode Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"" | |
"compact" | Enables displaying multiple tasks on the same row. |
weekday β
On which day a week-based interval should start
weekday
is required
Type:
string
cannot be null
defined in: Mermaid Config
weekday Type β
string
weekday Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"monday" | |
"tuesday" | |
"wednesday" | |
"thursday" | |
"friday" | |
"saturday" | |
"sunday" |
weekday Default Value β
The default value is:
"sunday"