Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/kaelzhang/stock-charts
- Owner: kaelzhang
- License: other
- Created: 2017-11-15T10:46:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-10T14:53:00.000Z (almost 7 years ago)
- Last Synced: 2024-04-15T12:33:07.268Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 48.8 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE-MIT
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