Klar

Charts / React BI charts / Comparison

Tornado chart

Each input of a model moved alone from its low to its high value, drawn as bars either side of the base case and sorted by swing, with a spider view of result against % change.

React component TornadoChart, data through props. Side by side: who, which source, which version is ahead. Tags: tornado, sensitivity, what-if, npv, spider, scenario, risk.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, TornadoChart } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/bi-tornado.json

Usage

<TornadoChart rows={s.rows} base={s.base} mode={mode as 'tornado' | 'spider'} resultLabel="NPV" format={(v) => `€${(v / 1e6).toFixed(1)}M`} height={mode === 'spider' ? 470 : undefined} />

Related tornado charts