---
code: "INT-07"
id: "c-parallel"
tab: "dynamic-1"
kind: "interactive"
title: "Parallel · 평행 좌표"
library: "ECharts"
deps: ["echarts@5"]
load: "low"
pasteKind: "echarts-mount"
family: "multivariate-analysis"
dataShape: "multi-axis line records"
tasks: ["explore data", "monitor change", "drill into structure", "compare profiles", "screen candidates"]
tags: ["interactive", "live", "exploration", "multivariate", "parallel coordinates", "parallel", "평행", "좌표"]
gallery: "https://graph.heal7.com/#INT-07"
js: "/sku/INT-07.js"
---

# [INT-07] Parallel · 평행 좌표

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

## 언제 가져가나
5축 다변량 표본을 라인으로 — 축을 드래그해 부분집합 필터링.

**응용** 스펙 비교(노트북·자동차), 후보군 다차원 스크리닝.

## 데이터 모양
- family: `multivariate-analysis`
- dataShape: multi-axis line records
- tasks: explore data, monitor change, drill into structure, compare profiles, screen candidates
- tags: interactive, live, exploration, multivariate, parallel coordinates, parallel, 평행, 좌표


## 의존
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 dom = document.getElementById('c-parallel'); if(!dom) return;
  const c = echarts.init(dom);
  const dims = ['창의','분석','관계','실행','안정'];
  const data = []; for(let i=0;i<24;i++) data.push(dims.map(()=>Math.round(20+Math.random()*70)));
  data[5] = [88, 76, 62, 80, 55]; // 본인
  c.setOption({
    backgroundColor:T.bg,
    parallelAxis: dims.map((d,i)=>({dim:i, name:d, max:100, nameTextStyle:{color:T.gold,fontSize:11,fontWeight:600}, axisLine:{lineStyle:{color:T.grid}}, axisLabel:{color:T.sub,fontSize:10}})),
    parallel:{top:32, right:24, bottom:14, left:24, parallelAxisDefault:{type:'value'}},
    series:[{type:'parallel', lineStyle:{width:1, opacity:.4, color:T.royal},
      data: data.map((d,i)=> i===5
        ? {value:d, lineStyle:{color:T.gold, width:3, opacity:1, shadowBlur:8, shadowColor:T.gold}}
        : {value:d})
    }]
  });
  charts.push(c);
};
factory();
```

## 원본 factory (갤러리 정본 발췌)
- file: `frontend/js/graph-gallery/main.js`
- lines: 1166-1183
- gallery: https://graph.heal7.com/#INT-07
- raw js: https://graph.heal7.com/sku/INT-07.js

```js
function(){
  const dom = document.getElementById('c-parallel'); if(!dom) return;
  const c = echarts.init(dom);
  const dims = ['창의','분석','관계','실행','안정'];
  const data = []; for(let i=0;i<24;i++) data.push(dims.map(()=>Math.round(20+Math.random()*70)));
  data[5] = [88, 76, 62, 80, 55]; // 본인
  c.setOption({
    backgroundColor:T.bg,
    parallelAxis: dims.map((d,i)=>({dim:i, name:d, max:100, nameTextStyle:{color:T.gold,fontSize:11,fontWeight:600}, axisLine:{lineStyle:{color:T.grid}}, axisLabel:{color:T.sub,fontSize:10}})),
    parallel:{top:32, right:24, bottom:14, left:24, parallelAxisDefault:{type:'value'}},
    series:[{type:'parallel', lineStyle:{width:1, opacity:.4, color:T.royal},
      data: data.map((d,i)=> i===5
        ? {value:d, lineStyle:{color:T.gold, width:3, opacity:1, shadowBlur:8, shadowColor:T.gold}}
        : {value:d})
    }]
  });
  charts.push(c);
}
```

