Pie Chart
Compare parts-to-whole relationships with classic and donut layouts.
Install the Popover component using the nocta-ui CLI:
npx @nocta-ui/cli add pie-chartImport the component:
import {
PieChart,
PieChartHeader,
PieChartTitle,
PieChartDescription,
PieChartActions,
PieChartDataTable,
PieChartDataTableContent,
PieChartGraph,
PieChartLegend,
} from '@/components/ui/pie-chart';Examples
Default Pie Chart
Donut with labels
Header with actions
Data table summary
API Reference
PieChart
Prop
Type
PieChartGraph
Prop
Type
PieChartHeader
Prop
Type
PieChartTitle
Prop
Type
PieChartDescription
Prop
Type
PieChartLegend
Prop
Type
PieChartActions
Prop
Type
PieChartDataTable
Prop
Type
PieChartDataTableContent
Prop
Type