Introduction
3D charts for shadcn/ui, built on d3-3d.
Desktop
Mobile
chart3d/cn is a set of copy-paste chart components for shadcn/ui. You install them with the shadcn CLI, the code lands in your project, and you own it from then on.
- SVG first. The charts render on the server as plain SVG, print sharply and take CSS like any other element. For thousands of marks, a canvas takes over the marks, and the box, its labels and the tooltip stay SVG and HTML.
- Your theme. The config names the colors, such as the
--chart-1to--chart-5tokens your theme already has, dark mode included. - The config you know.
ChartContainer3Dtakes the sameChartConfigas the chart of shadcn/ui, so one config drives a 2D and a 3D chart. - Built on d3-3d. d3-3d does the projection, the depth sorting and the face orientation; React draws the result.
For an AI assistant, the docs come as Markdown too: llms.txt lists every page, llms-full.txt holds them all, and every page has a copy at its address plus .md.