@mk7s/holochart-traces-stats
v0.1.0-alpha.0
Published
Statistical trace types: histogram, histogram2d, histogram2dcontour, box, violin.
Maintainers
Readme
@mk7s/holochart-traces-stats
The statistical trace types of Holochart: histogram, histogram2d, histogram2dcontour, box,
violin, splom, parcoords and parcats. Part of
Holochart, declarative GPU charts on three.js.
Alpha. Released as
0.1.0-alphaon the npmalphatag; APIs can change between 0.x releases. Most apps should install the full bundle,@mk7s/holochart, which includes this package.
Install
pnpm add @mk7s/holochart-traces-stats@alpha threethree is a peer dependency, so your app and Holochart share one copy. ESM-only; Node 22 and
newer can also require() it.
What it exports
statsTraces: every trace module below, to register at once- Trace modules:
histogram,histogram2d,histogram2dcontour,box,violin,splom,parcoords,parcats - Attribute schemas (experimental):
histogramAttributes,boxAttributes,violinAttributes, and so on strip: builds a strip-plot figure (jittered points per category) from a table- Grid and contouring helpers that
@mk7s/holochart-traces-scibuilds on. These are tagged@internal: not API, and not exported by@mk7s/holochart.
Usage
import { createChart, register } from '@mk7s/holochart-runtime';
import { builtinComponents } from '@mk7s/holochart-components';
import { statsTraces } from '@mk7s/holochart-traces-stats';
register(...statsTraces, ...builtinComponents);
createChart(el, { data: [{ type: 'histogram', x: [1, 2, 2, 3, 3, 3, 4] }] });Docs
- Chart types: histogram, box, violin, splom
- Attribute reference: histogram, box, violin, parcoords
- API reference
License
MIT (see LICENSE).
