---
code: "TIM-11"
id: "c-events"
tab: "timeline"
kind: "core"
title: "Event Timeline · 이벤트 타임라인"
library: "ECharts"
deps: ["echarts@5"]
load: "low"
pasteKind: "echarts-mount"
family: "time-series"
dataShape: "ordered time steps, events or schedules"
tasks: ["show trend", "show seasonality", "show sequence", "show trend over time"]
tags: ["time-series", "trend", "timeline", "event", "이벤트", "타임라인"]
gallery: "https://graph.heal7.com/#TIM-11"
js: "/sku/TIM-11.js"
---

# [TIM-11] Event Timeline · 이벤트 타임라인

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

## 언제 가져가나
시간축 위 양쪽으로 펼쳐지는 이벤트 마커 + 카테고리별 색상.

**응용** 제품 런칭 히스토리, 인시던트 기록, 캠페인 이력.

## 데이터 모양
- family: `time-series`
- dataShape: ordered time steps, events or schedules
- tasks: show trend, show seasonality, show sequence, show trend over time
- tags: time-series, trend, timeline, event, 이벤트, 타임라인


## 의존
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 events = [
    {t:'2026-01', l:'서비스 런칭', cat:'major'},
    {t:'2026-02', l:'1만 가입',    cat:'milestone'},
    {t:'2026-03', l:'iOS 출시',    cat:'release'},
    {t:'2026-04', l:'장애 30분',   cat:'incident'},
    {t:'2026-05', l:'10만 가입',   cat:'milestone'},
    {t:'2026-06', l:'프리미엄',    cat:'release'},
    {t:'2026-08', l:'30만 가입',   cat:'milestone'},
    {t:'2026-10', l:'시리즈 A',    cat:'major'},
    {t:'2026-12', l:'연말 리포트', cat:'minor'}
  ];
  const cmap = {major:T.gold, milestone:T.royal, release:T.teal, incident:T.rose, minor:T.plum};
  reg('c-events', {
    backgroundColor:T.bg, tooltip:{formatter:p=>p.data.value[2]},
    grid:{top:30, right:30, bottom:50, left:30},
    xAxis:{type:'category', data:events.map(e=>e.t), axisLabel:{color:T.sub,fontSize:10}, axisLine:{lineStyle:{color:T.gold,width:2}}, axisTick:{lineStyle:{color:T.gold}}},
    yAxis:{type:'value', show:false, min:-1, max:1},
    series:[{type:'effectScatter', symbolSize:14, rippleEffect:{scale:3, period:4, brushType:'stroke'},
      data: events.map((e,i)=>({
        value:[e.t, (i%2===0?0.5:-0.5), e.l],
        itemStyle:{color:cmap[e.cat], shadowBlur:10, shadowColor:cmap[e.cat]},
        label:{show:true, formatter:e.l, fontSize:10, color:T.fg, position:i%2===0?'top':'bottom', distance:8}
      }))
    }]
  });
};
factory();
```

## 원본 factory (갤러리 정본 발췌)
- file: `frontend/js/graph-gallery/main.js`
- lines: 2575-2601
- gallery: https://graph.heal7.com/#TIM-11
- raw js: https://graph.heal7.com/sku/TIM-11.js

```js
function(){
  const events = [
    {t:'2026-01', l:'서비스 런칭', cat:'major'},
    {t:'2026-02', l:'1만 가입',    cat:'milestone'},
    {t:'2026-03', l:'iOS 출시',    cat:'release'},
    {t:'2026-04', l:'장애 30분',   cat:'incident'},
    {t:'2026-05', l:'10만 가입',   cat:'milestone'},
    {t:'2026-06', l:'프리미엄',    cat:'release'},
    {t:'2026-08', l:'30만 가입',   cat:'milestone'},
    {t:'2026-10', l:'시리즈 A',    cat:'major'},
    {t:'2026-12', l:'연말 리포트', cat:'minor'}
  ];
  const cmap = {major:T.gold, milestone:T.royal, release:T.teal, incident:T.rose, minor:T.plum};
  reg('c-events', {
    backgroundColor:T.bg, tooltip:{formatter:p=>p.data.value[2]},
    grid:{top:30, right:30, bottom:50, left:30},
    xAxis:{type:'category', data:events.map(e=>e.t), axisLabel:{color:T.sub,fontSize:10}, axisLine:{lineStyle:{color:T.gold,width:2}}, axisTick:{lineStyle:{color:T.gold}}},
    yAxis:{type:'value', show:false, min:-1, max:1},
    series:[{type:'effectScatter', symbolSize:14, rippleEffect:{scale:3, period:4, brushType:'stroke'},
      data: events.map((e,i)=>({
        value:[e.t, (i%2===0?0.5:-0.5), e.l],
        itemStyle:{color:cmap[e.cat], shadowBlur:10, shadowColor:cmap[e.cat]},
        label:{show:true, formatter:e.l, fontSize:10, color:T.fg, position:i%2===0?'top':'bottom', distance:8}
      }))
    }]
  });
}
```

