Skip to content
프로젝트

metricsgraphics/metrics-graphics has 7,389 GitHub stars and 460 forks. GitHot measured 0 stars in 24 hours, -3 in 7 days, and -1 in 15 days. Last checked 2026-11-22 15:47 UTC. Last push 2022-05-31.

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-3
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

간결하고 원칙에 충실한 데이터 그래픽과 레이아웃에 최적화된 라이브러리입니다.

창작 및 미디어

README.md

Original

MetricsGraphics Logo

BundlePhobia CodeClimate Netlify Status

MetricsGraphics is a library built for visualizing and laying out time-series data. At around 15kB (gzipped), it provides a simple way to produce common types of graphics in a principled and consistent way. The library currently supports line charts, scatterplots and histograms, as well as features like rug plots.

Example

All you need to do is add an entry node to your document:

<div id="chart"></div>

Then, use the id to mount the chart:

import LineChart from 'metrics-graphics'

new LineChart({
  data, // some array of data objects
  width: 600,
  height: 200,
  target: '#chart',
  area: true,
  xAccessor: 'date',
  yAccessor: 'value'
})

That's it!

Sample Screenshot

The raw data for this example can be found here

Documentation

If you want to use MetricsGraphics, you can find the public API here.

If you want to extend MetricsGraphics, you can read up on the components and utilities.

Development Setup

This project uses Yarn Workspaces. Please make sure that Yarn is installed.

# clone and setup
git clone https://github.com/metricsgraphics/metrics-graphics
cd metrics-graphics
yarn install

Run both the development setup of the library and the development setup of the examples

# inside packages/lib
yarn dev

# inside packages/examples
yarn dev

관련 프로젝트 살펴보기

불러오는 중…