insightdock::charts

Namespaces

Name
detail

Types

Name Description
AreaChart Area chart — filled polygons from series values down to the baseline.
AreaChartOptions Area-specific drawing options.
BarChart Vertical bar chart.
BarOptions Layout, shape, and label options for BarChart (and reused by ComboChart's bars).
CartesianChart Abstract base for charts with x/y axes, categories, and multiple series.
CartesianOptions Axis labels and scale behavior for Cartesian charts.
Chart Abstract base for all chart types.
ChartExporter Unified chart export API — render once, save or encode.
ChartOptions Common styling and layout for all chart types.
ChartResult Result of a chart export operation — either a value or a ChartError.
ChartResult<void> ChartResult specialisation for operations with no return value.
ChartTheme Visual style applied to any Chart via Chart::apply_theme.
Color RGBA color with 8-bit per channel.
ComboChart Mixed bar-and-line chart on a shared axis.
ComboLineOptions Drawing options for line series in a ComboChart.
DataLabelOptions Per-chart configuration for drawing the value of each mark directly on the chart.
DataSeries Named data series for Cartesian charts (bar, line).
DecimationPoint A single (x, y) sample for decimation.
DrawTarget Pixel-space drawing surface shared by all built-in charts.
ExportCapabilities Chart/build capabilities; querying does not draw, clone or validate input.
ExportOptions Options controlling render quality and output format.
Font TrueType font rasterizer (stb_truetype backend).
Histogram Result of compute_histogram: edges.size() == counts.size() + 1.
HistogramOptions How compute_histogram bins its input.
ImageBuffer Packed RGBA image (row-major, top-to-bottom).
LegendOptions Legend placement and visibility.
LineChart Multi-series line chart.
LineChartOptions Line-specific drawing options.
Margins Padding around the chart plot area, in pixels.
PieChart Pie chart rendered to an ImageBuffer.
PieOptions Pie-specific layout and styling.
PieSlice One slice of a PieChart.
Point 2D point in pixel coordinates.
RasterTarget DrawTarget that paints into an ImageBuffer (the original raster path).
Rect Axis-aligned rectangle (x,y = top-left, w,h = size).
ReferenceBand A shaded threshold band (e.g. a target range) drawn over Bar/Line/Area/Combo charts.
ReferenceLine A threshold/annotation line drawn over Bar/Line/Area/Combo charts.
Scale Maps a data domain [min, max]to a pixel range.
ScatterChart Scatter chart with continuous numeric x and y axes.
ScatterOptions Scatter/bubble layout and styling.
ScatterPoint One point in a ScatterChart series.
ScatterSeries One data series in a ScatterChart.
SeriesStyle Optional per-series overrides of the chart-wide line/marker options.
DashPattern Alternating on/off stroke lengths in pixels (e.g. {6,4}); empty means solid.
FontData Raw TTF file bytes.
FontDataPtr Shared, immutable TTF bytes — cheap to copy into many charts and fonts.

Enums

Name Description
BarMode How multiple series are drawn within each category.
BarOrientation Bar direction.
ChartError Reason a chart export operation failed.
ComboSeriesKind Geometry kind for each series in a ComboChart.
DataLabelPosition Where a data label is anchored relative to its mark.
GapPolicy How a missing value (NaN, Inf, or a series shorter than the category list) is drawn in line, area and combo-line series.
OutputFormat Output encoding format for ChartExporter.
PaletteKind Named palette for automatic series/slice coloring.
PdfBackend PDF embedding strategy when writing or drawing PDF output.
PieLegendPosition Legend placement for pie charts.
PointMarkerShape Shape drawn at each data point marker (line/scatter/combo charts).
ReferenceOrientation Which axis a ReferenceLine or ReferenceBand is measured against.
ScaleType Axis scale interpolation strategy.
StepMode Staircase interpolation between points (line and area charts).
SvgBackend SVG drawing strategy when writing or encoding SVG output.
TextAlign Horizontal text alignment relative to the anchor point.
TextBaseline Vertical text alignment relative to the anchor point.
TickFormat How y-axis tick values are formatted as label strings.
VectorCapability Advertised support for native drawing, without rendering the chart.
VectorFallback Policy when a chart declines native SVG/PDF drawing.

Functions

Name Description
chart_error_message Human-readable description of a ChartError code.
colorblind_color Color from the Okabe-Ito colorblind-safe palette.
colorblind_size Number of colors in the colorblind-safe (Okabe-Ito) palette.
compute_histogram Bins values into equal-width bins. NaN/Inf are skipped.
encode_jpeg Encode an RGBA buffer to JPEG bytes in memory.
encode_png Encode an RGBA buffer to PNG bytes in memory.
encode_svg
format_from_path Infer OutputFormat from a file path extension.
load_font_data Read and validate a TTF from disk for use as ChartOptions::font.
lttb_decimate Downsample a series to threshold points using LTTB.
lttb_decimate_indexed Convenience overload for category-aligned data (x = index).
make_font_data Copy and validate in-memory TTF bytes; nullptr if not a parseable TrueType font.
make_histogram_chart Builds a bar chart of a histogram: one touching bar per bin, labelled "lo-hi".
palette_color Color from the default 12-color Chart.js palette.
palette_color_by_kind Color from a specific palette kind.
palette_size Number of colors in the Chart.js palette.
tableau10_color Color from the Tableau 10 palette.
tableau10_size Number of colors in the Tableau 10 palette.
write_jpeg Write an RGBA buffer to a JPEG file.
write_png Write an RGBA buffer to a PNG file.
write_svg

Created with MrDocs