insightdock::charts::ChartOptions

Common styling and layout for all chart types.

Synopsis

Declared in <insightdock/chart.h>
struct ChartOptions;

Data Members

Name Description
axis_color Axis line color.
background Canvas background color.
font Font used for all text. nullptr (default) selects the embedded font. Load one with load_font_data; the bytes are shared, so many charts can reuse one font cheaply.
font_size Base font size in pixels.
grid_color Grid line color.
height Output image height in pixels.
legend Legend visibility and position.
margins Plot area insets.
palette Color cycle for series added without an explicit color (bar/line/area/combo/scatter).
show_grid Draw horizontal/vertical grid lines (Cartesian charts).
text_color General label color.
title Chart title (empty = no title).
title_color Title text color.
width Output image width in pixels.

Description

Sensible defaults produce a usable chart without manual tuning. Override width/height, title, colors, and margins as needed.

Created with MrDocs