# simple-timeseries

> A simple timeseries chart using D3

Latest version **1.0.0** (published 2017-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-timeseries
pnpm add simple-timeseries
yarn add simple-timeseries
bun add simple-timeseries
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-01-24 |
| First published | 2014-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | David Guttman |
| Maintainers | dguttman |
| Keywords | chart, d3, browserify, simple, line, timeseries |

## Links

- npm: https://www.npmjs.com/package/simple-timeseries
- Repository: https://github.com/davidguttman/simple-timeseries
- Issues: https://github.com/davidguttman/simple-timeseries/issues
- npm.io page: https://npm.io/package/simple-timeseries

## Dependencies (3)

- [d3](https://npm.io/package/d3.md) ^3.5.17
- [cssify](https://npm.io/package/cssify.md) ^1.0.3
- [browserify](https://npm.io/package/browserify.md) ^13.3.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

- 1.0.0 (latest) — 2017-01-24
- 0.1.0 — 2014-02-06
- 0.0.0 — 2014-02-04

## README

Simple Timeseries
=================

A simple timeseries chart using D3.

![Screen Shot](http://i.imgur.com/6WtHvYh.png)

Installation:

```
npm i simple-timeseries
```

Usage:

```js

var ST = require('simple-timeseries')

var data = [
   [
        1178866800000,  // X: MS since epoch, aka (new Date).valueOf()
        108.74          // Y: "Price" in this case
    ],
    // ...
    [
        1177398000000,
        93.239999999999995
    ]
]
var opts = {
  width: 500,
  height: 300,
  yLabel: 'Price'
}

var st = new ST(data, opts)
document.body.appendChild(st.el)

```

Examples:

See examples in `/example`, view in browser by running:

```
npm run example
```

Uses code from http://bl.ocks.org/mbostock/3883245

License
=======

MIT

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