---
code: "NET-09"
id: "c-mindmap"
tab: "network"
kind: "core"
title: "Mind Map · 마인드맵"
library: "ECharts"
deps: ["echarts@5"]
load: "low"
pasteKind: "echarts-mount"
family: "hierarchy"
dataShape: "radial branching tree"
tasks: ["show connections", "show hierarchy", "trace flow", "expand idea clusters"]
tags: ["network", "relationship", "flow", "hierarchy", "tree", "mindmap", "radial tree", "mind", "map", "마인드맵"]
gallery: "https://graph.heal7.com/#NET-09"
js: "/sku/NET-09.js"
---

# [NET-09] Mind Map · 마인드맵

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

## 언제 가져가나
중심 노드에서 좌우로 확장되는 트리 — 아이디어 발산형 구조.

**응용** 브레인스토밍 결과, 학습 로드맵, 커리큘럼 설계.

## 데이터 모양
- family: `hierarchy`
- dataShape: radial branching tree
- tasks: show connections, show hierarchy, trace flow, expand idea clusters
- tags: network, relationship, flow, hierarchy, tree, mindmap, radial tree, mind, map, 마인드맵


## 의존
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(){
  reg('c-mindmap', {
    backgroundColor:T.bg,
    series:[{type:'tree',
      data:[{name:'명상·회복', children:[
        {name:'호흡', children:[{name:'4-7-8'},{name:'박스 호흡'},{name:'복식'}]},
        {name:'마음챙김', children:[{name:'바디스캔'},{name:'관찰'},{name:'걷기명상'}]},
        {name:'운동', children:[{name:'요가'},{name:'스트레칭'}]},
        {name:'수면', children:[{name:'NSDR'},{name:'규칙성'},{name:'환경'}]}
      ]}],
      layout:'orthogonal', orient:'LR', symbol:'emptyCircle', symbolSize:9,
      initialTreeDepth:3, top:14, bottom:14, left:80, right:80,
      label:{color:T.fg, fontSize:11, position:'left', verticalAlign:'middle', align:'right'},
      leaves:{label:{position:'right', align:'left'}},
      lineStyle:{color:T.gold, width:1.4, curveness:.5},
      itemStyle:{color:T.royal, borderColor:T.gold, borderWidth:1.5},
      emphasis:{focus:'descendant'},
      expandAndCollapse:true
    }]
  });
};
factory();
```

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

```js
function(){
  reg('c-mindmap', {
    backgroundColor:T.bg,
    series:[{type:'tree',
      data:[{name:'명상·회복', children:[
        {name:'호흡', children:[{name:'4-7-8'},{name:'박스 호흡'},{name:'복식'}]},
        {name:'마음챙김', children:[{name:'바디스캔'},{name:'관찰'},{name:'걷기명상'}]},
        {name:'운동', children:[{name:'요가'},{name:'스트레칭'}]},
        {name:'수면', children:[{name:'NSDR'},{name:'규칙성'},{name:'환경'}]}
      ]}],
      layout:'orthogonal', orient:'LR', symbol:'emptyCircle', symbolSize:9,
      initialTreeDepth:3, top:14, bottom:14, left:80, right:80,
      label:{color:T.fg, fontSize:11, position:'left', verticalAlign:'middle', align:'right'},
      leaves:{label:{position:'right', align:'left'}},
      lineStyle:{color:T.gold, width:1.4, curveness:.5},
      itemStyle:{color:T.royal, borderColor:T.gold, borderWidth:1.5},
      emphasis:{focus:'descendant'},
      expandAndCollapse:true
    }]
  });
}
```

