---
code: "NET-04"
id: "c-synergy"
tab: "network"
kind: "core"
title: "Synergy Matrix · 직무×역량 매트릭스"
library: "ECharts"
deps: ["echarts@5"]
load: "low"
pasteKind: "echarts-mount"
family: "matrix"
dataShape: "cross matrix of roles by capabilities"
tasks: ["show connections", "show hierarchy", "trace flow", "find synergy gaps"]
tags: ["network", "relationship", "flow", "matrix", "heatmap", "synergy", "직무×역량", "매트릭스"]
gallery: "https://graph.heal7.com/#NET-04"
js: "/sku/NET-04.js"
---

# [NET-04] Synergy Matrix · 직무×역량 매트릭스

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

## 언제 가져가나
HR 8직무 × 8역량 적합도 매트릭스 — 일반 히트맵·인접행렬 패턴 통합. 진한 칸 = 강한 매치.

**응용** 직무-역량 매칭, 멘토-멘티, 부서×스킬 커버리지, 단어 공출현.

## 데이터 모양
- family: `matrix`
- dataShape: cross matrix of roles by capabilities
- tasks: show connections, show hierarchy, trace flow, find synergy gaps
- tags: network, relationship, flow, matrix, heatmap, synergy, 직무×역량, 매트릭스


## 의존
echarts@5 · load `low` · library `ECharts`

## 붙여넣는 법
1. echarts 5.x 로드 (GL이면 echarts-gl도)
2. 컨테이너 id를 원본 id와 맞추거나 `document.getElementById` 한 줄만 바꾼다
3. `T`, `reg`, `cssv` 가 필요하면 갤러리 테마 스텁을 함께 가져간다

```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 cssv = (n, fb) => (getComputedStyle(document.documentElement).getPropertyValue(n).trim() || fb);
const isDark = () => document.documentElement.getAttribute('data-theme') !== 'light';
const charts = [];
const reg = (id, opt) => {
  const dom = document.getElementById(id); if (!dom) return;
  const c = echarts.init(dom, null, {renderer:'canvas'});
  c.setOption(opt);
  charts.push(c);
  return c;
};
const factory = function(){
  const JOBS   = ['개발','디자인','PM','마케팅','영업','HR','재무','CS'];
  const SKILLS = ['분석력','창의력','소통력','리더십','기술력','조직력','꼼꼼함','협업력'];
  // 직무별 역량 적합도 프리셋 (현실 HR 매핑 근사)
  const PRESET = [
    [92,55,48,40,98,62,75,70], // 개발
    [60,98,72,52,72,58,88,78], // 디자인
    [85,70,90,92,68,90,72,88], // PM
    [75,88,82,72,55,72,55,80], // 마케팅
    [62,55,95,80,40,72,52,82], // 영업
    [68,60,92,78,40,90,80,92], // HR
    [88,42,55,55,52,90,98,55], // 재무
    [55,62,90,52,55,75,70,90]  // CS
  ];
  const data = [];
  for(let i=0;i<JOBS.length;i++) for(let j=0;j<SKILLS.length;j++){
    data.push([j,i, PRESET[i][j]]);
  }
  reg('c-synergy', {
    backgroundColor:T.bg, tooltip:{formatter:p=>`${JOBS[p.value[1]]} × ${SKILLS[p.value[0]]}<br/>적합도 <b>${p.value[2]}</b>`},
    grid:{top:18,right:14,bottom:14,left:64},
    xAxis:{type:'category', data:SKILLS, axisLabel:{color:T.sub,fontSize:10}, splitArea:{show:true}},
    yAxis:{type:'category', data:JOBS,   axisLabel:{color:T.fg,fontSize:11,fontWeight:600}, splitArea:{show:true}, inverse:true},
    visualMap:{min:30, max:100, show:false, inRange:{color:['#1f1640','#6b8cff','#b487e8','#e8c069']}},
    series:[{type:'heatmap', data, label:{show:true, color:'#fff', fontSize:10, formatter:p=>p.value[2]}, itemStyle:{borderRadius:3, borderColor:'#0e0a1a', borderWidth:1}}]
  });
};
factory();
```

## 원본 factory (갤러리 정본 발췌)
- file: `frontend/js/graph-gallery/main.js`
- lines: 567-593
- gallery: https://graph.heal7.com/#NET-04
- raw js: https://graph.heal7.com/sku/NET-04.js

```js
function(){
  const JOBS   = ['개발','디자인','PM','마케팅','영업','HR','재무','CS'];
  const SKILLS = ['분석력','창의력','소통력','리더십','기술력','조직력','꼼꼼함','협업력'];
  // 직무별 역량 적합도 프리셋 (현실 HR 매핑 근사)
  const PRESET = [
    [92,55,48,40,98,62,75,70], // 개발
    [60,98,72,52,72,58,88,78], // 디자인
    [85,70,90,92,68,90,72,88], // PM
    [75,88,82,72,55,72,55,80], // 마케팅
    [62,55,95,80,40,72,52,82], // 영업
    [68,60,92,78,40,90,80,92], // HR
    [88,42,55,55,52,90,98,55], // 재무
    [55,62,90,52,55,75,70,90]  // CS
  ];
  const data = [];
  for(let i=0;i<JOBS.length;i++) for(let j=0;j<SKILLS.length;j++){
    data.push([j,i, PRESET[i][j]]);
  }
  reg('c-synergy', {
    backgroundColor:T.bg, tooltip:{formatter:p=>`${JOBS[p.value[1]]} × ${SKILLS[p.value[0]]}<br/>적합도 <b>${p.value[2]}</b>`},
    grid:{top:18,right:14,bottom:14,left:64},
    xAxis:{type:'category', data:SKILLS, axisLabel:{color:T.sub,fontSize:10}, splitArea:{show:true}},
    yAxis:{type:'category', data:JOBS,   axisLabel:{color:T.fg,fontSize:11,fontWeight:600}, splitArea:{show:true}, inverse:true},
    visualMap:{min:30, max:100, show:false, inRange:{color:['#1f1640','#6b8cff','#b487e8','#e8c069']}},
    series:[{type:'heatmap', data, label:{show:true, color:'#fff', fontSize:10, formatter:p=>p.value[2]}, itemStyle:{borderRadius:3, borderColor:'#0e0a1a', borderWidth:1}}]
  });
}
```

