clean-candles

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i clean-candles

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

68.2 kB

Total Files

7

Last publish

Collaborators

  • cawlj