マトリックス / クアドラントダイアグラム

マトリックスダイアグラムについて

マトリックスダイアグラムは、2つの交差する軸によって定義される二次元空間にアイテムを配置します——最も一般的なのは2×2のクアドラントグリッド——位置によって一目で意味が伝わります。プロダクトマネージャーはアイゼンハワーマトリックスを使用して緊急な仕事と重要な仕事を分けます。戦略コンサルタントはBCGマトリックスを使用してポートフォリオ投資を配分します。HRチームは9ボックスグリッドを使用してパフォーマンスとポテンシャルをマッピングします。この視覚的な慣習は、ボストンコンサルティンググループの1970年代のポートフォリオ研究に端を発し、Ansoff、Johari、RICEなどのフレームワークによって拡張されてきました。

Schematex は3つのマトリックスモードをサポートします:quadrant(ラベル付き軸を持つ2×2または3×3のバブルプロット)、heatmap(N×Mの色付きセルグリッド)、correlation(N×Mのドット強度テーブル)。8つのプリビルドテンプレートが最も一般的なフレームワークをすぐに使える形でカバーし、すべての軸ラベル、クアドラント名、ポイントプロパティは完全にカスタマイズ可能です。

matrix·§
↘ preview
100%
Matrix — Q3 Planning Matrix diagram (impact-effort template), quadrant mode, 6 point(s) Q3 Planning Major Projects Quick Wins Fill-ins Thankless Low Effort High Effort Low Impact High Impact Fix checkout timeout · (0.15, 0.82) · size 4 Fix checkout timeout Redesign onboarding · (0.72, 0.78) · size 5 Redesign onboarding Add dark mode · (0.78, 0.38) · size 3 Add dark mode Write runbook · (0.18, 0.32) · size 2 Write runbook API rate limiting · (0.55, 0.65) · size 4 API rate limiting Blog post series · (0.35, 0.55) · size 2 Blog post series reliability growth polish
UTF-8 · LF · 7 lines · 427 chars✓ parsed·0.8 ms·11.0 KB SVG

1. 最初のマトリックス

最小限の有用なマトリックス:カスタム2×2、2つのラベル付き軸、3つのポイント。

matrix·§
↘ preview
100%
Matrix diagram Matrix diagram, quadrant mode, 3 point(s) Low Effort High Effort Low Value High Value Add search · (0.30, 0.80) Add search Rebuild pipeline · (0.85, 0.70) Rebuild pipeline Update footer · (0.20, 0.20) Update footer
UTF-8 · LF · 7 lines · 187 chars✓ parsed·0.4 ms·8.0 KB SVG

使用方法の80%をカバーする4つのルール:

  1. キーワード matrix で始め、オプションでテンプレート名または引用符付きのタイトルを続けます。
  2. x-axis:y-axis: で軸を設定します——または組み込みテンプレートを使用してこのステップを省略します。
  3. 各ポイントは "Label" at (x, y) です。xy は0.0(低/左/下)から1.0(高/右/上)の小数分数です。
  4. 座標の後にオプションのプロパティを追加します——size:category:color:shape:highlight:

コメントは行のどこでも(引用符付き文字列の外で)# で始まります。


2. 組み込みテンプレート

テンプレートは軸、クアドラントラベル、グリッドサイズをプリ設定します。ヘッダー行の2番目のトークンとしてテンプレート名を使用するだけです。

テンプレートグリッドユースケース
eisenhower2×2緊急性 / 重要性によるタスク優先順位付け
impact-effort2×2インパクト対エフォートによるフィーチャー優先順位付け
rice2×2RICEスコアリング——リーチ × インパクト対エフォート
bcg2×2ポートフォリオ——マーケットシェア対成長率
ansoff2×2製品/市場成長戦略
johari2×2自己認識——自己既知対他者既知
9-box3×3HRタレントレビュー——パフォーマンス対ポテンシャル
risk-matrix5×5リスク評価——可能性対深刻度(ヒートマップ)
matrix·§
↘ preview
100%
Matrix — This Week Matrix diagram (eisenhower template), quadrant mode, 5 point(s) This Week Schedule Do First Delete Delegate Urgent Not Urgent Not Important Important Ship hotfix · (0.10, 0.90) · size 5 Ship hotfix Team 1:1s · (0.10, 0.70) · size 3 Team 1:1s Write Q3 OKRs · (0.80, 0.85) · size 4 Write Q3 OKRs Inbox zero · (0.10, 0.30) · size 2 Inbox zero Refactor auth · (0.75, 0.40) · size 3 Refactor auth
UTF-8 · LF · 6 lines · 228 chars✓ parsed·0.6 ms·9.6 KB SVG

テンプレートの軸とクアドラントラベルは、明示的な x-axis: / y-axis: / quadrant ディレクティブで上書きできます。


3. 軸

軸ラインは各次元の意味的な極を宣言します。

x-axis: Low Effort → High Effort
y-axis: Low Value → High Value

矢印は低ラベル(左/下)と高ラベル(右/上)を区切ります。以下のセパレーターはすべて同等です:

