---
code: "INT-16"
id: "c-radialbar"
tab: "dynamic-1"
kind: "interactive"
title: "Concentric Radial · 원형 누적 막대"
library: "ECharts"
deps: ["echarts@5"]
load: "low"
pasteKind: "echarts-mount"
family: "comparison"
dataShape: "ranked categories or before-after pairs"
tasks: ["explore data", "monitor change", "drill into structure", "compare categories"]
tags: ["interactive", "live", "exploration", "comparison", "ranking", "concentric", "radial", "원형", "누적", "막대"]
gallery: "https://graph.heal7.com/#INT-16"
js: "/sku/INT-16.js"
---

# [INT-16] Concentric Radial · 원형 누적 막대

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

## 언제 가져가나
폴라 좌표 위 누적 가로막대 — 항목별 구성비를 둥글게.

**응용** 시간대별 작업 비중, 채널별 매출 구성, 감정 스펙트럼.

## 데이터 모양
- family: `comparison`
- dataShape: ranked categories or before-after pairs
- tasks: explore data, monitor change, drill into structure, compare categories
- tags: interactive, live, exploration, comparison, ranking, concentric, radial, 원형, 누적, 막대


## 의존
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-radialbar'); if(!dom) return;
  const c = echarts.init(dom);
  const cats = ['새벽','오전','점심','오후','저녁','심야'];
  c.setOption({
    backgroundColor:T.bg, tooltip:{},
    legend:{data:['집중','협업','학습','휴식'], textStyle:{color:T.sub}, top:0, right:8, itemWidth:10, itemHeight:10},
    polar:{radius:['18%','82%']},
    angleAxis:{max:100, startAngle:90, axisLabel:{color:T.sub,fontSize:9}, splitLine:{lineStyle:{color:T.grid}}, axisLine:{show:false}},
    radiusAxis:{type:'category', data:cats, axisLabel:{color:T.fg,fontSize:11,fontWeight:600}, axisLine:{show:false}, axisTick:{show:false}, z:10},
    series:[
      {name:'집중', type:'bar', stack:'a', coordinateSystem:'polar', data:[12,28,18,32,22,8], itemStyle:{color:T.gold}, emphasis:{focus:'series'}},
      {name:'협업', type:'bar', stack:'a', coordinateSystem:'polar', data:[4,28,22,28,18,2],  itemStyle:{color:T.royal}, emphasis:{focus:'series'}},
      {name:'학습', type:'bar', stack:'a', coordinateSystem:'polar', data:[6,14,10,12,28,16], itemStyle:{color:T.rose}, emphasis:{focus:'series'}},
      {name:'휴식', type:'bar', stack:'a', coordinateSystem:'polar', data:[18,4,12,8,18,40],  itemStyle:{color:T.teal}, emphasis:{focus:'series'}}
    ]
  });
  charts.push(c);
};
factory();
```

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

```js
function(){
  const dom = document.getElementById('c-radialbar'); if(!dom) return;
  const c = echarts.init(dom);
  const cats = ['새벽','오전','점심','오후','저녁','심야'];
  c.setOption({
    backgroundColor:T.bg, tooltip:{},
    legend:{data:['집중','협업','학습','휴식'], textStyle:{color:T.sub}, top:0, right:8, itemWidth:10, itemHeight:10},
    polar:{radius:['18%','82%']},
    angleAxis:{max:100, startAngle:90, axisLabel:{color:T.sub,fontSize:9}, splitLine:{lineStyle:{color:T.grid}}, axisLine:{show:false}},
    radiusAxis:{type:'category', data:cats, axisLabel:{color:T.fg,fontSize:11,fontWeight:600}, axisLine:{show:false}, axisTick:{show:false}, z:10},
    series:[
      {name:'집중', type:'bar', stack:'a', coordinateSystem:'polar', data:[12,28,18,32,22,8], itemStyle:{color:T.gold}, emphasis:{focus:'series'}},
      {name:'협업', type:'bar', stack:'a', coordinateSystem:'polar', data:[4,28,22,28,18,2],  itemStyle:{color:T.royal}, emphasis:{focus:'series'}},
      {name:'학습', type:'bar', stack:'a', coordinateSystem:'polar', data:[6,14,10,12,28,16], itemStyle:{color:T.rose}, emphasis:{focus:'series'}},
      {name:'휴식', type:'bar', stack:'a', coordinateSystem:'polar', data:[18,4,12,8,18,40],  itemStyle:{color:T.teal}, emphasis:{focus:'series'}}
    ]
  });
  charts.push(c);
}
```

