Series data structures.
Each series type is a struct tagged by its :type field, consumed by the
renderer. Series are plain data; they do not carry any rendering state.
Types
Bland.Series.Line— connected polylineBland.Series.Scatter— discrete points with markersBland.Series.Bar— categorical bars with hatched fillsBland.Series.Histogram— binned observations (numeric x-axis)Bland.Series.Heatmap— 2D grid of hatched cellsBland.Series.Contour— iso-level curves on a 2D gridBland.Series.Area— filled region between a curve and a baselineBland.Series.Polygon— closed filled polygonBland.Series.ErrorBar— points with X/Y uncertainty whiskersBland.Series.BoxPlot— box-and-whisker summary per categoryBland.Series.Stem— vertical stems with markers (DSP)Bland.Series.Quiver— 2D arrow vector fieldBland.Series.Hline— horizontal reference lineBland.Series.Vline— vertical reference lineBland.Series.Hspan— horizontal shaded band (y-bounds)Bland.Series.Vspan— vertical shaded band (x-bounds)Bland.Series.FillBetween— hatched region between two curves
Prefer the builder helpers in Bland rather than instantiating these
directly.
Twin y axis
Line, Scatter, Area, Stem, ErrorBar and Hline carry an
:axis field — :left (default) or :right — selecting which y scale
they are measured against. See Bland.Figure.
Uncertainty
Line, Scatter, Bar, Histogram and Stem all carry the same
error fields, so switching plot type never changes how error is
reported:
:yerr,:xerr— an error spec; seeBland.Uncertainty:error_style—:bandor:bars.niltakes the per-type default: a band for line and step, I-bars for the rest:error_hatch— band fill override:cap_width— I-bar cap width in px
Summary
Functions
Returns the x-axis category labels contributed by this series, or
nil if the series is not categorical.
Returns {min, max} of the x-domain contributed by a series, or nil
if the series has no x extent (e.g. Hline).
Returns {min, max} of the y-domain contributed by a series, or nil.
Functions
Returns the x-axis category labels contributed by this series, or
nil if the series is not categorical.
Returns {min, max} of the x-domain contributed by a series, or nil
if the series has no x extent (e.g. Hline).
Returns {min, max} of the y-domain contributed by a series, or nil.