Pie-specific layout and styling.
<insightdock/pie_chart.h>
struct PieOptions;
| Name | Description |
|---|---|
center_x | Pie center X (both coordinates 0 = auto-center at render time). |
center_y | Pie center Y (both coordinates 0 = auto-center at render time). |
data_labels | In-slice value/percentage label, distinct from the external leader-line label above. |
fill_opacity | Multiplier for slice color alpha (clamped to 0–1). |
gap_degrees | Angular gap between slices in degrees. |
inner_radius_ratio | Doughnut cutout, as a fraction of radius, in [0, 1). 0 (default) draws a plain pie; > 0 punches a hole in the center down to ]Chart::options()'s background color. Only correct against a solid background (no gradient/image backdrop is supported by this library). |
label_color | Label text color. |
label_font_size | Label font size in pixels. |
legend_position | |
palette | Color cycle for auto-colored slices. |
radius | Pie radius (0 = auto-fit with room for title, legend and callouts). |
show_labels | Draw measured external callouts, separated vertically outside the pie. Overfull columns keep larger slices first (input-order ties); blocks that cannot fit are omitted in full. Slice geometry and legend entries remain independent of callout visibility. |
show_legend | Draw a measured, wrapped legend with +N more overflow. |
show_percentage | Include percentage in labels. |
skip_zero | Omit slices with value ≤ 0. |
stroke_color | Outline between slices. |
stroke_width | Slice outline width in pixels. |
Defaults match report-style pies: semi-transparent fills, white slice strokes, external labels with percentages.