@mk7s/holochart-traces-stats
Interfaces
| Interface | Description |
|---|---|
| BoxCalc | Box calcdata (violin extends it). |
| BoxTraceLine | Outline of the box. |
| BoxTraceMarker | Style of the sample points. |
| BoxTraceMarkerLine | Point outlines. |
| BoxTraceSelected | Style of selected points while a selection is active. |
| BoxTraceSelectedMarker | Marker style of selected points. |
| BoxTraceUnselected | Style of unselected points while a selection is active. |
| BoxTraceUnselectedMarker | Marker style of unselected points. |
| ContourBounds | The contoured area, from the first to the last grid point (linear coordinates). |
| ContourConstraint | A constraint contour's resolved operation and value. |
| ContourField | What contouring a grid gives (part of the contour traces' calcdata). |
| ContourLevels | Resolved contour levels. |
| ContourPath | A contour polyline in fractional index (or, after conversion, data) coordinates. |
| ContourRegion | Rings of one level region: ring r spans vertices rings[r] up to rings[r + 1] (or the end). |
| Histogram2dAxisBins | One binned direction. |
| Histogram2dCalc | histogram2d calcdata. |
| Histogram2dContourCalc | histogram2dcontour calcdata: the 2D histogram plus its contours. |
| Histogram2dcontourTraceContours | Contour levels, coloring, labels and constraints. |
| Histogram2dcontourTraceContoursLabelfont | Font of the level labels. Defaults to layout.font, colored like the lines. |
| Histogram2dcontourTraceLine | Contour lines. |
| Histogram2dcontourTraceMarker | Aggregation data (Plotly compatibility). |
| Histogram2dcontourTraceXbins | X binning. |
| Histogram2dcontourTraceYbins | Y binning. |
| Histogram2dTraceMarker | Aggregation data (Plotly compatibility). |
| Histogram2dTraceTextfont | Font of the cell labels (texttemplate). |
| Histogram2dTraceXbins | X binning. |
| Histogram2dTraceYbins | Y binning. |
| HistogramCalc | Histogram 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. |
| HistogramTraceCumulative | Cumulative histograms. |
| HistogramTraceXbins | Bins along x. Unset parts are automatic; traces of one bingroup share them. |
| HistogramTraceYbins | Bins along y. Unset parts are automatic; traces of one bingroup share them. |
| ParcatsCalc | Calcdata of a parcats trace. |
| ParcatsTraceDimension | One item of dimensions. |
| ParcatsTraceLabelfont | Font of the dimension labels. Default: layout.font. |
| ParcatsTraceLine | The paths, one per distinct combination and color. |
| ParcatsTraceTickfont | Font of the category labels. Default: layout.font, 1/1.2 the size. |
| ParcoordsCalc | Calcdata of a parcoords trace. |
| ParcoordsDimension | One visible dimension (axis), in draw order. |
| ParcoordsTraceDimension | One item of dimensions. |
| ParcoordsTraceLabelfont | Font of the axis labels. Default: layout.font, 1/1.2 the size. |
| ParcoordsTraceLine | The lines, one per row of the dimensions. |
| ParcoordsTraceRangefont | Font of the range labels at both ends of each axis. Default: layout.font, 1/1.2 the size. |
| ParcoordsTraceTickfont | Font of the tick labels. Default: layout.font, 1/1.2 the size. |
| ParcoordsTraceUnselected | Style of the lines outside the constraint ranges. |
| ParcoordsTraceUnselectedLine | Unselected lines. |
| SplomCalc | Calcdata of a splom trace. |
| SplomTraceDiagonal | The diagonal cells. |
| SplomTraceDimension | One item of dimensions. |
| SplomTraceDimensionAxis | Defaults for the dimension's axes. |
| SplomTraceMarker | Marker style, the same in every cell: color (per sample, or numbers mapped through colorscale with an optional colorbar), size, symbol, opacity, angle and outline. |
| SplomTraceSelected | Style of selected points while a selection is active (box/lasso select in any cell, selectedpoints), in every cell. |
| SplomTraceUnselected | Style of unselected points while a selection is active (box/lasso select in any cell, selectedpoints), in every cell. |
| StripFigure | The figure built by strip: pass it to createChart or adjust it first. |
| StripFigureOptions | Options of strip: the camelCase counterparts of px.strip's parameters. |
| ViolinCalc | Violin calcdata: box calcdata plus the density of each violin. |
| ViolinTraceBox | The box plot drawn inside the violin. |
| ViolinTraceBoxLine | Outline of the inner box. |
| ViolinTraceLine | Outline of the violin. |
| ViolinTraceMarker | Style of the sample points. |
| ViolinTraceMarkerLine | Point outlines. |
| ViolinTraceMeanline | The mean line. |
| ViolinTraceSelected | Style of selected points while a selection is active. |
| ViolinTraceSelectedMarker | Marker style of selected points. |
| ViolinTraceUnselected | Style of unselected points while a selection is active. |
| ViolinTraceUnselectedMarker | Marker style of unselected points. |
Type Aliases
| Type Alias | Description |
|---|---|
| BoxTrace | Box plot: quartiles, median, whiskers and outliers of samples (or of precomputed statistics) at each position. |
| Histogram2dcontourTrace | 2D density contours: samples binned along x and y like histogram2d, drawn as contour levels (filled bands, a heatmap, or lines) with optional level labels. |
| Histogram2dTrace | 2D histogram: samples binned along x and y, counted (or aggregated) per cell and drawn as a heatmap. |
| HistogramTrace | Histogram: samples binned into bars (counts, sums, averages…), vertical or horizontal, stacking and grouping with bars. |
| ParcatsTrace | Parallel 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. |
| ParcoordsTrace | Parallel 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. |
| SplomTrace | Scatter plot matrix: every pair of dimensions as a scatter plot, one cell per pair, with linked selection across cells. |
| StripData | Rows ([{ day, bill }, …]) or columns ({ day: [...], bill: [...] }). |
| TracesStats | Any trace of @mk7s/holochart-traces-stats, discriminated on type. Type a partial bundle's figures with it: FigureInput<TracesStats>. |
| ViolinTrace | Violin 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
| Variable | Description |
|---|---|
| box | - |
| boxAttributes | The box schema. Common trace attributes (name, opacity, hovertemplate, …) come from core. |
| histogram | - |
| histogram2d | - |
| histogram2dAttributes | The histogram2d schema. Common trace attributes (name, opacity, xaxis, …) come from core. |
| histogram2dcontour | - |
| histogram2dcontourAttributes | The histogram2dcontour schema. Common trace attributes come from core. |
| histogramAttributes | The histogram schema. Common trace attributes (name, opacity, xaxis, …) come from core. |
| parcats | - |
| parcatsAttributes | The parcats schema. |
| parcoords | - |
| parcoordsAttributes | The parcoords schema. |
| splom | - |
| splomAttributes | - |
| statsTraces | Every statistical trace module, for register(...statsTraces). |
| violin | - |
| violinAttributes | The violin schema. Common trace attributes (name, opacity, hovertemplate, …) come from core. |
Functions
| Function | Description |
|---|---|
| strip | Build 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. |