2.0.1 • Published 6 years ago

stock-charts v2.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Build Status Coverage

stock-charts

SVG charts for fintech.

Install

$ npm install stock-charts

Usage

<svg class="chart"></svg>
import {
  Playground,
  Candlesticks,
  BollingerBands,
  MovingAverage,
  KDJ
} from 'stock-charts'

const playground = new Playground()
.select('.chart')
.data(data)

playground.stage(0, 0, 1000, 300)
.add(new Candlesticks)
.add(new BollingerBands)
.add(new MovingAverage({periodSize: 20}))
.draw()

playground.stage(0, 320, 1000, 200)
.add(new KDJ)
.draw()

License

MIT