{
  "version": "xarts.ordered-series/1",
  "family": "ordered-series",
  "operation": "discounted-cashflows",
  "provenance": {
    "legacyId": "cashflowtimeline"
  },
  "data": {
    "unit": "USD",
    "periodUnit": "year",
    "rows": [
      {
        "id": "year-0",
        "period": 0,
        "cashFlow": -5000000
      },
      {
        "id": "year-1",
        "period": 1,
        "cashFlow": 500000
      },
      {
        "id": "year-2",
        "period": 2,
        "cashFlow": 650000
      },
      {
        "id": "year-3",
        "period": 3,
        "cashFlow": 800000
      },
      {
        "id": "year-4",
        "period": 4,
        "cashFlow": 900000
      },
      {
        "id": "year-5",
        "period": 5,
        "cashFlow": 1000000
      },
      {
        "id": "year-6",
        "period": 6,
        "cashFlow": 1100000
      },
      {
        "id": "year-7",
        "period": 7,
        "cashFlow": 1200000
      },
      {
        "id": "year-8",
        "period": 8,
        "cashFlow": 1300000
      },
      {
        "id": "year-9",
        "period": 9,
        "cashFlow": 1400000
      },
      {
        "id": "year-10",
        "period": 10,
        "cashFlow": 1500000
      }
    ]
  },
  "calculation": {
    "periods": "consecutive-from-zero",
    "discountRate": 0.1,
    "roundingDecimals": 0,
    "cumulative": "sum-unrounded-discounted-flows",
    "crossing": "unrounded-cumulative",
    "irr": {
      "method": "conventional-bisection",
      "lower": -0.5,
      "upper": 2,
      "iterations": 100
    }
  },
  "layout": {
    "margin": {
      "top": 76,
      "right": 24,
      "bottom": 56,
      "left": 56
    },
    "bandPadding": 0.2,
    "domainPadding": 0.15,
    "nice": true,
    "measureAxis": true,
    "axisInkPadding": 12,
    "minimumPlotWidth": 40,
    "minimumPlotHeight": 40,
    "summaryGap": 8,
    "summaryLineGap": 20,
    "summaryAscentFraction": 0.8,
    "summaryRightInset": 10,
    "positiveLabelGap": 8,
    "negativeLabelGap": 16,
    "measuredLabels": true,
    "minimumTextGap": 4
  },
  "axis": {
    "stroke": "transparent",
    "tickStroke": "transparent",
    "tickLength": 0,
    "labelColor": "#2a2a2a",
    "tickLabelColor": "#3d3d3d",
    "labelFontSize": 14,
    "tickLabelFontSize": 13,
    "labelFontFamily": "'Inter', system-ui, -apple-system, sans-serif",
    "tickLabelFontFamily": "'Inter', system-ui, -apple-system, sans-serif",
    "baselineStroke": "#3d3d3d",
    "baselineWidth": 1.5,
    "titleColor": "#2a2a2a",
    "titleFontSize": 13,
    "titleFontWeight": 700
  },
  "grid": {
    "stroke": "#d6cfbc",
    "strokeOpacity": 1,
    "strokeDasharray": ""
  },
  "marks": {
    "positive": "series.emerald",
    "negative": "series.red",
    "radius": 0,
    "minimumHeight": 0,
    "opacity": {
      "initial": 0.85,
      "floor": 0.85,
      "decrementPerPeriod": 0
    }
  },
  "baseline": {
    "color": "textMuted",
    "width": 1
  },
  "crossing": {
    "visible": true,
    "includeLastPeriod": true,
    "extent": "baseline-to-bottom",
    "color": "series.amber",
    "width": 1,
    "dash": "5,4",
    "label": "Discounted payback: {period}"
  },
  "labels": {
    "fontFamily": "'Inter', system-ui, -apple-system, sans-serif",
    "value": {
      "color": "textSecondary",
      "fontSize": 10,
      "fontWeight": 500
    },
    "npv": {
      "color": "textPrimary",
      "fontSize": 12,
      "fontWeight": 600
    },
    "irr": {
      "color": "textMuted",
      "fontSize": 10,
      "fontWeight": 400
    },
    "categoryPrefix": "Y",
    "periodPrefix": "Year ",
    "npvPrefix": "NPV:",
    "irrPrefix": "IRR:",
    "discountRatePrefix": "Discount rate:",
    "cashFlowLabel": "Cash Flow",
    "discountedLabel": "Discounted",
    "cumulativeLabel": "Cumulative NPV",
    "amountPrefix": "$",
    "amountSuffix": "",
    "tickDecimals": 0,
    "irrDecimals": 1
  },
  "annotations": [],
  "document": {
    "textOverflow": "preserve",
    "header": {
      "title": "Project Cash Flows",
      "subtitle": "Net present value of projected cash flows over 10-year horizon"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 16,
      "minimumTextGap": 4
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 500
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "cashflowtimeline",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
