Seamless Pie Chart
Display categorical data with seamless segments and no dividing lines. Perfect for React applications requiring clean data visualization with Next.js integration and TypeScript support.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/pie-chart-02.json
npx shadcn@latest add https://www.shadcn.io/registry/pie-chart-02.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/pie-chart-02.json
bunx shadcn@latest add https://www.shadcn.io/registry/pie-chart-02.json
Features
- Seamless segment visualization with no separator lines between pie segments
- Interactive tooltips showing values on hover with formatted display
- Customizable colors using chart design tokens and CSS variables
- Responsive design with aspect-square container and fixed dimensions
- TypeScript support with complete type definitions for all chart props
- shadcn/ui integration using Chart and tooltip components without background
Use Cases
This free open source React component works well for:
- Clean data visualization - Display proportions without visual distractions built with Next.js
- Modern dashboards - Present data with seamless, contemporary styling using TypeScript and Tailwind CSS
- Minimalist designs - Show categorical data with reduced visual noise
- Brand presentations - Create professional charts with smooth, uninterrupted segments
API Reference
ChartPieSeparatorNone
Prop | Type | Default | Description |
---|---|---|---|
className | string | - | Additional CSS classes for the container |
Chart Configuration
The component uses the same browser data configuration:
const chartConfig = {
visitors: {
label: "Visitors",
},
chrome: {
label: "Chrome",
color: "var(--chart-1)",
},
// ... additional segments
} satisfies ChartConfig
Key Difference
The main difference from the basic pie chart is the stroke="0"
property:
<Pie
data={chartData}
dataKey="visitors"
nameKey="browser"
stroke="0" // Removes separator lines
/>
Implementation Notes
- Chart displays without visual separators between segments for cleaner appearance
- Uses
stroke="0"
to remove default white lines between pie segments - Maintains same interactive functionality as standard pie chart
- Perfect for modern, minimalist design systems
- Colors are defined using CSS variables for consistent theming
Simple Pie Chart
Display categorical data with proportional segments and tooltips. Perfect for React applications requiring data visualization with Next.js integration and TypeScript support.
Labeled Pie Chart
Display categorical data with visible segment labels showing values directly on the chart. Perfect for React applications requiring clear data visualization with Next.js integration and TypeScript support.