---
code: "INT-27"
id: "c-heatpulse"
tab: "dynamic-2"
kind: "interactive"
title: "Heat Pulse · 펄스 매트릭스"
library: "ECharts"
deps: ["echarts@5"]
load: "med"
pasteKind: "echarts-mount"
family: "monitoring"
dataShape: "time-slot heatmap with pulsing cells"
tasks: ["explore data", "filter subsets", "monitor change", "show trend over time", "find busy slots"]
tags: ["interactive", "exploration", "linked view", "time-series", "heatmap", "pulse", "heat", "펄스", "매트릭스"]
gallery: "https://graph.heal7.com/#INT-27"
js: "/sku/INT-27.js"
---

# [INT-27] Heat Pulse · 펄스 매트릭스

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

## 언제 가져가나
시간×요일 24×7 셀이 1.5초마다 색을 바꿔 깜빡이는 라이브 매트릭스.

**응용** 실시간 트래픽 매트릭스, 서버 부하 히트맵, 채팅 활성도.

## 데이터 모양
- family: `monitoring`
- dataShape: time-slot heatmap with pulsing cells
- tasks: explore data, filter subsets, monitor change, show trend over time, find busy slots
- tags: interactive, exploration, linked view, time-series, heatmap, pulse, heat, 펄스, 매트릭스


## 의존
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-heatpulse'); if(!dom) return;
  const c = echarts.init(dom);
  const X = 24, Y = 7;
  const xs = Array.from({length:X},(_,i)=>i+'시');
  const ys = ['월','화','수','목','금','토','일'];
  let data = [];
  for(let y=0;y<Y;y++) for(let x=0;x<X;x++) data.push([x, y, Math.round(20+Math.random()*60)]);
  function paint(){
    c.setOption({
      backgroundColor:T.bg, tooltip:{},
      grid:{top:14, right:14, bottom:30, left:36},
      xAxis:{type:'category', data:xs, axisLabel:{color:T.sub,fontSize:9}},
      yAxis:{type:'category', data:ys, axisLabel:{color:T.fg,fontSize:11,fontWeight:600}, inverse:true},
      visualMap:{show:false, min:0, max:100, inRange:{color:['rgba(255,255,255,.04)', T.royal, T.plum, T.gold]}},
      series:[{type:'heatmap', data, animationDurationUpdate:900, animationEasingUpdate:'cubicInOut',
        itemStyle:{borderRadius:2, borderColor:cssv('--bg','#000'), borderWidth:1}}]
    });
  }
  paint();
  setInterval(()=>{
    data = data.map(d=>[d[0], d[1], Math.max(5, Math.min(100, d[2] + (Math.random()*16-8)))]);
    paint();
  }, 1500);
  charts.push(c);
};
factory();
```

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

```js
function(){
  const dom = document.getElementById('c-heatpulse'); if(!dom) return;
  const c = echarts.init(dom);
  const X = 24, Y = 7;
  const xs = Array.from({length:X},(_,i)=>i+'시');
  const ys = ['월','화','수','목','금','토','일'];
  let data = [];
  for(let y=0;y<Y;y++) for(let x=0;x<X;x++) data.push([x, y, Math.round(20+Math.random()*60)]);
  function paint(){
    c.setOption({
      backgroundColor:T.bg, tooltip:{},
      grid:{top:14, right:14, bottom:30, left:36},
      xAxis:{type:'category', data:xs, axisLabel:{color:T.sub,fontSize:9}},
      yAxis:{type:'category', data:ys, axisLabel:{color:T.fg,fontSize:11,fontWeight:600}, inverse:true},
      visualMap:{show:false, min:0, max:100, inRange:{color:['rgba(255,255,255,.04)', T.royal, T.plum, T.gold]}},
      series:[{type:'heatmap', data, animationDurationUpdate:900, animationEasingUpdate:'cubicInOut',
        itemStyle:{borderRadius:2, borderColor:cssv('--bg','#000'), borderWidth:1}}]
    });
  }
  paint();
  setInterval(()=>{
    data = data.map(d=>[d[0], d[1], Math.max(5, Math.min(100, d[2] + (Math.random()*16-8)))]);
    paint();
  }, 1500);
  charts.push(c);
}
```

