stock-charts
v2.0.1
Published
SVG charts for fintech.
Downloads
5
Maintainers
Readme
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