insightdock::charts::PieChart

Pie chart rendered to an ImageBuffer.

Synopsis

Declared in <insightdock/pie_chart.h>
class PieChart
    : public Chart

Base Classes

Name Description
ChartAbstract base for all chart types.

Member Functions

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]

Protected Data Members

Name
options_

Non-Member Functions

Name Description
detail::build_chart_svgRender chart as a native-vector SVG document.

Description

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.

Created with MrDocs