Untitled string in Mermaid Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/MindmapDiagramConfig/properties/colorByColor nodes by their top-level branch or by their depth in the tree. Depth is counted from the root, independently of indentation width.
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|---|---|---|---|---|---|---|---|
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | config.schema.json* |
colorBy Type
string
colorBy Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"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"