stock-charts

2.0.1 • Public • Published

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

Package Sidebar

Install

npm i stock-charts

Weekly Downloads

9

Version

2.0.1

License

MIT

Last publish

Collaborators

  • kael