Charts / React BI charts / Comparison
Two values per row joined by a bar that shows the direction and size of the change, grouped with segment averages, for plan vs actual or year over year.
React component DumbbellChart, data through props. Side by side: who, which source, which version is ahead. Tags: dumbbell, range, gap, plan-vs-actual, year-over-year, dot-plot.
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, DumbbellChart } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/bi-dumbbell.json<DumbbellChart
data={nrrBySegment}
labels={['2025', '2026']}
sort={s as 'gap' | 'b'}
format={(v) => `${v}%`}
deltaFormat={(v) => `${+v.toFixed(1)} pts`}
reference={100}
referenceLabel="100% · no net expansion"
/>