Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@harvest-profit/what-if-analysis

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harvest-profit/what-if-analysis

Builds "what if" analysis for Harvest Profit

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source
Harvest Profit

CircleCI codecov

The demo can be found published here

Installation

You can install this React Component with a simple:

yarn add @harvest-profit/what-if-analysis

Usage

import React, { Component } from 'react';
import WhatIfAnalysisTable from '@harvest-profit/what-if-analysis';

class WhatIfAnalysis extends Component {
  render() {
    return (
      <WhatIfAnalysisTable
        acres={200}
        cashPriceWithBasis={2.00}
        guaranteedRevenue={569}
        totalCost={500 * 200}
        aph={115}
        yieldIncrement={5}
        yieldDecriment={10}
      />
    )
  }
}

This component can accept the following props:

NameRequiredDescription
acrestrueThe total acres for a analysis
cashPriceWithBasistrueThe cash price, after the basis has been applied.
guaranteedRevenuetrueThe per acre revenue guaranteed by crop insurance.
totalCosttrueThe total cost of production.
aphtrueThe APH for the given field, or the estimated production.
yieldIncrementtrueIncrements upward from the given APH.
yieldDecrementtrueDecrements downward from the given APH.
tableClassNamefalseThe css class for the overall table. Defaults to table table-responsive.
cellGreenClassNamefalseThe css class for cells representing profit. Defaults to table-success.
cellRedClassNamefalseThe css class for cells representing loss. Defaults to table-danger.
cellYellowClassNamefalseThe css class for cells representing small losses. Defaults to table-warning.

Development

To get started on this repo, you will need both yarn and node.

To install the project dependencies, from the main repo run:

yarn install

You can run the development server by running:

cd demo
yarn start

License

This project is MIT licensed

FAQs

Package last updated on 27 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc