Ishikawa (Fishbone) Diagram
Last updated:
Mermaid Studio provides language support for Ishikawa diagrams (also known as fishbone or cause-and-effect diagrams) inside IntelliJ IDEA and other JetBrains IDEs. Ishikawa diagrams organize potential causes of a problem into categories branching off a central spine, and are widely used in quality management and root cause analysis.
Syntax Highlighting
Section titled “Syntax Highlighting”Syntax highlighting integrates directly with IntelliJ’s color scheme system, so diagram colors always match your editor theme.
IDE Support
Section titled “IDE Support”Mermaid Studio provides comprehensive support for Ishikawa diagrams:
- Syntax highlighting with indentation-based depth highlighting that visually distinguishes cause levels
- Dedicated color settings page for customizing Ishikawa-specific highlighting
- Code folding to collapse cause branches
- Formatting to maintain consistent indentation
- Structure view for hierarchical overview of causes
- Navigation bar for quick access to diagram elements
- Inspections to catch structural issues:
- Blank line before event (error)
Quick Syntax Reference
Section titled “Quick Syntax Reference”ishikawa-betaWebsite DowntimeInfrastructure Server overload Network failureSoftware Memory leak Unhandled exceptionProcess No monitoring Slow incident responsePeople Insufficient training Key person dependencyKey elements:
- Start with
ishikawa-beta(orishikawa). Requires Mermaid.js 11.13.0+ - The first line after the keyword is the event - the problem being analyzed (the “head” of the fish)
- Subsequent lines are causes (the “bones” of the fishbone)
- Indentation determines hierarchy - deeper indentation creates sub-causes
- Use
<br>or<br/>for multi-line labels
For complete syntax details, see the Mermaid Ishikawa documentation.