1.1.0 • Published 3 years ago

@saeedghotb/hamnamad-user-efficiency v1.1.0

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

hamnamad-user-efficiency

hamnamad module to plot user trading activity efficiency

NPM JavaScript Style Guide

Install

npm install github:hamnamad/user-efficiency-chart

to install a specific version run

npm install github:hamnamad/user-efficiency-chart#v1.2

Usage

the most basic usage:

import React, { Component } from 'react'

import MyComponent, { DataType } from 'hamnamad-user-efficiency'

class Example extends Component {
  render() {
    const data: DataType = [
      {
        efficiency: -1.2,
        risk: 0,
        date: '14000329',
        month: 3,
        year: 1400
      }
    ]
    return <MyComponent data={data} />
  }
}

data should be an array of DataType. this type is matched to hamnamad backend data.

License

MIT © saeedghotb