Skip to content

@mk7s/holochart-traces-stats ​

Interfaces ​

InterfaceDescription
BoxCalcBox calcdata (violin extends it).
BoxTraceLineOutline of the box.
BoxTraceMarkerStyle of the sample points.
BoxTraceMarkerLinePoint outlines.
BoxTraceSelectedStyle of selected points while a selection is active.
BoxTraceSelectedMarkerMarker style of selected points.
BoxTraceUnselectedStyle of unselected points while a selection is active.
BoxTraceUnselectedMarkerMarker style of unselected points.
ContourBoundsThe contoured area, from the first to the last grid point (linear coordinates).
ContourConstraintA constraint contour's resolved operation and value.
ContourFieldWhat contouring a grid gives (part of the contour traces' calcdata).
ContourLevelsResolved contour levels.
ContourPathA contour polyline in fractional index (or, after conversion, data) coordinates.
ContourRegionRings of one level region: ring r spans vertices rings[r] up to rings[r + 1] (or the end).
Histogram2dAxisBinsOne binned direction.
Histogram2dCalchistogram2d calcdata.
Histogram2dContourCalchistogram2dcontour calcdata: the 2D histogram plus its contours.
Histogram2dcontourTraceContoursContour levels, coloring, labels and constraints.
Histogram2dcontourTraceContoursLabelfontFont of the level labels. Defaults to layout.font, colored like the lines.
Histogram2dcontourTraceLineContour lines.
Histogram2dcontourTraceMarkerAggregation data (Plotly compatibility).
Histogram2dcontourTraceXbinsX binning.
Histogram2dcontourTraceYbinsY binning.
Histogram2dTraceMarkerAggregation data (Plotly compatibility).
Histogram2dTraceTextfontFont of the cell labels (texttemplate).
Histogram2dTraceXbinsX binning.
Histogram2dTraceYbinsY binning.
HistogramCalcHistogram calcdata: a bar calc with one bar per kept bin (empty bins at both ends are dropped, as in Plotly), plus what hover, selection and the description need.
HistogramTraceCumulativeCumulative histograms.
HistogramTraceXbinsBins along x. Unset parts are automatic; traces of one bingroup share them.
HistogramTraceYbinsBins along y. Unset parts are automatic; traces of one bingroup share them.
ParcatsCalcCalcdata of a parcats trace.
ParcatsTraceDimensionOne item of dimensions.
ParcatsTraceLabelfontFont of the dimension labels. Default: layout.font.
ParcatsTraceLineThe paths, one per distinct combination and color.
ParcatsTraceTickfontFont of the category labels. Default: layout.font, 1/1.2 the size.
ParcoordsCalcCalcdata of a parcoords trace.
ParcoordsDimensionOne visible dimension (axis), in draw order.
ParcoordsTraceDimensionOne item of dimensions.
ParcoordsTraceLabelfontFont of the axis labels. Default: layout.font, 1/1.2 the size.
ParcoordsTraceLineThe lines, one per row of the dimensions.
ParcoordsTraceRangefontFont of the range labels at both ends of each axis. Default: layout.font, 1/1.2 the size.
ParcoordsTraceTickfontFont of the tick labels. Default: layout.font, 1/1.2 the size.
ParcoordsTraceUnselectedStyle of the lines outside the constraint ranges.
ParcoordsTraceUnselectedLineUnselected lines.
SplomCalcCalcdata of a splom trace.
SplomTraceDiagonalThe diagonal cells.
SplomTraceDimensionOne item of dimensions.
SplomTraceDimensionAxisDefaults for the dimension's axes.
SplomTraceMarkerMarker style, the same in every cell: color (per sample, or numbers mapped through colorscale with an optional colorbar), size, symbol, opacity, angle and outline.
SplomTraceSelectedStyle of selected points while a selection is active (box/lasso select in any cell, selectedpoints), in every cell.
SplomTraceUnselectedStyle of unselected points while a selection is active (box/lasso select in any cell, selectedpoints), in every cell.
StripFigureThe figure built by strip: pass it to createChart or adjust it first.
StripFigureOptionsOptions of strip: the camelCase counterparts of px.strip's parameters.
ViolinCalcViolin calcdata: box calcdata plus the density of each violin.
ViolinTraceBoxThe box plot drawn inside the violin.
ViolinTraceBoxLineOutline of the inner box.
ViolinTraceLineOutline of the violin.
ViolinTraceMarkerStyle of the sample points.
ViolinTraceMarkerLinePoint outlines.
ViolinTraceMeanlineThe mean line.
ViolinTraceSelectedStyle of selected points while a selection is active.
ViolinTraceSelectedMarkerMarker style of selected points.
ViolinTraceUnselectedStyle of unselected points while a selection is active.
ViolinTraceUnselectedMarkerMarker style of unselected points.

Type Aliases ​

Type AliasDescription
BoxTraceBox plot: quartiles, median, whiskers and outliers of samples (or of precomputed statistics) at each position.
Histogram2dcontourTrace2D density contours: samples binned along x and y like histogram2d, drawn as contour levels (filled bands, a heatmap, or lines) with optional level labels.
Histogram2dTrace2D histogram: samples binned along x and y, counted (or aggregated) per cell and drawn as a heatmap.
HistogramTraceHistogram: samples binned into bars (counts, sums, averages…), vertical or horizontal, stacking and grouping with bars.
ParcatsTraceParallel categories: one column of category bands per dimension, with paths across them sized by the number of samples; drag categories and dimensions to reorder them.
ParcoordsTraceParallel coordinates: one vertical axis per dimension and one line per row across them, colored by line.color; brush the axes to filter lines and drag the labels to reorder them.
SplomTraceScatter plot matrix: every pair of dimensions as a scatter plot, one cell per pair, with linked selection across cells.
StripDataRows ([{ day, bill }, …]) or columns ({ day: [...], bill: [...] }).
TracesStatsAny trace of @mk7s/holochart-traces-stats, discriminated on type. Type a partial bundle's figures with it: FigureInput<TracesStats>.
ViolinTraceViolin plot: a kernel density estimate of samples at each position, mirrored (or one-sided), with an optional inner box plot, mean line and points.

Variables ​

VariableDescription
box-
boxAttributesThe box schema. Common trace attributes (name, opacity, hovertemplate, …) come from core.
histogram-
histogram2d-
histogram2dAttributesThe histogram2d schema. Common trace attributes (name, opacity, xaxis, …) come from core.
histogram2dcontour-
histogram2dcontourAttributesThe histogram2dcontour schema. Common trace attributes come from core.
histogramAttributesThe histogram schema. Common trace attributes (name, opacity, xaxis, …) come from core.
parcats-
parcatsAttributesThe parcats schema.
parcoords-
parcoordsAttributesThe parcoords schema.
splom-
splomAttributes-
statsTracesEvery statistical trace module, for register(...statsTraces).
violin-
violinAttributesThe violin schema. Common trace attributes (name, opacity, hovertemplate, …) come from core.

Functions ​

FunctionDescription
stripBuild a strip plot figure from a table, like plotly.py's px.strip: box traces with boxpoints: 'all', pointpos: 0, hoveron: 'points', a transparent fill and no outline, one per color group (with offsetgroup = the group, so boxmode: 'group' sets them side by side). Differences from px: the outline is removed with line.width: 0 rather than a transparent line color (so the points keep the trace color from the colorway), and jitter is an option.

Released under the MIT License.