Colors
Slice color palette. Colors cycle automatically when datasets exceed palette length.
| Property | Type | Default | Description |
|---|
colors | string[] | ["#00a9ff", "#ffb840", ...] | Color palette for pie slices |
Title
| Property | Type | Default | Description |
|---|
title.text | string | "" | Title text |
title.visible | boolean | true | Show or hide the title |
title.color | string | "#333333" | Text color |
title.fontSize | number | 18 | Font size in px |
title.fontWeight | string? | "bold" | Font weight |
title.position | "top" | "bottom" | "top" | Placement relative to chart |
title.alignment | "start" | "center" | "end" | "start" | Horizontal alignment |
Legend
| Property | Type | Default | Description |
|---|
legend.visible | boolean | true | |
legend.position | "top" | "bottom" | "right" | "right-top" | "right-center" | "right-bottom" | "right-top" | |
legend.gap | number | 12 | Spacing between legend and chart (px) |
Padding
Chart area padding in pixels.
| Property | Type | Default | Description |
|---|
padding.top | number | 20 | |
padding.right | number | 20 | |
padding.bottom | number | 20 | |
padding.left | number | 20 | |
Animation
| Property | Type | Default | Description |
|---|
animation.enabled | boolean | true | Enable entry animation |
animation.duration | number | 300 | Animation duration (ms) |
animation.staggerDelay | number | 60 | Delay between slices (ms) |
Pie
Pie-specific visual settings.
| Property | Type | Default | Description |
|---|
pie.strokeColor | string | "white" | Border color between slices |
pie.strokeWidth | number | 2 | Border width between slices (px) |
pie.innerRadiusRatio | number | 0 | Inner radius ratio (0 = pie, 0.5 = donut) |