PieChart
data
PieChart component
Terminal
$termuijs render pie-chart
Installation
$ bunx termuijs add pie-chart
Copies the source into src/components/pie-chart/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { PieChart } from '@termuijs/widgets'ts
new PieChart(options: PieChartOptions = {})API Reference
PieChart
| Prop | Type | Required | Description |
|---|---|---|---|
slices | PieSlice[] | optional | — |
style | Partial<Style> | optional | — |
showLegend | boolean | optional | — |