Ishikawa cause-and-effect diagrams from an indented outline · SVG, PNG, PDF and Markdown

Fishbone Diagram Maker

Type the problem, then each category and its causes as an indented outline. The bones grow to fit their causes, so long lists wrap instead of overlapping. Add why: lines under a cause for 5-whys notes.

1. Outline

Start from a template

Man (People), Machine, Method, Material, Measurement, Environment

Up to 12 categories and 250 lines, 120 characters each, three levels of causes. A leading dash or bullet is ignored.

Fishbone Diagram Maker

Operator: Abdulla Al Fahad. How tools are built and checked

A root-cause workshop ends with a whiteboard full of sticky notes, and the diagram that goes in the report is redrawn by someone afterwards.

Typing the causes as an outline during the meeting and letting software lay out the bones saves that second job.

Write the problem on the first line, each category on a line below it, and the causes indented under their category. The diagram redraws as you type, and long causes wrap instead of colliding.

Key features

  • Outline input with two-space or tab indentation, a leading dash or bullet ignored, and up to 12 categories, 250 lines and 120 characters per line
  • Category templates: 6M manufacturing, 4P service, 8P service and 4S service, which replace the outline with their headings and a placeholder cause under each
  • Three levels of causes under each category, and 5-whys notes written as 'why:' lines under a cause
  • Five colour themes: Classic, Ocean, Forest, Black and white and Dark
  • SVG, PNG at 2x, a landscape PDF on A4 or US Letter, the outline as a text file, and a Markdown version with escaped text

The outline syntax and the category templates

The first non-empty line is the problem; a leading 'Problem:' or 'Effect:' is removed. The shallowest indentation after it marks the categories. Lines indented under a category are its causes, lines under those are sub-causes, and a line that starts 'why:' or 'why?' is attached to the cause above it as a 5-whys note. Lines nested deeper than three levels are attached to the third level, with a warning.

The templates are 6M (Man, Machine, Method, Material, Measurement, Environment), 4P service (Policies, Procedures, People, Plant and technology), 8P service (Product, Price, Place, Promotion, People, Process, Physical evidence, Productivity) and 4S service (Surroundings, Suppliers, Systems, Skills).

How it works

The layout measures each cause with the browser's text metrics, wraps it to about 168 pixels, and adds up the rows of each category to get its bone height. Categories alternate above and below the spine, each pair sharing a slot whose width is the widest rib in it, so a long list makes its bone taller and the slots wider instead of overlapping neighbours.

Ribs are right-aligned against the leaning bone, and the text is positioned at whichever end of its row is farther from the spine so it never touches the bone. Sub-causes sit further left, and 5-whys notes are drawn in italics and a lighter colour.

Typical uses

  • A quality engineer records a customer-complaint review live, six categories and 18 causes, and pastes the PNG into the 8D report.
  • A restaurant manager uses the 8P service template for 'Long waits at lunch', 8 categories, and prints it on Letter landscape for the staff room.
  • A student writes a three-level outline for a lab report on a failed titration and exports the Markdown into their notes.

Building one

  1. Type or paste the outline, or choose a template and press Replace the outline with this template.
  2. Add causes under each category; add 'why:' lines under any cause you want to dig into.
  3. Pick a theme, tick or untick the notes and title, choose the PDF paper, then press SVG, PNG 2x, PDF, Outline .txt or Markdown.

Example

The outline typed into the page (the page's own example), with the Classic theme, 5-whys notes on, and PDF on A4

Late deliveries to customers
Man (People)
  Night-shift packers short by two
    why: Two packers resigned in May
    why: Overtime was capped at 6 hours
  New hires not trained on the scanners
Machine
  Conveyor 2 jams twice a shift
    Worn drive belt
    Sensor fouled by label glue
Method
  All orders released in one batch at 14:00
  No cut-off for same-day orders
Material
  Cartons arrive short from the supplier
Measurement
  Dispatch time is not logged
Environment
  Loading dock floods in heavy rain

What you get

6 categories and 10 causes. Man (People), Method and Measurement sit above the spine, Machine, Material and Environment below it, and the two why notes appear in italics under the packers cause. The Markdown export starts '# Late deliveries to customers' and '## Man \(People\)', with the notes as '- *Why:* Two packers resigned in May'.

Tips for best results

  • Keep each cause to a short phrase; the wrapped text is easier to read than a clause, and the notes line is the place for the explanation.
  • Use the 5-whys lines for the one or two causes you will act on, so the diagram does not turn into a table of notes.
  • Put the most important category first: it takes the top-left slot, the first one a reader's eye lands on.

Things to check before you rely on it

A category with no causes under it draws as a bare bone. Add a line or the category looks unfinished.

PNG and PDF are pictures of the SVG, so text in them cannot be selected; the SVG is the vector copy for a design tool.

Common errors and how to fix them

Text such as 'Cat & <b>' in a cause
Nothing to fix: '<' and '&' are escaped in the SVG and in the Markdown export, so the text is drawn and written as typed and is never read as markup.
"Add at least one category under the problem."
The outline has only the first line. Add a line below it, such as 'Machine', and indent causes under it.
"Line 8 is indented but no category comes before it."
A cause appears before any category. Outdent the first line after the problem to make it a category.
"Line 6: causes are kept three levels deep"
A line was indented below the third level. It was attached to the third level; flatten the outline or make a second diagram for that branch.

Best practices

  • Save the outline text with the diagram: it is the editable source, and the SVG cannot be turned back into an outline.
  • Decide the categories before the meeting so causes are filed as they are called out.

Frequently asked questions

Can I use my own categories instead of a template?

Yes. The templates only fill in the first lines of the outline. Any text at the category indentation becomes a category, up to 12, so a branch can be Customers or Weather as easily as Machine.

Why do some bones sit above the spine and others below?

Categories alternate: the first, third and fifth go above, the second, fourth and sixth below. Reorder the lines in the outline to move a category to the other side.

Can I put a deeper chain of causes under one branch?

Three levels of causes are drawn. A fourth is attached to the third with a warning, so for a branch that needs a long chain of 'why' steps make a second diagram with that branch's cause as its problem line.