Skip to content

Untitled string in Mermaid Config Schema ​

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/MindmapDiagramConfig/properties/colorBy

Color nodes by their top-level branch or by their depth in the tree. Depth is counted from the root, independently of indentation width.

AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusUnknown identifiabilityForbiddenAllowednoneconfig.schema.json*

colorBy Type ​

string

colorBy Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"branch"Descendants inherit the color of their top-level branch.
"depth"Nodes at the same distance from the root share a color across branches.

colorBy Default Value ​

The default value is:

json
"branch"
Opens in mermaid.ai