About
An interactive bar chart card where clicking a metric tab (desktop/mobile visitors) swaps the plotted data series with an animated transition.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Bar Chart Interactive to your project and fits it to your theme.
Code
How Bar Chart Interactive is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import BarChartInteractive from "@/components/ui/tanstack-charts-bar-interactive";
export default function BarChartInteractiveDemo() {
return (
<div className="w-full max-w-2xl">
<BarChartInteractive />
</div>
);
}
















