insightdock::charts::Chart

Abstract base for all chart types.

Synopsis

Declared in <insightdock/chart.h>
class Chart;

Member Functions

Name Description
~Chart [destructor] [virtual]Destructor
apply_theme Apply a ChartTheme to this chart's color and typography options.
clone [virtual]Deep copy of this chart, or nullptr if the concrete type doesn't support it.
draw [virtual]Draw the chart into an arbitrary DrawTarget (raster, SVG, PDF).
options options overloads
render [virtual]Render the chart to an RGBA image buffer.
vector_capability [virtual]Native drawing support advertised by this chart.

Protected Data Members

Name
options_

Non-Member Functions

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

Derived Classes

Name Description
CartesianChart Abstract base for charts with x/y axes, categories, and multiple series.
PieChart Pie chart rendered to an ImageBuffer.
ScatterChart Scatter chart with continuous numeric x and y axes.

Description

Subclasses implement render() to produce an ImageBuffer. Use ChartExporter for saving to PNG, JPEG, or PDF.

See Also

PieChart, BarChart, LineChart, CartesianChart

Created with MrDocs