---
code: "INT-13"
id: "c-rings"
tab: "dynamic-1"
kind: "interactive"
title: "Multi-Ring Gauge · 다중 링"
library: "ECharts"
deps: ["echarts@5"]
load: "med"
pasteKind: "echarts-mount"
family: "kpi"
dataShape: "headline value, rank race or progress state"
tasks: ["explore data", "monitor change", "drill into structure", "surface headline KPI"]
tags: ["interactive", "live", "exploration", "kpi", "progress", "multi", "ring", "gauge", "다중"]
gallery: "https://graph.heal7.com/#INT-13"
js: "/sku/INT-13.js"
---

# [INT-13] Multi-Ring Gauge · 다중 링

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

## 언제 가져가나
4개 KPI를 동심원으로 — 진행·만족·효율·신뢰. 2초마다 갱신.

**응용** 대시보드 헤드라인, OKR 4축 동시 추적.

## 데이터 모양
- family: `kpi`
- dataShape: headline value, rank race or progress state
- tasks: explore data, monitor change, drill into structure, surface headline KPI
- tags: interactive, live, exploration, kpi, progress, multi, ring, gauge, 다중


## 의존
echarts@5 · load `med` · 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-rings'); if(!dom) return;
  const c = echarts.init(dom);
  const rings = [
    {name:'진행', color:T.gold,  r:'88%'},
    {name:'만족', color:T.royal, r:'72%'},
    {name:'효율', color:T.rose,  r:'56%'},
    {name:'신뢰', color:T.teal,  r:'40%'}
  ];
  let vals = [78, 64, 88, 52];
  function paint(){
    c.setOption({
      backgroundColor:T.bg,
      series: rings.map((r,i)=>({
        type:'gauge', center:['50%','55%'], radius:r.r, startAngle:210, endAngle:-30, min:0, max:100,
        progress:{show:true, width:8, roundCap:true, itemStyle:{color:r.color, shadowBlur:6, shadowColor:r.color}},
        axisLine:{lineStyle:{width:8, color:[[1,'rgba(255,255,255,.06)']]}},
        pointer:{show:false}, axisTick:{show:false}, splitLine:{show:false}, axisLabel:{show:false},
        title:{show:false}, detail:{show:false},
        data:[{value: vals[i]}],
        animationDurationUpdate:1200, animationEasingUpdate:'cubicInOut'
      })),
      graphic:[
        {type:'text', left:'center', top:'48%', style:{text:Math.round(vals.reduce((s,v)=>s+v,0)/4)+'%', fontSize:24, fontWeight:700, fill:T.fg, textAlign:'center'}},
        {type:'text', left:'center', top:'62%', style:{text:'평균 KPI', fontSize:11, fill:T.sub, textAlign:'center'}}
      ]
    });
  }
  paint();
  setInterval(()=>{
    vals = vals.map(v => Math.max(15, Math.min(98, v + (Math.random()*20-10))));
    paint();
  }, 2000);
  charts.push(c);
};
factory();
```

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

```js
function(){
  const dom = document.getElementById('c-rings'); if(!dom) return;
  const c = echarts.init(dom);
  const rings = [
    {name:'진행', color:T.gold,  r:'88%'},
    {name:'만족', color:T.royal, r:'72%'},
    {name:'효율', color:T.rose,  r:'56%'},
    {name:'신뢰', color:T.teal,  r:'40%'}
  ];
  let vals = [78, 64, 88, 52];
  function paint(){
    c.setOption({
      backgroundColor:T.bg,
      series: rings.map((r,i)=>({
        type:'gauge', center:['50%','55%'], radius:r.r, startAngle:210, endAngle:-30, min:0, max:100,
        progress:{show:true, width:8, roundCap:true, itemStyle:{color:r.color, shadowBlur:6, shadowColor:r.color}},
        axisLine:{lineStyle:{width:8, color:[[1,'rgba(255,255,255,.06)']]}},
        pointer:{show:false}, axisTick:{show:false}, splitLine:{show:false}, axisLabel:{show:false},
        title:{show:false}, detail:{show:false},
        data:[{value: vals[i]}],
        animationDurationUpdate:1200, animationEasingUpdate:'cubicInOut'
      })),
      graphic:[
        {type:'text', left:'center', top:'48%', style:{text:Math.round(vals.reduce((s,v)=>s+v,0)/4)+'%', fontSize:24, fontWeight:700, fill:T.fg, textAlign:'center'}},
        {type:'text', left:'center', top:'62%', style:{text:'평균 KPI', fontSize:11, fill:T.sub, textAlign:'center'}}
      ]
    });
  }
  paint();
  setInterval(()=>{
    vals = vals.map(v => Math.max(15, Math.min(98, v + (Math.random()*20-10))));
    paint();
  }, 2000);
  charts.push(c);
}
```

