Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaelzhang/stock-charts

Stock charts based on D3(STILL WORKING IN PROGRESS)
https://github.com/kaelzhang/stock-charts

Last synced: 17 days ago
JSON representation

Stock charts based on D3(STILL WORKING IN PROGRESS)

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/kaelzhang/stock-charts.svg?branch=master)](https://travis-ci.org/kaelzhang/stock-charts)
[![Coverage](https://codecov.io/gh/kaelzhang/stock-charts/branch/master/graph/badge.svg)](https://codecov.io/gh/kaelzhang/stock-charts)

# stock-charts

SVG charts for fintech.

## Install

```sh
$ npm install stock-charts
```

## Usage

```html

```

```js
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