Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Pie micro chart

Pie micro chart displays a compact proportional breakdown. Use it inside KPI cards, table cells, summaries, dense admin panels, reports, or as a simple dashboard chart when a small pie chart is enough.

Use full ECharts charts for complex analytics, detailed legends, drilldown, zooming, or advanced chart interactions.

PropTypeDefault
data*
The data to be displayed in the pie chart
number[][]
labels
Labels for the data items
string[] | number[][]
valueAccessor
Accessor function to get the value from a data item
(d: any) => d(d: any) => d
dataItemStrokeWidth
Stroke width of the pie slices
number1
legendContainerWidth
Width of the legend container
number0
showDataAnimation
Whether to show animation when data changes
booleanfalse
showValueOnSlices
Whether to show values on the pie slices
booleanfalse
showLegend
Whether to show the legend
booleanfalse
legendOffset
Offset of the legend from the chart
number30
legendItemHeight
Height of each legend item
number30
legendItemSymbolSize
Size of the symbol in the legend item
number12
legendItemFontSize
Font size of the legend item text
number14
legendItemSymbolBorderRadius
Border radius of the legend item symbol
number12
valueFontSize
Font size of the value text on slices
number12
tooltip
Custom tooltip template
TemplateRef<unknown>
tooltipPosition
Position of the tooltip
OverlayPosition'after-center'