About
A compact SVG chart that plots a before (hollow dot) and after (filled dot) value per row joined by a connector, for comparing ranges or changes like salary bands.
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 { Dumbbell } from "@/components/ui/dumbbell";
export default function DumbbellValenceDemo() {
return (
<div className="flex w-full items-center justify-center p-10">
<Dumbbell
data={[
{ label: "Paris", from: 52, to: 61 },
{ label: "Oslo", from: 66, to: 60 },
]}
positive="up"
title="Moves"
style={{ width: 200, height: 44 }}
/>
</div>
);
}




