---
code: "SCH-08"
id: "c-sch-swot"
tab: "schemas"
kind: "schema"
title: "SWOT · 4-Box"
library: "SVG"
deps: ["svg"]
load: "low"
pasteKind: "schema-svg"
family: "matrix"
dataShape: "4-cell diagram with 내부×외부 axis"
tasks: ["structure ideas", "explain process", "choose communication frame"]
tags: ["matrix", "내부×외부", "4cells", "SWOT", "전략 진단", "사업계획서"]
gallery: "https://graph.heal7.com/#SCH-08"
js: "/sku/SCH-08.js"
---

# [SCH-08] SWOT · 4-Box

> AI 붙여넣기 카드. 갤러리 런타임(`main.js`)이 아니라 이 파일을 가져와라.

## 언제 가져가나
내부(S/W) × 외부(O/T) 4상자 — 전략 진단의 표준. "현 상황 진단" 단계.

**응용** 전략 진단, 사업계획서 기본 분석, PR 입찰 제안.

## 데이터 모양
- family: `matrix`
- dataShape: 4-cell diagram with 내부×외부 axis
- tasks: structure ideas, explain process, choose communication frame
- tags: matrix, 내부×외부, 4cells, SWOT, 전략 진단, 사업계획서

- schema.type: `matrix`
- schema.cells: `4`
- schema.axis: `내부×외부`


## 의존
svg · load `low` · library `SVG`

## 붙여넣는 법
1. 라이브러리 없음. svg viewBox 0 0 400 240
2. 아래 body 를 svg 안에 넣는다
3. 색 변수(`${gold}` 등)는 T 토큰으로 치환한다

```js
const T = {
  "bg": "transparent",
  "fg": "#ece8f5",
  "sub": "#a59bbd",
  "grid": "rgba(255,255,255,.08)",
  "gold": "#e8c069",
  "royal": "#6b8cff",
  "rose": "#e07a9f",
  "teal": "#6dd2c4",
  "plum": "#b487e8"
};
const gold = T.gold, royal = T.royal, rose = T.rose, teal = T.teal, plum = T.plum, fg = T.fg, sub = T.sub;
const stroke = 'rgba(255,255,255,.18)';
const fill1 = 'rgba(232,192,105,.10)';
const fill2 = 'rgba(107,140,255,.10)';
const host = document.querySelector('#chart');
const body = `
    ${[
      ['S','강점',gold,30,30],['W','약점',royal,210,30],
      ['O','기회',teal,30,125],['T','위협',rose,210,125]
    ].map(([k,lab,c,x,y])=>`
      <rect x="${x}" y="${y}" width="160" height="85" rx="8" fill="${fill1}" stroke="${c}" stroke-width="1.5"/>
      <text x="${x+18}" y="${y+30}" fill="${c}" font-size="22" font-weight="700">${k}</text>
      <text x="${x+44}" y="${y+30}" fill="${fg}" font-size="13" font-weight="600">${lab}</text>
      <text x="${x+18}" y="${y+55}" fill="${sub}" font-size="10">- 항목 1</text>
      <text x="${x+18}" y="${y+72}" fill="${sub}" font-size="10">- 항목 2</text>
    `).join('')}
    <text x="200" y="225" text-anchor="middle" fill="${sub}" font-size="11">내부(S/W) × 외부(O/T) 전략 진단</text>
  `;
host.innerHTML = '<svg viewBox="0 0 400 240" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" style="overflow:visible">' + (typeof body === 'string' ? body : '') + '</svg>';
```

## 원본 factory (갤러리 정본 발췌)
- file: `frontend/js/graph-gallery/main.js`
- lines: 3911-4470
- gallery: https://graph.heal7.com/#SCH-08
- raw js: https://graph.heal7.com/sku/SCH-08.js

```js
`
    ${[
      ['S','강점',gold,30,30],['W','약점',royal,210,30],
      ['O','기회',teal,30,125],['T','위협',rose,210,125]
    ].map(([k,lab,c,x,y])=>`
      <rect x="${x}" y="${y}" width="160" height="85" rx="8" fill="${fill1}" stroke="${c}" stroke-width="1.5"/>
      <text x="${x+18}" y="${y+30}" fill="${c}" font-size="22" font-weight="700">${k}</text>
      <text x="${x+44}" y="${y+30}" fill="${fg}" font-size="13" font-weight="600">${lab}</text>
      <text x="${x+18}" y="${y+55}" fill="${sub}" font-size="10">- 항목 1</text>
      <text x="${x+18}" y="${y+72}" fill="${sub}" font-size="10">- 항목 2</text>
    `).join('')}
    <text x="200" y="225" text-anchor="middle" fill="${sub}" font-size="11">내부(S/W) × 외부(O/T) 전략 진단</text>
  `
```

## 시나리오
- 사업계획서 외부환경 분석
- 신사업 진입 평가
- PR 입찰 제안의 자사 분석
- 채용 공고 — 직무 매력도 진단

## 관련 SKU
`c-sch-tows`, `c-sch-quad`

