Pie chart rendered to an ImageBuffer.
| Name | Description |
|---|---|
Chart | Abstract base for all chart types. |
| Name | Description |
|---|---|
PieChart [constructor] | Default constructor |
add_slice | add_slice overloads |
apply_theme | Apply a ChartTheme to this chart's color and typography options. |
clear_slices | Remove all slices. |
clone [virtual] | |
draw [virtual] | Draw the same pie geometry, labels and styles into a raster or vector target. |
options | options overloads |
pie_options | Current pie options. |
render [virtual] | Render the pie chart to RGBA pixels. |
set_pie_options | Replace all pie-specific options. |
slice_count | Number of slices. |
slices | Read-only access to slice data (e.g. for PDF vector export). |
vector_capability [virtual] |
| Name |
|---|
options_ |
| Name | Description |
|---|---|
detail::build_chart_svg | Render chart as a native-vector SVG document. |
PieChart pie;
pie.add_slice("Revenue", 100);
pie.add_slice("Costs", 60);
ChartExporter::save(pie, "pie.png");
For vector PDF output, use ChartExporter with PdfBackend::Vector or insightdock::charts::podofo::draw_pie.