About
A small SVG chart that draws a precise rate line over low-precision ghost volume bars, so a conversion or error rate is never read without the sample size it was measured on.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Rate Volume Chart to your project and fits it to your theme.
Code
How Rate Volume Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { RateVolume } from "@/components/ui/rate-volume";
const periods = [
{ rate: 0.023, volume: 220 },
{ rate: 0.025, volume: 190 },
{ rate: 0.028, volume: 160 },
{ rate: 0.029, volume: 130 },
{ rate: 0.031, volume: 110 },
{ rate: 0.034, volume: 90 },
{ rate: 0.036, volume: 66 },
{ rate: 0.041, volume: 38 },
];
export default function RateVolumeDemo() {
return (
<div className="w-full h-screen flex items-center justify-center bg-background">
<div className="flex flex-col items-center gap-3">
<div className="text-sm text-muted-foreground">Conversion rate</div>
<RateVolume
data={periods}
minVolume={50}
title="Conversion rate"
width={240}
height={64}
/>
</div>
</div>
);
}







