{
  "profile": {
    "view": "bridge",
    "margin": {
      "top": 64,
      "right": 40,
      "bottom": 96,
      "left": 104
    },
    "domain": {
      "padding": 0.08,
      "mode": "both",
      "nice": true
    },
    "axis": {
      "measuredStepBudget": true,
      "additionalGap": 4,
      "exportMeasurement": "glyph-advances",
      "labelOverflow": 0,
      "inkPadding": 16,
      "marginMethod": "smart",
      "frame": "smart",
      "categoryBudget": "all",
      "rotation": 0
    },
    "colors": {
      "positive": "green",
      "negative": "red",
      "total": "blue"
    },
    "connector": {
      "visible": true,
      "color": "textMuted",
      "width": 1,
      "dash": "2,2"
    },
    "format": {
      "kind": "auto",
      "threshold": 1000,
      "largeSuffix": "K",
      "largeDecimals": 0,
      "largeTrim": true,
      "axisDecimals": 0
    },
    "label": {
      "positiveOffset": 8,
      "negativeOffset": 18,
      "fontWeight": 500,
      "secondaryOffsetPositive": -24,
      "secondaryOffsetNegative": 24,
      "secondarySize": 13,
      "secondaryDecimals": 1,
      "secondaryParentheses": false,
      "secondaryColor": "textMuted",
      "showClosingPercent": false,
      "zeroPercent": "hide"
    },
    "legend": {
      "kind": "fixed",
      "wrapper": "normal",
      "height": 36,
      "rightOffset": 396,
      "y": -10,
      "itemStep": 132,
      "fontSize": 13,
      "swatchSize": 10,
      "swatchRadius": 2,
      "labelGap": 4,
      "items": [
        {
          "key": "positive",
          "label": "Positive",
          "color": "green"
        },
        {
          "key": "negative",
          "label": "Negative",
          "color": "red"
        },
        {
          "key": "total",
          "label": "Total",
          "color": "blue"
        }
      ]
    }
  },
  "version": "xarts.waterfall/1",
  "family": "waterfall",
  "provenance": {
    "legacyId": "attributionwaterfall"
  },
  "data": {
    "unit": "conversions",
    "rows": [
      {
        "step": "Baseline",
        "value": 200,
        "kind": "opening"
      },
      {
        "step": "Organic Search",
        "value": 480,
        "kind": "delta"
      },
      {
        "step": "Paid Social",
        "value": 350,
        "kind": "delta"
      },
      {
        "step": "Email",
        "value": 290,
        "kind": "delta"
      },
      {
        "step": "Referral",
        "value": 180,
        "kind": "delta"
      },
      {
        "step": "Direct",
        "value": 420,
        "kind": "delta"
      },
      {
        "step": "Display Ads",
        "value": 150,
        "kind": "delta"
      },
      {
        "step": "Cannibalization",
        "value": -120,
        "kind": "delta"
      },
      {
        "step": "Total",
        "value": 1950,
        "kind": "total"
      }
    ]
  },
  "encoding": {
    "step": "step",
    "value": "value",
    "kind": "kind"
  },
  "calculation": {
    "type": "bridge",
    "totals": "verify-or-compute",
    "stack": "diverging",
    "tolerance": 0
  },
  "layout": {
    "orientation": "vertical",
    "bandPadding": 0.25
  },
  "marks": {
    "colorBy": "sign",
    "colorMap": {},
    "radius": 0,
    "opacity": 0.9
  },
  "labels": {
    "secondary": "none",
    "visible": true,
    "segments": false,
    "decimals": 0,
    "divisor": 1,
    "prefix": "",
    "suffix": "",
    "fontSize": 13
  },
  "axes": {
    "valueTitle": "",
    "grid": true,
    "ticks": 5
  },
  "groups": {
    "visible": false
  },
  "legend": {
    "visible": true
  },
  "summary": {
    "metric": "none",
    "label": ""
  },
  "annotations": [],
  "document": {
    "exportTextMeasurement": "glyph-advances",
    "header": {
      "title": "Attribution Waterfall",
      "subtitle": "Marketing channel contribution to total conversions as a cumulative waterfall"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 32,
      "topPadding": 24,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "output": {
    "filename": "attributionwaterfall",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 1200,
      "height": 760
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  }
}
