Unsaved
Ready
Loading Monaco Editor...
Preview
Styling
All diagram types

Mermaid Quadrant Chart Syntax & Examples

A quadrant chart plots items on two axes and names the four boxes. Both coordinates are between 0 and 1.

Examples

Copy an example, or open it in the live editor with this diagram already loaded.

Effort against impact

Top-left is the work to do first: high impact, low effort. Points use a 0 to 1 scale, not the original story points.

quadrantChart
    title Effort and impact
    x-axis Low effort --> High effort
    y-axis Low impact --> High impact
    quadrant-1 Plan carefully
    quadrant-2 Do now
    quadrant-3 Skip
    quadrant-4 Maybe later
    Empty states: [0.25, 0.80]
    Export presets: [0.70, 0.75]
    New theme: [0.55, 0.30]
    Icon set: [0.20, 0.25]

Risk matrix

Likelihood runs along x and impact along y. The top-right box is the risk to handle first.

quadrantChart
    title Launch risks
    x-axis Unlikely --> Likely
    y-axis Low impact --> High impact
    quadrant-1 Watch closely
    quadrant-2 Handle first
    quadrant-3 Accept
    quadrant-4 Reduce
    Data loss: [0.30, 0.90]
    Slow export: [0.75, 0.55]
    Typo in docs: [0.60, 0.15]
    Vendor outage: [0.20, 0.70]

Skill and interest

A hiring or staffing matrix. The same syntax works for any two labels you can put on the axes.

quadrantChart
    title Where to spend time
    x-axis Low skill --> High skill
    y-axis Low interest --> High interest
    quadrant-1 Stretch
    quadrant-2 Lean in
    quadrant-3 Avoid
    quadrant-4 Delegate
    Diagrams: [0.80, 0.85]
    Billing: [0.40, 0.30]
    Support: [0.70, 0.35]
    Writing: [0.35, 0.75]

What is a Quadrant Chart?

A Mermaid quadrant chart is a 2x2 matrix. x-axis and y-axis set the low and high labels. quadrant-1 through quadrant-4 name the four boxes: 1 is top-right, 2 is top-left, 3 is bottom-left, and 4 is bottom-right. Each point is Name: [x, y] with both numbers from 0 to 1. Use it for an effort/impact grid, a risk matrix, or a keep/kill list. It is not a statistical scatter plot of raw measurements.

When to use it

Use a quadrant chart when two dimensions are enough to sort a list of options. Use an XY chart when the numbers are a real series. Use a pie chart when you need shares of a whole rather than a position on two axes.

Edit this quadrant chart in the live editor, read the Mermaid cheat sheet, or compare it with Pie Chart, Mind Map and Flowchart.

Common Use Cases

  • •Feature prioritization - Plot effort vs. impact for product decisions
  • •Competitive analysis - Compare competitors on two key dimensions
  • •Eisenhower Matrix - Categorize tasks by urgency and importance
  • •Risk assessment - Map probability vs. impact of risks
  • •Marketing analysis - Evaluate campaigns by reach and engagement

Syntax Quick Reference

ElementSyntaxDescription
Titletitle Chart TitleChart heading
X-axisx-axis Low --> HighHorizontal axis labels
Y-axisy-axis Low --> HighVertical axis labels
Quadrant labelquadrant-1 LabelName each quadrant (1-4)
Data pointItem: [x, y]Plot a point (0-1 range)

Syntax tips

  • •Start with quadrantChart. The older quadrant keyword is not this diagram.
  • •x-axis Low --> High and y-axis Low --> High set the end labels. The arrow text is the wording, not a number range.
  • •quadrant-1 is top-right, quadrant-2 is top-left, quadrant-3 is bottom-left, and quadrant-4 is bottom-right.
  • •Points are Name: [x, y] and both values must sit between 0 and 1. 0 is the low end of that axis.
  • •Rescale real units before you plot them. A score of 8 out of 10 is [0.80, ...] once you also pick the other axis.

Common mistakes

Plotting a raw number such as 80 instead of 0.80.

Divide by the scale you have in mind. Both coordinates have to be from 0 to 1.

Numbering the quadrants as if 1 were top-left.

In Mermaid, quadrant-1 is the top-right box. Check the labels after the first render.

Using a quadrant chart as a line chart of measurements.

There is one point per item and no series. An XY chart is the diagram for values over categories.

Export Options

A 2x2 matrix is often a slide. PNG matches that use, and SVG is better if the matrix lives in a doc. Free PNG exports include a watermark.

Got Mermaid code from ChatGPT? Paste it here to render and export instantly.

Get the Free Mermaid Syntax Cheat Sheet

Free Mermaid Syntax Cheat Sheet

All 21 diagram types in one PDF reference.

Frequently Asked Questions

Ready to create your own quadrant chart?

Open the editor with this example pre-loaded and start customizing.

Quadrant Chart templates

Related Diagram Types

All diagram types