About
A dumbbell plot that visualizes the shift of a value between two time periods for each category, useful for comparing before/after metrics across groups like wage ratios or survey scores.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Dumbbell Chart to your project and fits it to your theme.
Code
How Dumbbell Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import DumbbellChart from "@/components/ui/tanstack-charts-dumbbell";
export default function DumbbellChartDemo() {
return (
<div className="flex w-full items-center justify-center p-6">
<DumbbellChart />
</div>
);
}








