import { QuadrantChart } from "semiotic" const frameProps = { /* --- Data --- */ data: [ { product: "TurboEncabulator 9000", growth: 0.82, share: 0.75, revenue: 120, category: "Stars" }, { product: "Cromulent Pipe Fittings", growth: 0.22, share: 0.85, revenue: 200, category: "Cash Cows" }, { product: "Blockchain Dog Walker", growth: 0.95, share: 0.12, revenue: 55, category: "Question Marks" }, { product: "Artisanal Fax Machine", growth: 0.08, share: 0.15, revenue: 15, category: "Dogs" }, // ... 10 items total ], /* --- Layout --- */ xCenter: 0.5, yCenter: 0.5, /* --- Process --- */ xAccessor: "share", yAccessor: "growth", /* --- Customize --- */ title: "BCG Growth-Share Matrix", xLabel: "Relative Market Share", yLabel: "Market Growth Rate", colorBy: "category", colorScheme: ["#4CAF50","#2196F3", ... ], sizeBy: "revenue", sizeRange: [5,30], showLegend: true, quadrants: { topLeft: { label: "Question Marks", color: "#FF9800" }, topRight: { label: "Stars", color: "#4CAF50" }, bottomLeft: { label: "Dogs", color: "#F44336" }, bottomRight: { label: "Cash Cows", color: "#2196F3" }, }, /* --- Interact --- */ tooltip: true } export default () => { return <QuadrantChart {...frameProps} /> }