@mk7s/holochart-traces-finance
v0.1.0-alpha.0
Published
Financial trace types: ohlc, candlestick, waterfall, funnel, funnelarea, indicator.
Maintainers
Readme
@mk7s/holochart-traces-finance
The financial trace types of Holochart: ohlc, candlestick, waterfall, funnel, funnelarea
and indicator. 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-finance@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
financeTraces: every trace module below, to register at once- Trace modules:
ohlc,candlestick,waterfall,funnel,funnelarea,indicator - Attribute schemas (experimental):
ohlcAttributes,candlestickAttributes,waterfallAttributes,funnelAttributes,funnelareaAttributes,indicatorAttributes
Usage
import { createChart, register } from '@mk7s/holochart-runtime';
import { builtinComponents } from '@mk7s/holochart-components';
import { financeTraces } from '@mk7s/holochart-traces-finance';
register(...financeTraces, ...builtinComponents);
createChart(el, {
data: [
{
type: 'candlestick',
x: ['2026-01-02', '2026-01-05'],
open: [10, 11],
high: [12, 13],
low: [9, 10],
close: [11, 12],
},
],
});Docs
- Chart types: candlestick, waterfall, indicator
- Attribute reference: candlestick, ohlc, waterfall
- Dates & time series
- API reference
License
MIT (see LICENSE).
