1.0.0 • Published 3 years ago

clean-candles v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

clean-candles

zoomable candle chart

NPM JavaScript Style Guide

Install

npm install --save clean-candles

Usage

import React, { Component } from 'react'

import Candle from 'clean-candles'

const values = [[open, high, low, close, unixTime], [open, high, low, close, unixTime] ...]

class Example extends Component {
  render() {
    return 
    <div style={{width: '50vw'}}>
      <Candle data={values} chartHeight={'50vh'} chartWidth={'100vw'}></Candle>
    </div>
  }
}

Format

Currently only supports intraday candles, 15min, 30min, 60min, 4hour Candle must be passed as an array of arrays, each candle array being formated as open, high, low, close, unixtimestamp

Coming Soon

  • Volume Shelf
  • Trendlines
  • Brush Zoom
  • Moving Averages

License

MIT © jcawl