# hospital-admin-chart-fe

> 병원어드민용 그래프 라이브러리

Latest version **0.2.3** (published 2019-01-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install hospital-admin-chart-fe
pnpm add hospital-admin-chart-fe
yarn add hospital-admin-chart-fe
bun add hospital-admin-chart-fe
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2019-01-10 |
| First published | 2018-12-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 158.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TheSON |
| Maintainers | theson |
| Keywords | plainjs, d3 |

## Links

- npm: https://www.npmjs.com/package/hospital-admin-chart-fe
- npm.io page: https://npm.io/package/hospital-admin-chart-fe

## Dependencies (1)

- [d3](https://npm.io/package/d3.md) ^5.7.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.2.3 (latest) — 2019-01-10
- 0.2.2 — 2019-01-09
- 0.2.1 — 2019-01-08
- 0.2.0 — 2019-01-08
- 0.1.12 — 2019-01-08
- 0.1.11 — 2019-01-08
- 0.1.10 — 2019-01-02
- 0.1.9 — 2019-01-02
- 0.1.8 — 2019-01-02
- 0.1.7 — 2019-01-02
- 0.1.6 — 2019-01-02
- 0.1.5 — 2018-12-24
- 0.1.4 — 2018-12-21
- 0.1.3 — 2018-12-21
- 0.1.2 — 2018-12-20
- … 2 more at https://npm.io/package/hospital-admin-chart-fe/versions

## README

# Hospital Admin Chart FE
똑닥 병원어드민에서 쓰인 D3 기반 차트를 만들 때 사용된 프로젝트 이다.

## Getting Started
개발 및 테스트 진행 시 아래 명령어로 수행 한다.
```
npm start
```
그리고 웹브라우저에서 localhost:8080 주소로 접근 한다.
만약 IE 에서 Security 오류가 난다면 다음과 같이 수행.
- 인터넷 옵션 > 보안 > 로컬 인트라넷 > 사이트 > 고급
- http://localhost, ws://localhost 추가
- IE 재시작

## How to Use
문서구조
```html
<div id="line-chart"></div>
```

사용 데이터 구조
```js
export const data = {
  "categories": {
    "class1": {
      "data": [
        {
          "date": new Date(2018, 12, 1),
          "value": 50
        },
        {
          "date": new Date(2018, 12, 2),
          "value": 30
        },
        {
          "date": new Date(2018, 12, 3),
          "value": 25
        },
      ],
      "title": "1반",
      "color": "1"
    }
  },
  "legend": ["class1"]
};
```

스크립트
```js
import d3 from 'd3';
import { createLineChart } from 'hospital-admin-chart-fe';
import { data } = from './data';

const chart = createLineChart(d3, '#line-chart');

chart.setData(data);
```

더 자세한건 프로젝트 내 test/app.js 내용을 참고.

---
_Source: https://npm.io/package/hospital-admin-chart-fe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
