PieChart Component
Description
The PieChart
component provides a customizable Doughnut/Pie Chart using Chart.js. It supports:
- Custom colors
- Tooltip with percentage display
- Legend positioning
- Adaptive theming for light/dark modes
Props
Prop | Type | Default | Description |
---|---|---|---|
data |
{ value: number; label: string }[] |
- | The data to be displayed. |
colors |
string[] |
Default colors | Custom colors for segments. |
Example Usage
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core