insightdock::charts::PieChart::add_slice

Add a slice; color is chosen from PieOptions::palette.

Synopsis

Declared in <insightdock/pie_chart.h>
void
add_slice(
    std::string label,
    double value);

Parameters

Name Description
label Slice name.
value Numeric value.

Created with MrDocs