simple-timeseries
A simple timeseries chart using D3
Last updated 4 years ago by dguttman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install simple-timeseries 
SYNC missed versions from official npm registry.

Simple Timeseries

A simple timeseries chart using D3.

Screen Shot

Installation:

npm i simple-timeseries

Usage:


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

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

3 Versions

  • 1.0.0                                ...           4 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |