0.2.0 • Published 7 years ago

market-forecast v0.2.0

Weekly downloads
11
License
-
Repository
github
Last release
7 years ago

GitHub NPM

Installation

Install the package with the following terminal command: npm install market-forecast --save

Configuration

Once the package is installed, use the sample code below to get started.

import Forecast from 'market-forecast';

const mktData = [
  {
      "d": "2010-01-01",
      "v": 6545.91
  },
  {
      "d": "2010-01-04",
      "v": 6631.44
  },
  {
      "d": "2010-01-05",
      "v": 6579.26
  },
  ...
];

ReactDOM.render(
  <Forecast dataSet={mktData} name="Sample Market Data Set" description="Sample description" weights={[.6, .25, .15]} />
);