セパレーター
(Unicode)x-axis: Rare → Certain
->(ASCII)x-axis: Rare -> Certain
y-axis: Cheap ↑ Expensive
/ <- / <逆軸——高ラベルが左にある

逆軸は「高い」値が左または下にある慣習のためのものです:

x-axis: High Market Share ← Low Market Share
matrix·§
↘ preview
100%
Matrix diagram Matrix diagram, quadrant mode, 4 point(s) Question Marks Stars Cash Cows Dogs Low Market Share High Market Share Low Growth High Growth Analytics Suite · (0.25, 0.35) · size 5 Analytics Suite ChatBot Pro · (0.20, 0.80) · size 4 ChatBot Pro Legacy CRM · (0.75, 0.25) · size 6 Legacy CRM Mobile App · (0.65, 0.75) · size 3 Mobile App
UTF-8 · LF · 13 lines · 366 chars✓ parsed·0.5 ms·9.1 KB SVG

4. ポイント

各ポイントは正規化された(x, y)座標ペアで位置決めされたバブルです。

"Label" at (x, y)
"Label" at (x, y) size: 4 category: design color: #7B1FA2 highlight: true note: "clarify spec"
プロパティ意味
size:正の数値バブル面積の重み(デフォルト:3)
category:裸のワードカラーグループ;凡例を駆動
color:16進数文字列このポイントのバブル色を上書き
shape:circle | square | triangle | diamondバブル形状(デフォルト:circle
highlight:trueバブルの周りに強調リングを描画
note:引用符付き文字列ツールチップアノテーション
label:引用符付き文字列表示ラベルを置き換え(IDとは異なる)

[0, 1] の外の座標はチャート境界にクランプされ、バッジでフラグ付けされます——元の値はツールチップ表示のために保存されます。

matrix·§
↘ preview
100%
Matrix diagram Matrix diagram, quadrant mode, 5 point(s) Low Impact High Impact Rare Certain Vendor delay · (0.45, 0.70) · size 4 Vendor delay Security breach · (0.90, 0.30) · size 5 Security breach Budget overrun · (0.50, 0.65) · size 3 Budget overrun Key hire falls through · (0.60, 0.55) · size 3 Key hire falls through Scope creep · (0.40, 0.80) · size 4 Scope creep schedule security finance people
UTF-8 · LF · 9 lines · 404 chars✓ parsed·0.6 ms·10.1 KB SVG

5. クアドラントラベル

各クアドラントに名前とオプションのサブタイトルでラベルを付けます。

quadrant Q1 "Do First"
quadrant Q2 "Schedule"
quadrant Q3 "Delete"
quadrant Q4 "Delegate"

# オプションのサブタイトル付き:
quadrant Q1 "Do First" description: "High urgency, high importance"

クアドラントの番号付けは標準的な数学の慣習に従います:Q1 = 右上、Q2 = 左上、Q3 = 左下、Q4 = 右下Q プレフィックスはオプションです——quadrant 1 "Label" も同様に有効です。


6. ヒートマップモード

ヒートマップモードは、バブル位置をプロットする代わりに N×M セルをカラー強度で塗りつぶします。

matrix heatmap 4x3 "Skill Matrix"
rows: [Strategy, Execution, Communication, Technical]
cols: [Junior, Mid, Senior]

cell (0,0) level: weak
cell (1,0) level: medium
cell (2,0) level: strong
cell (0,1) value: 7
cell (1,2) label: "Top 10%"
  • matrix heatmap COLxROW — ヘッダーでグリッドの次元を設定。
  • rows:cols: — カンマ区切りまたはブラケットリストの軸ラベル。
  • cell (col, row) — ゼロインデックス、列が先、行が後(行0 = 下)。
  • level:strong(3)、medium(2)、weak(1)——熱強度のショートハンド。
  • value: — 明示的な数値(level: を上書き)。
  • label: — セル内に配置される引用符付きテキスト。
matrix·§
↘ preview
100%
Matrix — Competency Heat Map Matrix diagram, heatmap mode, 0 point(s) Competency Heat Map Leadership Execution Communication Technical Junior Mid Senior Staff Low High
UTF-8 · LF · 20 lines · 524 chars✓ parsed·0.6 ms·9.3 KB SVG

7. 相関モード

相関モードは、行と列の変数間の関係の強さを表す強度でN×Mドットマトリックスをレンダリングします。

matrix correlation 4x4 "Product Metrics"
rows: [DAU, Retention, Revenue, NPS]
cols: [DAU, Retention, Revenue, NPS]

cell (0,0) value: 1
cell (1,0) value: 0.82
cell (2,0) value: 0.54
cell (3,0) value: 0.71

同じ cell 構文が適用されます。相関モードでも level: strong | medium | weak が受け入れられます。


8. SIPOCモード

SIPOC は、Six Sigma DMAICプロジェクトのDefineフェーズを開始する1ページのスコープテーブルです。5つの固定された列に、左から右にプロセスが関与するすべての人とものを記述します:Suppliers(供給者)・Inputs(投入物)・Process(プロセス)・Outputs(産出物)・Customers(顧客)。チームが何かを測定または改善する前に、SIPOCは境界を定めます——「このプロセスはどこから始まり、どこで終わり、誰が仕事を受け渡しするのか」。

matrix sipoc "Order fulfilment"
suppliers: "Vendor", "Warehouse"
inputs: "PO", "Stock levels"
process: "Receive order", "Pick", "Pack", "Ship"
outputs: "Shipped package", "Invoice"
customers: "End customer", "Finance"
  • matrix sipoc で始め、オプションで引用符付きのタイトルを続けます。
  • 5つの列それぞれが独自のディレクティブです:suppliers:inputs:process:outputs:customers:
  • コロンの後に、カンマ区切りの引用符付き文字列としてエントリを列記します。列は任意の数のエントリを持てます。行はその列内で上から下にスタックされます。
  • process: 列は高レベルのステップシーケンスです(通常4〜7ステップ)——詳細なフローチャートではなく主要な段階だけにします。

5つの列は、宣言した順序に関わらず、常に正規のS-I-P-O-Cの順序でレンダリングされます。そのため、LLMがブロックを順序外で出力しても、ダイアグラムは正しく読めます。

matrix·§
↘ preview
100%
SIPOC — Order fulfilment SIPOC scoping table — 2 supplier(s), 2 input(s), 4 process step(s), 2 output(s), 2 customer(s) Order fulfilment Suppliers Suppliers: Vendor, Warehouse Vendor Warehouse Inputs Inputs: PO, Stock levels PO Stock levels Process Process: Receive order, Pick, Pack, Ship 1. Receive order 2. Pick 3. Pack 4. Ship Outputs Outputs: Shipped package, Invoice Shipped package Invoice Customers Customers: End customer, Finance End customer Finance
UTF-8 · LF · 6 lines · 217 chars✓ parsed·0.6 ms·9.0 KB SVG

9. QFDモード(品質の家)

品質機能展開(QFD) ——赤尾洋二が導入した品質の家——は顧客が求めるものをそれを実現するエンジニアリング特性に変換します。行はWHAT(顧客要件、それぞれに重要度の重みを持つ);列はHOW(チームが制御する測定可能なエンジニアリング特性)。グリッドの本体には各HOWが各WHATにどれだけ強く貢献するかを記録します。

差別化要因は:エンジンが下の行を計算することです。各HOWの技術的重要度は、その列の 重み × 関係の強さ の合計です——「どのエンジニアリング特性が最も顧客価値を動かすか、したがって最も努力を注ぐ価値があるか」への順位付けされた答えです。そして家の屋根——列の上の半行列のダイヤモンドセル——は2つのHOWが互いに助け合うか妨げ合うかを記録します。

matrix qfd "Coffee maker"
what: "Quiet operation" weight: 5
what: "Brews fast" weight: 3
what: "Energy efficient" weight: 4
how: "Fan RPM" dir: down
how: "Heater watts" dir: up
how: "Insulation" dir: up
rel (0,0): 9
rel (0,2): 3
rel (1,1): 9
rel (2,1): 3
rel (2,2): 9
roof (0,1): --
roof (1,2): +

WHATとHOW

ディレクティブ形式意味
what:what: "Label" weight: N顧客要件(1行)。weight: はその重要度、通常1〜5。宣言順が行の順序(0からインデックス)。
how:how: "Label" dir: up|downエンジニアリング特性(1列)。宣言順が列の順序(0からインデックス)。dir: は最適化目標——up = 大きいほど良い、down = 小さいほど良い。

関係セル

rel (i, j): strength は列 j のHOWが行 i のWHATにどれだけ強く貢献するかを記録します。インデックスは**(行、列)**、どちらもゼロベース。

強さ意味
9強い関係
3中程度の関係
1弱い関係
(省略)関係なし——セルを省略

この9 / 3 / 1スケールはQFDの慣習です:重要度行が合計されたとき、1つの強いリンクが複数の弱いリンクを上回るように意図的に非線形にされています。

計算される技術的重要度行

エンジンは各列を合計して家の下部に技術的重要度行を生成します:

importance(j) = Σ 行i について  ( weight(i) × strength(i, j) )

上記のコーヒーメーカーの例では、この行は 45 / 39 / 51 と計算されます——Insulation(51)が最も高いレバレッジ特性、Heater watts(39)が最低。このランキングが成果物です:チームがエンジニアリング努力を注ぐべき場所を示します。

normalize: true(ブロック内の任意の行に独立した行として)を追加すると、各列が生の合計の代わりに合計に対するパーセンテージとして表示されます——この例では 33% / 29% / 38%。パーセンテージにより、非常に異なる重みスケールにわたる相対的な優先度が読みやすくなります。

屋根——HOW × HOW相関

屋根は列の上にある三角形の半行列です。roof (i, j): glyph はHOW i とHOW j が互いに強化し合うか対立するかを記録します——チームが調整しなければならない相乗効果とトレードオフ。

グリフ相関
++強い正相関——一方を改善すると他方も強く助ける
+正相関
-負相関
--強い負相関——一方を改善すると他方を傷つける(トレードオフ)
(省略)相関なし——セルを省略

各屋根エントリは標準QFDの傾斜屋根グリッドのダイヤモンドセルとしてレンダリングされます。例では、roof (0,1): -- がFan RPMを下げながらHeater wattsを上げることがトレードオフであることを示し、roof (1,2): + がHeater wattsとInsulationが互いに強化し合うことを示します。

matrix·§
↘ preview
100%
QFD House of Quality — Coffee maker QFD House of Quality — 3 customer requirement(s), 3 engineering characteristic(s), 5 relationship(s); technical importance computed per column Coffee maker Roof: engineering correlation matrix Fan RPM ↔ Heater watts: strong negative Fan RPM ↔ Insulation: no correlation Heater watts ↔ Insulation: positive Fan RPM Heater watts Insulation Wt Quiet operation (weight 5) Quiet operation 5 Brews fast (weight 3) Brews fast 3 Energy efficient (weight 4) Energy efficient 4 Quiet operation × Fan RPM = 9 Quiet operation × Insulation = 3 Brews fast × Heater watts = 9 Energy efficient × Heater watts = 3 Energy efficient × Insulation = 9 Computed technical importance per engineering characteristic Technical importance Σ(wt×rel) 45 39 51
UTF-8 · LF · 14 lines · 296 chars✓ parsed·1.2 ms·10.1 KB SVG

10. パネットモード(メンデル遺伝学)

パネット方形は遺伝交配の子孫を予測します。2つの親の遺伝子型を書くだけで、エンジンがメンデルの計算を行います——各親の配偶子(遺伝子座ごとに1つの対立遺伝子)を列挙し、グリッドをすべての配偶子の組み合わせで埋め、遺伝子型と表現型の比率を計算します。ユーザーがグリッドを埋める必要はありません。

matrix punnett "Eye color  (Bb × Bb)"
cross: Bb x Bb
trait B: "Brown eyes" / "Blue eyes"

交配

ディレクティブ形式意味
cross:cross: Bb x Bbx×、または * で区切られた2つの親の遺伝子型。parents: は受け入れられるエイリアス。
trait:trait B: "Dominant" / "Recessive"(オプション) 遺伝子 B の2つの表現型を命名。凡例が B_ / bb の代わりに平易な英語で読めるようになる。

対立遺伝子の大文字・小文字が優性を決定します ——これは標準的な遺伝学の慣習です。大文字の文字が優性対立遺伝子、一致する小文字が劣性です。遺伝子型は文字ごとに対立遺伝子をグループ化します:RrYy は2つの遺伝子座、R/r(丸/しわ)と Y/y(黄/緑)。1つの遺伝子は単性雑種交配(2×2グリッド)、2つの遺伝子は二性雑種(4×4)、3つは三性雑種(8×8)です。

計算される比率(差別化要因)

エンジンは遺伝子型のみから以下を導出します:

  • 各親の配偶子——列と行のヘッダー——各遺伝子座で1つの対立遺伝子を取ることで(ヘテロ接合体 BbBb を生成);
  • 子孫グリッド——すべての配偶子のペア、優性対立遺伝子を先に書く(BbbB ではない);
  • 表現型比率——どの表現型を発現するかでグループ化されたボックス、最小公倍数に約分。単性雑種 Bb × Bb は古典的な 3:1 を与え、二性雑種 RrYy × RrYy は有名な 9:3:3:1 を与える;
  • 遺伝子型比率——例えば単性雑種では 1:2:1(BB 1、Bb 2、bb 1)。

各ボックスはその表現型クラスで色付けされ、フッターには表現型比率(凡例付き)と遺伝子型比率が記載されます。

matrix·§
↘ preview
100%
Punnett square — Seed shape &amp; colour (RrYy × RrYy) Punnett square — dihybrid cross RrYy × RrYy; phenotype ratio 9:3:3:1 Seed shape & colour (RrYy × RrYy) RrYy RrYy RY Ry rY ry RY Ry rY ry RRYY RRYy RrYY RrYy RRYy RRyy RrYy Rryy RrYY RrYy rrYY rrYy RrYy Rryy rrYy rryy Phenotype ratio 9:3:3:1 9 × Round, Yellow 3 × Wrinkled, Yellow 3 × Round, Green 1 × Wrinkled, Green Genotype ratio 4:2:2:2:2:1:1:1:1 — 9 distinct genotypes
UTF-8 · LF · 4 lines · 128 chars✓ parsed·1.2 ms·10.2 KB SVG

11. 設定オプション

config: ブロックは視覚的なレンダリングを調整します。各オプションは config: ヘッダーの下の独自のインデントされた行に記述します。

config:
  quadrantBg: true
  gridLines: true
  axisArrows: true
  bubbleScale: area
  legendPosition: bottom-right
キーデフォルト効果
quadrantBgtrue | falsetrue色付きクアドラント背景のフィル
gridLinestrue | falsetrueグリッドラインのオーバーレイ
axisArrowstrue | falsetrue軸端の矢印
bubbleScalearea | radiusareasize: がバブルの面積と半径のどちらをスケールするか
quadrantAnnotationstrue | falsetrue角にクアドラントラベルテキストを表示
legendPositionbottom-right | right | bottom-center | nonebottom-rightカテゴリ凡例の配置
labelCollisionauto | offset-only | leader-only | offautoポイントラベルの重複回避戦略
offChartPolicyclamp-badge | dropclamp-badge[0,1] 外のポイントの扱い

2つのショートハンドディレクティブはトップレベルでも機能します(config: ブロック内でなく):

axis: off          # off | on | auto — 軸ラインの表示・非表示
margins: true      # true | false — スコアとランクのマージンを表示(相関モード)

12. ラベルとコメント

  • タイトル: matrix "My Title" または独立した行として title: My Title
  • ポイントラベル: at (…) の前の引用符付き文字列。
  • 軸ラベル: x-axis:y-axis: ディレクティブ。
  • クアドラントラベル: quadrant Q1 "Name" ディレクティブ。
  • コメント: 引用符付き文字列の外で行のどこでも #
matrix "Prioritization"
# これはコメントです
x-axis: Low Cost → High Cost   # ディレクティブの後のインラインコメント
"Fix bug" at (0.1, 0.9) size: 3  # ポイントの後のコメント

13. テーブルモード(style: table

デフォルトのマトリックスレンダリングは散布図 / バブルチャートです——ポイントが(x, y)座標に浮かんでいます。アウトプットがクアドラントごとにアイテムをグループ化したリストになるフレームワーク(Eisenhower、Johari、Impact-Effort、9-box)では、style: table を使用してテキストインセルレイアウトに切り替えます。

matrix eisenhower "This Week"
style: table
Q2: "Ship hotfix"
Q2: "Customer demo prep"
Q1: "Write Q3 OKRs"
Q1: "Refactor auth layer"
Q4: "LinkedIn updates"
Q3: "Reorganize Slack channels"

style: table はこれらの変更を自動的に適用します:

効果詳細
軸と矢印を非表示軸ライン、ラベル、矢印なし
グリッドラインを非表示外側の境界線とセル区切りのみ残る
クアドラントタイトルをセル内に移動各タイトルがコーナーオーバーレイの代わりにセルヘッダーになる
アイテムを箇条書きリストにスタック同じクアドラントの複数エントリが上から下にスタック

Q1Q4 ショートハンド(2×2のみ)

2×2テンプレートでは、より長い cell (col, row) label: "item" 形式の代わりに Qn: "item" を使用します。マッピング:

ショートハンドセルEisenhowerJohari
Q1:右上ScheduleBlind
Q2:左上Do FirstOpen / Arena
Q3:左下DeleteHidden / Façade
Q4:右下DelegateUnknown

同じクアドラントに複数のアイテムを追加するにはショートハンドキーを繰り返します:

Q2: "Ship hotfix"
Q2: "Customer demo prep"

3×3グリッド(9-box)では、cell (col, row) label: "…" を直接使用します——Q ショートハンドは2×2専用です。

テーブルと散布図の使い分け

style: table を使う場合散布図(デフォルト)を使う場合
タスクリスト付きのEisenhowersize: エフォート重み付きのEisenhower
Johariウィンドウコーチングバブル = 収益のImpact-Effort
バックログのグループ化(数値の第三次元なし)RICE / BCGポートフォリオ(第三次元がバブルサイズ)
9-boxタレントレビューリスクヒートマップ(数値の深刻度を持つ5×5)
matrix·§
↘ preview
100%
Matrix — This Week Matrix diagram (eisenhower template), quadrant mode, 0 point(s) This Week Do First • Ship hotfix • Customer demo prep Schedule • Write Q3 OKRs • Refactor auth layer Delegate • LinkedIn updates Delete • Reorganize Slack channels
UTF-8 · LF · 8 lines · 186 chars✓ parsed·0.5 ms·7.4 KB SVG

14. 予約語とエスケープ

行頭で予約: matrix(ヘッダー)、x-axis:y-axis:quadrantconfig:title:rows:cols:grid:axis:margins:cellSIPOC モードでは:suppliers:inputs:process:outputs:customers:QFD モードでは:what:how:relroofnormalize:

ポイント行はクォート文字(" または ')で始まる必要があります。 クォートで始まらない行はポイントとして扱われません。

軸ラベルのスペースを含む文字列はクォート不要です——コロンの後(および矢印の後)のテキストはそのまま取られます。ポイントプロパティの note:label: ではダブルクォートを使用します。


15. よくある間違い

記述した内容パーサーのメッセージ修正方法
"Fix bug" at (1, 2)ポイントはパース済み;x=1はクランプ、y=1はクランプ;オフチャートバッジ表示座標を[0.0, 1.0]に収めるか、クランプバッジを受け入れる
quadrant 1 "Quick Wins"(Qプレフィックスなし)受け入れ——Q プレフィックスはオプションquadrant 1quadrant Q1 の両方が機能する
config: gridLines: false(同じ行)config: キーワードのみ認識;gridLines: false はサイレントに無視config: の下に独自のインデントされた行にオプションを記述
x-axis: "Low" → "High"(引用符付きラベル)引用符内で矢印が見つからない——プレーンテキストとして扱われる引用符を削除:x-axis: Low → High
次元なしの matrix heatmapデフォルトで2×2;rows/colsディレクティブで実際のサイズを設定ヘッダーで次元を指定:matrix heatmap 4x4
cell (0, 0) level: Strong(大文字S)level のマッチは大文字・小文字を区別しない——受け入れstrongStrong の両方が機能する
shape: oval不明な形状値——サイレントに無視circlesquaretriangle、または diamond を使用する
タスクリスト付きのEisenhowerで "Fix bug" at (0.1, 0.9)有効な散布点——しかしセル内リストが必要だった可能性ありstyle: table を追加して Q2: "Fix bug" を使用する
3×3テンプレートで Q1: "item"Q ショートハンドがポイント行としてパース——サイレントにドロップ3×3グリッドには cell (col, row) label: "item" を使用する

16. 文法(EBNF)

document     = header directive*

header       = "matrix" ( template-name | mode-header | title )? NEWLINE
template-name = "eisenhower"|"impact-effort"|"rice"|"bcg"|"ansoff"|"johari"|"9-box"|"risk-matrix"
mode-header  = ( "heatmap" | "correlation" ) ( number "x" number )? title?
             | ( "sipoc" | "qfd" | "punnett" ) title?
title        = quoted-string | bare-text

directive    = x-axis | y-axis | quadrant-dir | config-block
             | point | cell | q-short | rows-dir | cols-dir | grid-dir
             | style-dir | title-dir | axis-dir | margins-dir
             | sipoc-col | qfd-what | qfd-how | qfd-rel | qfd-roof | normalize-dir
             | punnett-cross | punnett-trait
             | comment | blank

# SIPOCモード
sipoc-col    = ( "suppliers:" | "inputs:" | "process:" | "outputs:" | "customers:" )
               WS quoted-string ( "," quoted-string )* NEWLINE

# QFD / 品質の家モード
qfd-what     = "what:" WS quoted-string WS "weight:" number NEWLINE
qfd-how      = "how:" WS quoted-string ( WS "dir:" ( "up" | "down" ) )? NEWLINE
qfd-rel      = "rel" WS "(" number "," number ")" ":" WS ( "9" | "3" | "1" ) NEWLINE  # (行, 列)
qfd-roof     = "roof" WS "(" number "," number ")" ":" WS ( "++" | "+" | "-" | "--" ) NEWLINE  # (how, how)
normalize-dir = "normalize:" WS "true" NEWLINE

# パネット(メンデル遺伝学)モード
punnett-cross = ( "cross:" | "parents:" ) WS genotype WS ( "x" | "×" | "*" ) WS genotype NEWLINE
punnett-trait = "trait" WS letter ":" WS quoted-string WS "/" WS quoted-string NEWLINE  # 優性 / 劣性
genotype     = ( letter letter )+   # 文字でグループ化された対立遺伝子ペア;大文字・小文字 = 優性、例:「RrYy」

x-axis       = "x-axis:" WS axis-spec NEWLINE
y-axis       = "y-axis:" WS axis-spec NEWLINE
axis-spec    = text arrow text  |  text   # プレーンテキスト → 高ラベルのみ
arrow        = "→" | "->" | "↑" | "←" | "<-" | "<" | "↓"

quadrant-dir = "quadrant" WS "Q"? digit WS quoted-string ( WS "description:" quoted-string )? NEWLINE

config-block = "config:" NEWLINE ( INDENT key ":" WS value NEWLINE )*

point        = quoted-string WS "at" WS "(" number "," number ")" ( WS point-prop )* NEWLINE
point-prop   = "size:" number
             | "category:" bareword
             | "color:" hex-color
             | "shape:" ( "circle"|"square"|"triangle"|"diamond" )
             | "highlight:" "true"
             | "note:" quoted-string
             | "label:" quoted-string

cell         = "cell" WS "(" digit "," digit ")" ( WS cell-prop )* NEWLINE
cell-prop    = "value:" number
             | "label:" quoted-string
             | "level:" ( "strong" | "medium" | "weak" )

style-dir    = "style:" WS "table" NEWLINE
q-short      = "Q" ( "1" | "2" | "3" | "4" ) ":" WS quoted-string NEWLINE   # 2×2のみ

rows-dir     = "rows:" WS label-list NEWLINE
cols-dir     = "cols:" WS label-list NEWLINE
grid-dir     = "grid:" WS number "x" number NEWLINE
axis-dir     = "axis:" WS ( "off" | "on" | "auto" ) NEWLINE
margins-dir  = "margins:" WS ( "true" | "false" | "on" | "1" ) NEWLINE

label-list   = "[" text ("," text)* "]" | text ("," text)*
quoted-string = '"' any-char-but-quote* '"' | "'" any-char-but-quote* "'"
comment      = "#" any NEWLINE

権威ある情報源:src/diagrams/matrix/parser.ts。これがパーサーと異なる場合はパーサーが優先されます——Issueを立ててください。


17. 標準への準拠

Schematex のマトリックスダイアグラムは、ボストンコンサルティンググループ(1970)アイゼンハワー意思決定マトリックスアンソフ成長マトリックスジョハリの窓フレームワークで使用される標準的な2×2クアドラント慣習を実装しています。9ボックスグリッドはマッキンゼー/GEタレントレビュー慣習(3×3、パフォーマンス × ポテンシャル)に従います。ヒートマップと相関モードは特定の外部標準に従いませんが、ExcelのCondtional FormattingやRの corrplot などのツールに見られる普遍的なセル強度エンコーディングを使用しています。

現在実装されているもの:

  • ✅ カスタム軸とクアドラントラベルを持つ2×2クアドラントモード
  • ✅ 3×3クアドラントモード(9-box テンプレート)
  • level:value: セルを持つN×Mヒートマップモード
  • ✅ N×M相関モード
  • ✅ SIPOCモード——5列のSuppliers · Inputs · Process · Outputs · Customersスコーピングテーブル(Six Sigma DMAICのDefine)
  • ✅ QFD / 品質の家モード——WHATs × HOWsグリッド、9 / 3 / 1関係スケール、計算済み技術的重要度行(normalize: true でパーセンテージ表示)、HOW × HOW相関屋根(++ / + / - / --
  • ✅ パネットモード——2つの親の遺伝子型からのメンデル交配;エンジンが配偶子、子孫グリッド、遺伝子型 + 表現型比率(単性雑種3:1、二性雑種9:3:3:1)を計算;対立遺伝子の大文字・小文字 = 優性;オプションの trait 表現型名;単性雑種/二性雑種/三性雑種(2×2 / 4×4 / 8×8)
  • ✅ 8つの組み込みテンプレート(eisenhower、impact-effort、rice、bcg、ansoff、johari、9-box、risk-matrix)
  • ✅ ポイントプロパティ:size、category、color、shape、highlight、note
  • ✅ 逆軸( / <-
  • ✅ configブロック(quadrantBg、gridLines、axisArrows、bubbleScale、legendPosition、labelCollision、offChartPolicy)
  • style: table ——Q1Q4 ショートハンド(2×2)とスタックされた箇条書きリストを持つテキストインセルレイアウト
  • ⏳ ポイントの label: 上書き(パース済み、レンダラーのサポートは保留中)
  • ⏳ オフチャートの drop ポリシー(パース済み、レンダラーは常に今日clamp-badge)
  • margins: 相関スコア/ランクサイドバー(パース済み、まだレンダリングされていない)

参考文献:

  • Henderson, B. (1970). The Product Portfolio. Boston Consulting Group.
  • Covey, S. (1989). The 7 Habits of Highly Effective People. (アイゼンハワーマトリックスの普及)
  • Ansoff, H.I. (1957). "Strategies for Diversification." Harvard Business Review.
  • Akao, Y. (1990). Quality Function Deployment: Integrating Customer Requirements into Product Design. Productivity Press.(品質の家)
  • Pyzdek, T. & Keller, P. (2018). The Six Sigma Handbook (第5版). McGraw-Hill.(DMAICのDefineにおけるSIPOC)
  • Punnett, R.C. (1905). Mendelism. Macmillan.(パネット方形);Mendel, G. (1866). "Versuche über Pflanzenhybriden."

18. ロードマップ

計画中——まだパース不可。 今日生成された DSL ではこれらを使用しないでください。パーサーが拒否または無視します。

  • スイムレーン / ゾーンオーバーレイ — グリッドの背後に描画された名前付き矩形ハイライト領域。
  • 閾値ライン — ラベル付きの水平または垂直の参照ライン(例:「損益分岐点」ライン)。
  • バブル内ラベル — ポイントラベルを横ではなくバブル内に印刷するオプション。
  • テーブルへのエクスポート — スプレッドシートインポート用のSVGに加えた構造化CSV / JSONアウトプット。
  • 4×4とカスタムラベルクアドラントモード — ヒートマップだけでなくクアドラント(バブルプロット)モードでもラベル付きセルを持つ任意のNxM。

これらが早期に必要な場合はGitHubのIssueでトラックしてください。


関連するサンプル

サンプルギャラリーからすぐに使えるシナリオ:

matrix·§ Eisenhower (1954)
Matrix — This Week Matrix diagram (eisenhower template), quadrant mode, 0 point(s) This Week Do First • Ship hotfix • Customer demo prep Schedule • Write Q3 OKRs • Refactor auth layer Delegate • LinkedIn updates • Inbox zero Delete • Reorganize Slack channels
Eisenhower week prioritization
2×2 Eisenhower table grouping a week's tasks into Do First / Schedule / Delegate / Delete — the canonical text-in-cell layout, not a scatter chart.
productivity
matrix·§ Impact–Effort (Sondhi 1999)
Matrix — Sprint Planning — Q2 Backlog Matrix diagram (impact-effort template), quadrant mode, 0 point(s) Sprint Planning — Q2 Backlog Quick Wins • Add bulk-delete to inbox • Surface error message inline • Fix mobile menu z-index bug Major Projects • Rebuild billing on new stripe API • Multi-tenant workspace support Fill-ins • Brand color audit • Update tooltip copy Thankless • Animated empty-state illustrations • Internal admin dashboard polish
Impact-effort feature prioritization
2×2 impact × effort table sorting a backlog into Quick Wins / Major Projects / Fill-ins / Thankless — the classic PM prioritization grid.
product
matrix·§ Johari window (Luft & Ingham 1955)
Matrix — Self vs. Team — Q2 Reflection Matrix diagram (johari template), quadrant mode, 0 point(s) Self vs. Team — Q2 Reflection Open / Arena • Strong technical instincts • Direct in code review • Patient with juniors Blind • Interrupts in meetings • Hard to read when stressed Hidden / Façade • Imposter syndrome about leadership • Anxiety about cross-team politics Unknown • Capacity for difficult conversations under pressure
Johari window — manager self-assessment
2×2 Johari window placing self-traits across Open / Blind / Hidden / Unknown — the classic coaching exercise rendered as a four-cell table.
coaching
matrix·§ 9-Box Talent Grid (GE / McKinsey)
Matrix — Engineering — H1 Talent Review Matrix diagram (9-box template), quadrant mode, 0 point(s) Engineering — H1 Talent Review • Enigma • Samir K. (sr. eng) • Growth Employee • Priya R. (eng II) • Tomás L. (eng II) • Future Leader • Maya O. (sr. eng) • Dilemma • David C. (eng II) • Core Player • Lin H. (sr. eng) • Kofi A. (eng II) • High Impact • Reina S. (staff) • Under-performer • — PIP candidate — • Effective • Jordan P. (eng I) • Trusted Pro • Elena V. (staff)
9-box talent grid
3×3 performance × potential talent grid — the GE/McKinsey HR review tool used to plan promotions, succession, and performance management.
hr
matrix·§ BCG Growth-Share (1970)
Matrix — Product Portfolio — FY26 Matrix diagram (bcg template), quadrant mode, 5 point(s) Product Portfolio — FY26 Question Marks Stars Cash Cows Dogs High Market Share Low Market Share Low Growth High Growth Platform SDK · (0.80, 0.80) · size 5 Platform SDK Legacy API · (0.85, 0.15) · size 4 Legacy API Mobile SDK · (0.25, 0.85) · size 3 Mobile SDK Self-serve billing · (0.35, 0.75) · size 2 Self-serve billing On-prem installer · (0.20, 0.15) · size 1 On-prem installer star cashcow question dog
BCG product portfolio
BCG matrix plotting five product lines by market share and growth rate — stars, cash cows, question marks, and one dog — for annual investment planning.
strategy
matrix·§ Mendelian genetics (Punnett square)
Punnett square — Eye color (Bb × Bb) Punnett square — monohybrid cross Bb × Bb; phenotype ratio 3:1 Eye color (Bb × Bb) Bb Bb B b B b BB Bb Bb bb Phenotype ratio 3:1 3 × Brown eyes 1 × Blue eyes Genotype ratio 2:1:1 — 2 Bb, 1 bb, 1 BB
Monohybrid cross Punnett square (3:1)
The classic single-gene Punnett square — two heterozygous parents (Bb × Bb) crossed for eye colour. The engine computes the gametes, the 2×2 grid, and the canonical 3:1 dominant-to-recessive phenotype ratio with a 1:2:1 genotype ratio.
education
matrix·§ Mendelian genetics (Punnett square)
Punnett square — Seed shape &amp; colour (RrYy × RrYy) Punnett square — dihybrid cross RrYy × RrYy; phenotype ratio 9:3:3:1 Seed shape & colour (RrYy × RrYy) RrYy RrYy RY Ry rY ry RY Ry rY ry RRYY RRYy RrYY RrYy RRYy RRyy RrYy Rryy RrYY RrYy rrYY rrYy RrYy Rryy rrYy rryy Phenotype ratio 9:3:3:1 9 × Round, Yellow 3 × Wrinkled, Yellow 3 × Round, Green 1 × Wrinkled, Green Genotype ratio 4:2:2:2:2:1:1:1:1 — 9 distinct genotypes
Dihybrid cross Punnett square (9:3:3:1)
A two-gene Punnett square where the engine computes the gametes, the 4×4 offspring grid, and the canonical 9:3:3:1 phenotype ratio — Mendel's pea seed shape × colour cross — with each phenotype class auto-tinted.
education
matrix·§ Mendelian genetics (Punnett square)
Punnett square — Test cross (Bb × bb) Punnett square — monohybrid cross Bb × bb; phenotype ratio 1:1 Test cross (Bb × bb) Bb bb B b b b Bb bb Bb bb Phenotype ratio 1:1 2 × Blue 2 × Brown Genotype ratio 1:1 — 2 bb, 2 Bb
Test cross Punnett square (1:1)
A genetic test cross — crossing an organism of unknown genotype against a homozygous-recessive parent (Bb × bb) to reveal whether it is heterozygous. The engine computes the 1:1 phenotype ratio that signals a heterozygous parent.
education

Found this useful?

Schematex is free, fully open source, and zero-dependency. A star helps other developers discover it.