0.2.3 • Published 6 years ago

crypto-chart-react v0.2.3

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

Cryptocurrency Price Chart as a React Component

npm package

example chart


Table of contents


Installation

yarn add crypto-chart-react

Demo

https://alis.ocrybit.com/coins/?sym=BTC


Examples

import React, { Component } from 'react'
import { render } from 'react-dom'
import CHART from '../../src'

class App extends Component {
  constructor(props){
    super(props)
  }
  render(){
    // possible spans: day, week, month, 3month, year, all
    return (
      <CHART
        id="crypto_chart"
        height={300}
        width={700}
        fsym="ALIS"
        tsym="JPY"
        span="day"
		borderColor="#61669F"
        />
    )
  }
}

render(<App />, document.getElementById("root"))
import React, { Component } from 'react'
import { render } from 'react-dom'
import CHART from '../../src'

class App extends Component {
  constructor(props){
    super(props)
  }
  render(){
    // custom span
    return (
      <CHART
        id="crypto_chart"
        height={300}
        width={700}
        fsym="ALIS"
        tsym="JPY"
		timezone="Asia/Tokyo"
		limit={24*6}
		style={{margin: "25px"}}
		wrapper_id="crypto_chart_wrapper"
		toTs={{Math.floor(Date.now() / 1000)}}
		borderColor="#61669F"
        />
    )
  }
}

render(<App />, document.getElementById("root"))

Contributors

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago