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
4
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

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
78
increased by16.42%
Maintainers
4
Weekly downloads
 
Created
Source
Harvest Profit

The demo can be found published here

Installation

(Eventually) 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.

FAQs

Package last updated on 12 Mar 2018

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