Skip to content
Vega-Lite templates

Tornado / Sensitivity

Decision-analysis sensitivity diagram showing parameter impact in both directions.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema":"https://vega.github.io/schema/vega-lite/v5.json",
  "data":{"values":[
    {"param":"Adoption rate","low":-12,"high":15},
    {"param":"Unit cost","low":-9,"high":7},
    {"param":"Discount rate","low":-6,"high":4},
    {"param":"Market size","low":-4,"high":11},
    {"param":"Churn rate","low":-7,"high":3}
  ]},
  "encoding":{
    "y":{"field":"param","type":"nominal","sort":{"field":"high","op":"max","order":"descending"}}
  },
  "layer":[
    {"mark":{"type":"bar","color":"#dc2626"},
      "encoding":{"x":{"field":"low","type":"quantitative","title":"NPV impact ($M)"}}},
    {"mark":{"type":"bar","color":"#16a34a"},
      "encoding":{"x":{"field":"high","type":"quantitative"}}}
  ],
  "width":420,"height":220
}