---
code: "CMP-03"
id: "c-pictorial"
tab: "compare"
kind: "core"
title: "Pictorial · 캐릭터 배치"
library: "ECharts"
deps: ["echarts@5"]
load: "low"
pasteKind: "echarts-mount"
family: "positioning"
dataShape: "icon positions in 2D field"
tasks: ["compare alternatives", "show delta", "benchmark groups", "show persona position"]
tags: ["comparison", "benchmark", "delta", "pictorial", "persona", "캐릭터", "배치"]
gallery: "https://graph.heal7.com/#CMP-03"
js: "/sku/CMP-03.js"
---

# [CMP-03] Pictorial · 캐릭터 배치

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

## 언제 가져가나
8캐릭터 좌표 + 본인 강조 마커.

**응용** MBTI 분포, 페르소나 거리 매핑.

## 데이터 모양
- family: `positioning`
- dataShape: icon positions in 2D field
- tasks: compare alternatives, show delta, benchmark groups, show persona position
- tags: comparison, benchmark, delta, pictorial, persona, 캐릭터, 배치


## 의존
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 chars = [
    {n:'탐구', x:1.2, y:2.4}, {n:'창조', x:2.4, y:2.6}, {n:'조화', x:0.8, y:1.6},
    {n:'실행', x:2.6, y:1.4}, {n:'보호', x:0.6, y:0.6}, {n:'혁신', x:2.8, y:0.8},
    {n:'통찰', x:1.6, y:2.2}, {n:'도약', x:2.2, y:1.8}
  ];
  reg('c-pictorial', {
    backgroundColor:T.bg, tooltip:{formatter:p=>p.data[2]},
    grid:{top:14,right:14,bottom:14,left:14},
    xAxis:{show:false, min:0, max:3.4}, yAxis:{show:false, min:0, max:3.2},
    series:[
      {type:'scatter', data:chars.map(c=>[c.x,c.y,c.n]), symbolSize:34,
        itemStyle:{color:'rgba(107,140,255,.45)', borderColor:T.royal, borderWidth:1.5},
        label:{show:true, color:'#fff', fontSize:11, fontWeight:700, formatter:p=>p.data[2]}},
      {type:'effectScatter', data:[[chars[6].x, chars[6].y, '본인 ★']], symbolSize:48, rippleEffect:{scale:3.5},
        itemStyle:{color:T.gold, shadowBlur:18, shadowColor:T.gold},
        label:{show:true, color:'#1a1230', fontSize:11, fontWeight:800, formatter:'★'}}
    ]
  });
};
factory();
```

## 원본 factory (갤러리 정본 발췌)
- file: `frontend/js/graph-gallery/main.js`
- lines: 778-797
- gallery: https://graph.heal7.com/#CMP-03
- raw js: https://graph.heal7.com/sku/CMP-03.js

```js
function(){
  const chars = [
    {n:'탐구', x:1.2, y:2.4}, {n:'창조', x:2.4, y:2.6}, {n:'조화', x:0.8, y:1.6},
    {n:'실행', x:2.6, y:1.4}, {n:'보호', x:0.6, y:0.6}, {n:'혁신', x:2.8, y:0.8},
    {n:'통찰', x:1.6, y:2.2}, {n:'도약', x:2.2, y:1.8}
  ];
  reg('c-pictorial', {
    backgroundColor:T.bg, tooltip:{formatter:p=>p.data[2]},
    grid:{top:14,right:14,bottom:14,left:14},
    xAxis:{show:false, min:0, max:3.4}, yAxis:{show:false, min:0, max:3.2},
    series:[
      {type:'scatter', data:chars.map(c=>[c.x,c.y,c.n]), symbolSize:34,
        itemStyle:{color:'rgba(107,140,255,.45)', borderColor:T.royal, borderWidth:1.5},
        label:{show:true, color:'#fff', fontSize:11, fontWeight:700, formatter:p=>p.data[2]}},
      {type:'effectScatter', data:[[chars[6].x, chars[6].y, '본인 ★']], symbolSize:48, rippleEffect:{scale:3.5},
        itemStyle:{color:T.gold, shadowBlur:18, shadowColor:T.gold},
        label:{show:true, color:'#1a1230', fontSize:11, fontWeight:800, formatter:'★'}}
    ]
  });
}
```

