Skip to content

Git Graph Diagram Config Schema ​

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/GitGraphDiagramConfig
AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenAllowednoneconfig.schema.json*

GitGraphDiagramConfig Type ​

object (Git Graph Diagram Config)

all of

GitGraphDiagramConfig Properties ​

PropertyTypeRequiredNullableDefined by
titleTopMarginintegerRequiredcannot be nullMermaid Config
diagramPaddingnumberOptionalcannot be nullMermaid Config
nodeLabelMergedOptionalcannot be nullMermaid Config
mainBranchNamestringOptionalcannot be nullMermaid Config
mainBranchOrdernumberOptionalcannot be nullMermaid Config
showCommitLabelbooleanOptionalcannot be nullMermaid Config
showBranchesbooleanOptionalcannot be nullMermaid Config
rotateCommitLabelbooleanOptionalcannot be nullMermaid Config
parallelCommitsbooleanOptionalcannot be nullMermaid Config
arrowMarkerAbsolutebooleanOptionalcannot be nullMermaid Config

titleTopMargin ​

Margin top for the text over the diagram

titleTopMargin

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:

json
25

diagramPadding ​

diagramPadding

diagramPadding Type ​

number

diagramPadding Default Value ​

The default value is:

json
8

nodeLabel ​

nodeLabel

nodeLabel Type ​

object (Details)

all of

nodeLabel Default Value ​

The default value is:

json
{
  "width": 75,
  "height": 100,
  "x": -25,
  "y": 0
}

mainBranchName ​

mainBranchName

mainBranchName Type ​

string

mainBranchName Default Value ​

The default value is:

json
"main"

mainBranchOrder ​

mainBranchOrder

mainBranchOrder Type ​

number

showCommitLabel ​

showCommitLabel

showCommitLabel Type ​

boolean

showCommitLabel Default Value ​

The default value is:

json
true

showBranches ​

showBranches

showBranches Type ​

boolean

showBranches Default Value ​

The default value is:

json
true

rotateCommitLabel ​

rotateCommitLabel

rotateCommitLabel Type ​

boolean

rotateCommitLabel Default Value ​

The default value is:

json
true

parallelCommits ​

parallelCommits

parallelCommits Type ​

boolean

arrowMarkerAbsolute ​

Controls whether or arrow markers in html code are absolute paths or anchors. This matters if you are using base tag settings.

arrowMarkerAbsolute

arrowMarkerAbsolute Type ​

boolean

Opens in MermaidChart.com