---
code: "INT-10"
id: "c-polarea"
tab: "dynamic-1"
kind: "interactive"
title: "Polar Area · 극좌표 영역"
library: "ECharts"
deps: ["echarts@5"]
load: "low"
pasteKind: "echarts-mount"
family: "multivariate"
dataShape: "multiple dimensions per record or profile"
tasks: ["explore data", "monitor change", "drill into structure", "compare profiles"]
tags: ["interactive", "live", "exploration", "multivariate", "polar", "area", "극좌표", "영역"]
gallery: "https://graph.heal7.com/#INT-10"
js: "/sku/INT-10.js"
---

# [INT-10] Polar Area · 극좌표 영역

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

## 언제 가져가나
극좌표 위 부드러운 영역 — 회전 대칭 데이터를 입체적으로.

**응용** 풍향·풍속 장미, 방위별 노이즈, 24시간 활동 곡선.

## 데이터 모양
- family: `multivariate`
- dataShape: multiple dimensions per record or profile
- tasks: explore data, monitor change, drill into structure, compare profiles
- tags: interactive, live, exploration, multivariate, polar, area, 극좌표, 영역


## 의존
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-polarea'); if(!dom) return;
  const c = echarts.init(dom);
  const angles = [], data1 = [], data2 = [];
  for(let i=0;i<32;i++){
    const a = i*360/32;
    angles.push(a.toFixed(0)+'°');
    data1.push(40 + Math.sin(i/3)*20 + Math.cos(i/5)*10);
    data2.push(28 + Math.cos(i/2.5)*15);
  }
  c.setOption({
    backgroundColor:T.bg, tooltip:{},
    polar:{radius:'78%'},
    angleAxis:{type:'category', data:angles, axisLabel:{color:T.sub,fontSize:9}, axisLine:{lineStyle:{color:T.grid}}, splitLine:{show:false}, startAngle:90},
    radiusAxis:{axisLabel:{color:T.sub,fontSize:9}, splitLine:{lineStyle:{color:T.grid}}, axisLine:{show:false}},
    series:[
      {type:'line', coordinateSystem:'polar', smooth:true, data:data1, lineStyle:{color:T.gold,width:2}, itemStyle:{color:T.gold}, areaStyle:{color:'rgba(232,192,105,.28)'}, symbol:'none'},
      {type:'line', coordinateSystem:'polar', smooth:true, data:data2, lineStyle:{color:T.royal,width:2,type:'dashed'}, itemStyle:{color:T.royal}, areaStyle:{color:'rgba(107,140,255,.16)'}, symbol:'none'}
    ]
  });
  charts.push(c);
};
factory();
```

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

```js
function(){
  const dom = document.getElementById('c-polarea'); if(!dom) return;
  const c = echarts.init(dom);
  const angles = [], data1 = [], data2 = [];
  for(let i=0;i<32;i++){
    const a = i*360/32;
    angles.push(a.toFixed(0)+'°');
    data1.push(40 + Math.sin(i/3)*20 + Math.cos(i/5)*10);
    data2.push(28 + Math.cos(i/2.5)*15);
  }
  c.setOption({
    backgroundColor:T.bg, tooltip:{},
    polar:{radius:'78%'},
    angleAxis:{type:'category', data:angles, axisLabel:{color:T.sub,fontSize:9}, axisLine:{lineStyle:{color:T.grid}}, splitLine:{show:false}, startAngle:90},
    radiusAxis:{axisLabel:{color:T.sub,fontSize:9}, splitLine:{lineStyle:{color:T.grid}}, axisLine:{show:false}},
    series:[
      {type:'line', coordinateSystem:'polar', smooth:true, data:data1, lineStyle:{color:T.gold,width:2}, itemStyle:{color:T.gold}, areaStyle:{color:'rgba(232,192,105,.28)'}, symbol:'none'},
      {type:'line', coordinateSystem:'polar', smooth:true, data:data2, lineStyle:{color:T.royal,width:2,type:'dashed'}, itemStyle:{color:T.royal}, areaStyle:{color:'rgba(107,140,255,.16)'}, symbol:'none'}
    ]
  });
  charts.push(c);
}
```

