specs
¶
Chart specifications.
A spec is a small, renderer-agnostic description of a chart: the data that is
drawn (already binned / aggregated / downsampled) plus presentation hints. The
model layer builds specs; a renderer (svg.render) turns them into markup.
Specs only hold plain Python values, so to_dict() is JSON-serialisable.
Classes¶
BarSpec
dataclass
¶
Bases: ChartSpec
Bars over categorical labels (optionally grouped for comparisons).
StackedBarSpec
dataclass
¶
Bases: ChartSpec
100% stacked horizontal bar: one row per report (comparison).
MissingMatrixSpec
dataclass
¶
Bases: ChartSpec
Row-bucketed nullity matrix.
bands[c] is a list of (row_start, row_end, fraction_present) runs for
column c; rows are bucketed so the markup size does not grow with the
number of rows.
StemGridSpec
dataclass
¶
Bases: ChartSpec
Grid of stem plots, e.g. ACF | PACF, one row per compared report.
CloudWord
dataclass
¶
A placed word: baseline origin (x, y) in the panel, font size, rank.
WordCloudSpec
dataclass
¶
Bases: ChartSpec
Word cloud laid out ahead of time; one panel per compared report.