CarsXE

Search docs

Search pages, components, and skills.

D3 Charts

Responsive, accessible relationship and hierarchy charts for data that does not fit a Cartesian plot.
Vehicle lifecycle flowListed → Inspected: 690Listed → Auction: 140Inspected → Verified: 610Inspected → Auction: 80Verified → Dealer sale: 402Verified → Private sale: 208ListedInspectedVerifiedDealer salePrivate saleAuction

Installation

Import from the package. Do not run shadcn add in your app.

tsx
import { SankeyChart } from "@carsxe/design-system/components/d3-chart"

Usage

tsx
import { SankeyChart } from "@carsxe/design-system/components/d3-chart"

<SankeyChart ariaLabel="Vehicle lifecycle" nodes={nodes} links={links} />

Force-directed network

Vehicle record networkVehicleOwnerDealerInspectionServiceAuctionListing

Treemap

Inventory compositionCompact128Midsize94Full-size48Sedan116Hatchback62Coupe34Pickup86Van41

Sunburst

Inventory hierarchyInventory609

API Reference

PropTypeDefault
ariaLabelstring—
heightnumber360
colorsstring[]CarsXE chart tokens
onNodeSelect(node) => void—