Observable Plot
고수준 코드High-level codeD3 위에 만들어진 간결한 탐색용 차트 JavaScript 라이브러리로, Observable Notebook Kit 및 Framework와 함께 쓰입니다A concise JavaScript library for exploratory charts, built on D3 and used with Observable Notebook Kit and Framework
현재 버전Current version: 0.6.17, 정보 확인일 2026-10-24facts checked 2026-10-24
개요Overview
Observable Plot은 탐색적 데이터 시각화를 위한 JavaScript 라이브러리입니다. D3를 만든 마이크 보스톡(Mike Bostock)이 이끈 Observable 팀이 개발했고, "데이터, 마크, 스케일"만 적으면 합리적인 축과 범례가 붙은 차트가 나옵니다. D3가 부품을 하나씩 조립하는 도구라면, Plot은 몇 줄로 통계 차트를 완성하는 고수준 도구입니다.
Observable Plot is a JavaScript library for exploratory data visualization. It was developed by the Observable team, led by Mike Bostock, the creator of D3. You state the data, marks and scales, and you get a chart with sensible axes and a legend. Where D3 assembles parts one by one, Plot finishes a statistical chart in a few lines.
차트는 마크(점, 선, 막대, 영역, 셀 등)를 marks 배열에 겹쳐 쌓아 만듭니다. 그룹화, 구간화, 쌓기, 이동 평균 같은 변환(transform)과 패싯이 들어 있어서 집계를 직접 코딩하지 않아도 됩니다. 결과는 평범한 SVG 또는 HTML 요소이므로 어떤 웹 페이지에도 붙일 수 있습니다.
You build a chart by layering marks (dots, lines, bars, areas, cells and more) in a marks array. Transforms such as grouping, binning, stacking and moving averages, plus facets, are built in, so you rarely code aggregation yourself. The result is an ordinary SVG or HTML element that can be attached to any web page.
Plot은 아직 1.0 이전 버전입니다. 최신 릴리스는 0.6.17(2025-02-14)이고 저장소는 활발히 관리되고 있습니다. Observable의 도구 구성은 Notebooks 2.0 프리뷰, Notebook Kit, Framework로 계속 바뀌고 있으므로, 호스팅 서비스의 요금과 상태보다 라이브러리와 오픈소스 도구를 기준으로 배우는 편이 안전합니다.
Plot is still pre-1.0. The latest release is 0.6.17 (2025-02-14) and the repository is actively maintained. Observable's tooling keeps changing (the Notebooks 2.0 preview, Notebook Kit, Framework), so it is safer to learn the library and the open-source tools than to rely on the hosted service's plans and status.
2026년 현재What's new in 2026
- 최신 npm 릴리스는
@observablehq/plot0.6.17(2025-02-14)이며 라이선스는 ISC입니다. 아직 1.0은 나오지 않았고 GitHub 저장소는 2026년 9월에도 갱신되었습니다. - The latest npm release is
@observablehq/plot0.6.17 (2025-02-14) under the ISC license. There is no 1.0 yet, and the GitHub repository was still updated in September 2026. - Plot은 의존성이 없는 라이브러리가 아닙니다. D3 모듈 등에 의존하므로, 번들 크기는 가져오는 모듈에 따라 달라집니다.
- Plot is not dependency-free. It relies on D3 modules and others, so bundle size depends on what you import.
- Observable Notebook Kit 2.8.0(2026-10-23)은 ISC 라이선스의 오픈소스로, 열린 파일 형식의 Observable 노트북을 정적 사이트로 빌드하는 CLI와 Vite 플러그인입니다. "Notebooks 2.0 Technology Preview"의 일부이며, 이 프리뷰에는 macOS용 Observable Desktop 편집기가 포함됩니다.
- Observable Notebook Kit 2.8.0 (2026-10-23) is open source under the ISC license: a CLI and Vite plugin that builds static sites from Observable notebooks in an open file format. It is part of the "Notebooks 2.0 Technology Preview", which includes the Observable Desktop editor for macOS.
- Observable Framework의 최신 버전은 1.13.4(2026-03-02)이고 유지보수 속도로 관리됩니다. 1.13.3(2025-04-16)부터
deploy명령에 지원 중단 안내가 붙었습니다. - The latest Observable Framework is 1.13.4 (2026-03-02), maintained at a slower cadence. Since 1.13.3 (2025-04-16) the
deploycommand carries a deprecation notice. - Observable의 호스팅 노트북 서비스의 요금제와 현재 상태는 자주 바뀌므로 이 안내에서 다루지 않습니다. 이용 전에 공식 사이트를 직접 확인하세요.
- The pricing and current status of Observable's hosted notebook service change often, so this guide does not cover them. Check the official site before relying on it.
- Plot 자체에는 AI 기능이 없습니다. 명세가 짧아서 LLM이 생성하기 쉽고 사람이 검증하기도 쉽지만, 생성된 코드의 필드 이름과 스케일 설정은 직접 확인해야 합니다.
- Plot itself has no AI features. Its short specifications are easy for an LLM to generate and for a person to check, but you still need to verify the field names and scale settings in generated code.
강점Strengths
- 짧은 코드로 통계 차트를 만듭니다. 한 줄의 마크로 산점도, 선, 막대, 히스토그램이 나옵니다.
- Short code makes statistical charts. A single mark gives a scatterplot, line, bar chart or histogram.
- 그룹화, 구간화, 쌓기, 정규화, 이동 평균 같은 변환이 내장되어 있습니다.
- Transforms such as grouping, binning, stacking, normalizing and moving averages are built in.
- 패싯(
fx,fy)으로 작은 다중 차트를 쉽게 만듭니다. - Facets (
fx,fy) make small multiples easy. tip마크와pointer상호작용으로 툴팁과 크로스헤어를 추가합니다.- The
tipmark and thepointerinteraction add tooltips and crosshairs. - 결과가 표준 SVG나 HTML이라 D3, React, 순수 JavaScript 어디에서든 사용합니다.
- The output is standard SVG or HTML, so it works with D3, React or plain JavaScript.
- D3와 같은 팀의 라이브러리여서, 학습 후 D3로 자연스럽게 이어집니다.
- It comes from the same team as D3, so learning it leads naturally on to D3.
한계Limitations
- 1.0 이전 버전이라 API가 바뀔 수 있고, 마지막 릴리스 이후 시간이 지났습니다.
- It is pre-1.0, so the API can change, and some time has passed since the last release.
- 샌키, 네트워크, 트리맵, 코드 다이어그램처럼 기본 마크에 없는 차트는 지원 범위 밖이어서 D3 같은 도구가 필요합니다.
- Charts that are not in the core marks, such as Sankey diagrams, networks, treemaps and chord diagrams, are out of scope and call for a tool like D3.
- 브러시, 드롭다운, 연결 뷰 같은 복잡한 상호작용은 직접 코드를 써야 하거나 Framework 같은 환경에서 다른 컴포넌트와 함께 구성해야 합니다.
- Complex interaction such as brushes, dropdowns and linked views requires your own code, or combining Plot with other components in an environment like Framework.
- JavaScript 환경이 필요합니다. 스프레드시트나 노코드 도구에 익숙한 학습자에게는 진입 장벽이 있습니다.
- It needs a JavaScript environment, which is a barrier for learners used to spreadsheets or no-code tools.
- Observable의 호스팅 서비스와 도구 구성이 바뀌는 중이라, 예전 튜토리얼의 노트북 중심 설명이 지금과 다를 수 있습니다.
- Observable's hosted service and tooling are in transition, so older tutorials centred on notebooks may differ from today's setup.
이런 용도에 최적Best For
Observable Plot은 데이터를 빠르게 훑어보는 탐색 단계에 가장 잘 맞습니다. 분포, 추세, 그룹 비교를 몇 줄로 그려 보고, 마음에 들면 같은 코드를 웹 페이지나 보고서에 그대로 넣을 수 있습니다. JavaScript를 처음 배우면서 시각화를 시작하는 학습자에게도 D3보다 부담이 적습니다.
Observable Plot fits best in the exploration stage, when you want to look through data quickly. You can sketch distributions, trends and group comparisons in a few lines and, when happy, put the same code into a web page or report. It is also lighter than D3 for learners who start visualization while learning JavaScript.
정적 사이트나 데이터 앱으로 발행하려면 Notebook Kit이나 Framework와 함께 쓸 수 있습니다. 반대로 완전히 새로운 시각 형식이나 복잡한 상호작용이 목표라면 D3로 가는 편이 맞습니다.
To publish a static site or data app, you can pair it with Notebook Kit or Framework. If the goal is a completely new visual form or complex interaction, going to D3 is the better route.
시작하기Getting Started
- 에디터와 브라우저만 있으면 됩니다. 아래 HTML을
plot.html로 저장해 브라우저에서 엽니다. - You only need an editor and a browser. Save the HTML below as
plot.htmland open it in a browser. data배열의 값과 필드 이름을 바꿔 보고,Plot.dot을Plot.line이나Plot.barY로 바꿉니다.- Change the values and field names in the
dataarray and swapPlot.dotforPlot.lineorPlot.barY. - 프로젝트에 넣으려면
npm install @observablehq/plot을 실행하고import * as Plot from "@observablehq/plot"로 불러옵니다. - For a project, run
npm install @observablehq/plotand import it withimport * as Plot from "@observablehq/plot". - 발행하려면 Observable Notebook Kit이나 Framework 문서를 참고합니다.
- To publish, see the Observable Notebook Kit or Framework documentation.
<!doctype html>
<meta charset="utf-8" />
<body>
<script type="module">
import * as Plot from "https://cdn.jsdelivr.net/npm/@observablehq/plot@0.6.17/+esm";
// Sample data: study hours and exam score by group
const data = [
{hours: 1, score: 52, group: "A"},
{hours: 2, score: 58, group: "A"},
{hours: 3, score: 67, group: "A"},
{hours: 4, score: 71, group: "B"},
{hours: 5, score: 80, group: "B"},
{hours: 6, score: 86, group: "B"},
];
const chart = Plot.plot({
marginLeft: 50,
x: {label: "Study hours"},
y: {label: "Exam score", grid: true},
color: {legend: true},
marks: [
Plot.dot(data, {x: "hours", y: "score", stroke: "group", tip: true}),
Plot.linearRegressionY(data, {x: "hours", y: "score"}),
],
});
document.body.append(chart);
</script>
</body>
지원 차트 유형Supported Chart Types
Plot은 점(산점도, 버블 차트), 선, 영역, 막대(누적 막대 포함), 구간화 히스토그램, 셀 기반 히트맵, 상자 그림, 밀도와 등고선, 육각 구간화(hexbin), 오차 막대, 선형 회귀선, 와플, 화살표와 벡터, 트리 형태의 노드 링크 도형, 지도(geo 마크)를 지원합니다. 패싯으로 작은 다중 차트를 만들 수 있습니다. 샌키, 네트워크, 트리맵 같은 차트는 기본 범위 밖입니다.
Plot supports dots (scatterplots and bubble charts), lines, areas, bars (including stacked bars), binned histograms, cell-based heatmaps, box plots, density and contours, hexagonal binning (hexbin), error bars, linear regression lines, waffles, arrows and vectors, tree-shaped node-link diagrams and maps (the geo mark). Facets produce small multiples. Charts such as Sankey diagrams, networks and treemaps are outside the core scope.