Instrument · Free · Recharts or ECharts
Scatter chart: pick what's on it
Every option is a prop of the installed chart. The preview and the code use the same props, so what you copy is what you see.
Options, preview and code
Engineering · last quarter
Longer cycles, more bugs
A strong positive relationship between Cycle time (days) and Bugs (r = 0.98, 8 points). That's a pattern, not proof of cause. Largest people: Cobalt (20).
Show data table
| Team | Squad | Cycle time (days) | Bugs | People |
|---|
Code for this chart
"use client";
// Install: npx shadcn@latest add https://beautifulcharts.dev/r/scatter-chart.json
import { ScatterChart } from "@/components/beautiful-charts/themes/instrument/recharts/scatter-chart";
import type { ChartConfig } from "@/components/beautiful-charts/core/contracts";
const data = [
{ team: "Atlas", squad: "Product", cycle: 3.1, bugs: 4, people: 12 },
{ team: "Beacon", squad: "Platform", cycle: 2.2, bugs: 2, people: 7 },
{ team: "Cobalt", squad: "Product", cycle: 5.4, bugs: 11, people: 20 },
{ team: "Drift", squad: "Platform", cycle: 2.8, bugs: 3, people: 9 },
{ team: "Ember", squad: "Product", cycle: 4, bugs: 7, people: 15 },
{ team: "Fjord", squad: "Platform", cycle: 1.6, bugs: 1, people: 5 },
{ team: "Grove", squad: "Product", cycle: 4.6, bugs: 9, people: 18 },
{ team: "Harbor", squad: "Platform", cycle: 3.6, bugs: 5, people: 11 },
];
const config = {
cycle: { label: "Cycle time (days)" },
bugs: { label: "Bugs" },
people: { label: "People" },
} satisfies ChartConfig;
export function MyChart() {
return (
<ScatterChart
data={data}
config={config}
xKey="cycle"
yKey="bugs"
sizeKey="people"
groupKey="squad"
nameKey="team"
eyebrow="Engineering · last quarter"
title="Longer cycles, more bugs"
/>
);
}