@tidal-ts/chart 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/dist/TimeSeriesChart.d.ts +3 -3
- package/dist/TimeSeriesChart.js +13 -5
- package/dist/index.d.ts +1 -1
- package/dist/prepare.d.ts +45 -2
- package/dist/prepare.js +22 -6
- package/dist/seriesFacts.d.ts +4 -1
- package/dist/seriesFacts.js +6 -3
- package/package.json +12 -12
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# @tidal-ts/chart
|
|
2
|
+
|
|
3
|
+
`TimeSeriesChart`: a multi-row financial time-series chart for React, built on
|
|
4
|
+
[`@pond-ts/charts`](https://pond-ts.org/docs/charts). Rows stack on one shared
|
|
5
|
+
time axis; each holds candles, lines, bands, bars and technical studies on a
|
|
6
|
+
left and a right axis. Part of [tidal-ts](https://github.com/tidal-app/tidal-ts).
|
|
7
|
+
|
|
8
|
+
The chart reads no CSS, no context provider and no storage. Its theme, colours
|
|
9
|
+
and settings arrive as props, so it takes on your app's design system.
|
|
10
|
+
|
|
11
|
+
**Pre-1.0: pin an exact version.** Every `@tidal-ts/*` package ships on one
|
|
12
|
+
version number.
|
|
13
|
+
|
|
14
|
+
- [Getting started](https://tidal-app.github.io/tidal-ts/docs/getting-started/): install, then candles, a moving
|
|
15
|
+
average and an RSI panel
|
|
16
|
+
- [Docs](https://tidal-app.github.io/tidal-ts/docs/packages/chart/)
|
|
17
|
+
- [Study catalog](https://tidal-app.github.io/tidal-ts/docs/studies/)
|
|
18
|
+
- [Storybook](https://tidal-app.github.io/tidal-ts/storybook/)
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install --save-exact @tidal-ts/core @tidal-ts/chart @pond-ts/process@0.72.0
|
|
24
|
+
npm install pond-ts@~0.72.0 @pond-ts/financial@~0.72.0 @pond-ts/charts@~0.72.0 @pond-ts/react@~0.72.0
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
React 18 or 19. The pond packages are peer dependencies: install them once, on
|
|
28
|
+
the version this release names in its `peerDependencies`, so there is only one
|
|
29
|
+
copy of pond-ts in your bundle.
|
|
30
|
+
|
|
31
|
+
## The shape
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
import { prepareChart, TimeSeriesChart, type SeriesConfig } from '@tidal-ts/chart';
|
|
35
|
+
import { deriveId, type DeriveSpec } from '@tidal-ts/core';
|
|
36
|
+
|
|
37
|
+
const sma: DeriveSpec = { op: 'sma', inputs: ['close'], params: { period: 20 } };
|
|
38
|
+
const base = { axis: 'L', visible: true, value: null, unit: '', source: 'price' } as const;
|
|
39
|
+
const configs: SeriesConfig[] = [
|
|
40
|
+
{ ...base, id: 'price', column: 'close', label: 'Price', color: '#8b93a8', style: 'candle' },
|
|
41
|
+
{
|
|
42
|
+
...base,
|
|
43
|
+
id: 'sma',
|
|
44
|
+
column: deriveId(sma),
|
|
45
|
+
derive: sma,
|
|
46
|
+
label: 'SMA 20',
|
|
47
|
+
color: '#f0a93f',
|
|
48
|
+
style: 'line',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
// The prepare step computes the studies and seats each config on its row.
|
|
53
|
+
const { rows, sources } = prepareChart({ price: { series } }, [{ id: 'main', configs }]);
|
|
54
|
+
|
|
55
|
+
<TimeSeriesChart
|
|
56
|
+
rows={rows.map((r) => ({ ...r, height: 400 }))}
|
|
57
|
+
sources={sources}
|
|
58
|
+
ohlcSources={['price']}
|
|
59
|
+
theme={theme} // a ChartTheme from @pond-ts/charts
|
|
60
|
+
/>;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
MIT.
|
|
@@ -119,7 +119,7 @@ export interface TimeSeriesChartProps {
|
|
|
119
119
|
annotations?: readonly ChartAnnotation[];
|
|
120
120
|
/**
|
|
121
121
|
* Source keys whose data is **coarser than the axis** — a daily vol curve held
|
|
122
|
-
* across an intraday grid (`
|
|
122
|
+
* across an intraday grid (the prepare step's `SourceHold`).
|
|
123
123
|
*
|
|
124
124
|
* These opt out of session breaks. A break marks live time a series could not
|
|
125
125
|
* fill *within its own cadence*; a daily observation has no intraday cadence to
|
|
@@ -128,8 +128,8 @@ export interface TimeSeriesChartProps {
|
|
|
128
128
|
* scattered noise rather than as a step function.
|
|
129
129
|
*
|
|
130
130
|
* Cannot be inferred here: the held series is re-keyed onto the fine grid, so its
|
|
131
|
-
* KEYS are minutes and only its values are daily. The
|
|
132
|
-
*
|
|
131
|
+
* KEYS are minutes and only its values are daily. The host knows, because it
|
|
132
|
+
* passed the source to the prepare step with a `hold`.
|
|
133
133
|
*/
|
|
134
134
|
coarseSources?: readonly string[];
|
|
135
135
|
/** Series ids to de-emphasize (drawn with reduced alpha) — the chart's "dim the
|
package/dist/TimeSeriesChart.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useCallback, Fragment, memo, useEffect, useMemo, useState, } from 'react';
|
|
3
|
-
import { AreaChart, BandChart, BarChart, Candlestick, ChartContainer, ChartRow, Layers, LineChart, Baseline, Marker, Region, TimeAxis, YAxis, YAxisIndicator, } from '@pond-ts/charts';
|
|
3
|
+
import { AreaChart, BandChart, BarChart, Candlestick, ChartContainer, ChartRow, CrosshairCursor, Layers, LineChart, Baseline, Marker, Region, TimeAxis, YAxis, YAxisIndicator, } from '@pond-ts/charts';
|
|
4
4
|
import { segmentDiscontinuity, weekendSkip } from '@pond-ts/financial';
|
|
5
5
|
import { resolveTimeZone, aggregateColumn, hasPairOp, inferBarMs, liveWindowMs, ohlcWindow, readNumericColumn, sessionOpenLine, exactSessionSegments, sessionSegments, shiftKeys, sliceBySegments, WINDOW_MS, autoBarWindow, opOutputs, outputMark, } from '@tidal-ts/core';
|
|
6
6
|
import { candleStyleForColor, candleStyleForPair } from './candleStyle.js';
|
|
@@ -883,7 +883,15 @@ function TimeSeriesChartInner({ rows, sources, ohlcSources = [], calendarDays =
|
|
|
883
883
|
// the fill would stop one bar before the line it is meant to agree with,
|
|
884
884
|
// at every seam.
|
|
885
885
|
if (!splitsFor(c)) {
|
|
886
|
-
|
|
886
|
+
// `baseline="floor"`: since charts 0.71 an area fills to zero by
|
|
887
|
+
// default, and on an axis the library auto-fits (no `min`/`max` from
|
|
888
|
+
// the host, or a flat series a host hands back to the fit) that pulls
|
|
889
|
+
// 0 into the domain. On a pinned axis the two draw the same, because
|
|
890
|
+
// the baseline clamps to the edge. The fill rests on the floor, as
|
|
891
|
+
// before, whichever way the host fits.
|
|
892
|
+
return [
|
|
893
|
+
_jsx(AreaChart, { series: closeSeries, column: col, as: c.id, axis: axis, baseline: "floor" }, c.id),
|
|
894
|
+
];
|
|
887
895
|
}
|
|
888
896
|
// The price close gets the open-line treatment per slice (one source,
|
|
889
897
|
// so uncached is cheap); everything else takes the cached end-shifted
|
|
@@ -891,7 +899,7 @@ function TimeSeriesChartInner({ rows, sources, ohlcSources = [], calendarDays =
|
|
|
891
899
|
const slices = native !== undefined && c.source && col === 'close' && ohlc.has(c.source)
|
|
892
900
|
? segmentsFor(panelSeries).map((slice) => sessionOpenLine(slice, native, { open: 'open', close: 'close' }))
|
|
893
901
|
: endSegmentsFor(panelSeries);
|
|
894
|
-
return slices.map((slice, i) => (_jsx(AreaChart, { series: slice, column: col, as: c.id, axis: axis }, `${c.id}__s${i}`)));
|
|
902
|
+
return slices.map((slice, i) => (_jsx(AreaChart, { series: slice, column: col, as: c.id, axis: axis, baseline: "floor" }, `${c.id}__s${i}`)));
|
|
895
903
|
}
|
|
896
904
|
case 'bar': {
|
|
897
905
|
const s = derived.bar.get(c.id);
|
|
@@ -1089,10 +1097,10 @@ function TimeSeriesChartInner({ rows, sources, ohlcSources = [], calendarDays =
|
|
|
1089
1097
|
// alone, wheel to zoom it (0.64 aligned the drag with the x strip —
|
|
1090
1098
|
// before that a drag scaled). Deliberately `'y'` — the x strip would
|
|
1091
1099
|
// duplicate the plot's own pan/zoom, and the range pills are the x reset.
|
|
1092
|
-
axisPanZoom: onAxisBounds ? 'y' : 'none', range: viewRange ?? undefined, onTimeRangeChange: onViewRangeChange, minDuration: minDuration,
|
|
1100
|
+
axisPanZoom: onAxisBounds ? 'y' : 'none', range: viewRange ?? undefined, onTimeRangeChange: onViewRangeChange, minDuration: minDuration, onTrackerChanged: onTracker,
|
|
1093
1101
|
// Omitting it makes charts skip per-layer timing entirely, so an app that
|
|
1094
1102
|
// doesn't show the diagnostics line pays nothing for them.
|
|
1095
|
-
onDrawStats: onStats ? handleDrawStats : undefined, discontinuities: discontinuities, sessionDividers: settings.sessions.dividers, rowGap: gapSplitter ? 0 : 8, showAxis: false, children: [renderedRows.map((row, i) => {
|
|
1103
|
+
onDrawStats: onStats ? handleDrawStats : undefined, discontinuities: discontinuities, sessionDividers: settings.sessions.dividers, rowGap: gapSplitter ? 0 : 8, showAxis: false, children: [_jsx(CrosshairCursor, {}), renderedRows.map((row, i) => {
|
|
1096
1104
|
const visible = row.configs.filter(seriesDrawn);
|
|
1097
1105
|
// Visible AND its column actually folded — the drawable set. A `—`
|
|
1098
1106
|
// chip config (a skipped derived spec) is visible but carries no
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type { ChartSeries } from './types.js';
|
|
|
16
16
|
export { configAxisId, effectiveSplit, formatSeriesValue, isStudySeries, LINE_WIDTHS, PAIR_JOINS, PAIR_LENSES, seriesAxisId, readsCompare, seriesDrawn, seriesLineDashArray, seriesLineWidth, sharedAxisId, type AxisRange, effectiveAxisBounds, clampBoundsToLocks, barZeroLock, centerOnZero, axisRangeIsEmpty, axisFormat, fractionTicks, bandColumns, configColumns, hasBarOutput, logAllowed, AXIS_PRECISIONS, type PairJoinOp, type PairLensOp, type SeriesGroup, type PairPartView, type PairView, type SeriesBinding, type SeriesConfig, type SeriesAxis, type SeriesStyle, type SeriesWindow, type CandleVariant, type ColorBy, readsFrom, sourcesOf, } from './series.js';
|
|
17
17
|
export { DEFAULT_CHART_SETTINGS, mergeChartSettings, type AnnotationOverride, type ChartSettings, type CategoryLineStyle, type SessionDividers, type SplitColorDefault, type LineDash, } from './chartSettings.js';
|
|
18
18
|
export { useMeasuredWidth, useMeasuredSize } from './useMeasuredWidth.js';
|
|
19
|
-
export { assembleRows, carries, foldKey, foldSources, prepareChart, sourceFacts, type ConfigRow, type PreparedRow, type SourceFacts, type SourceInput, type SourceInputs, } from './prepare.js';
|
|
19
|
+
export { assembleRows, carries, foldKey, foldSources, prepareChart, sourceFacts, type ConfigRow, type PreparedRow, type SourceFacts, type SourceHold, type SourceInput, type SourceInputs, } from './prepare.js';
|
|
20
20
|
export { finiteColumns, firstLast, lastRow } from './seriesFacts.js';
|
|
21
21
|
export { createLiveValue } from '@pond-ts/charts';
|
|
22
22
|
export type { TrackerInfo, TrackerSample, LiveValue } from '@pond-ts/charts';
|
package/dist/prepare.d.ts
CHANGED
|
@@ -10,7 +10,9 @@ import type { ChartSeries } from './types.js';
|
|
|
10
10
|
*
|
|
11
11
|
* 1. {@link foldSources} — join the comparison series under the compare prefix
|
|
12
12
|
* where a config asks for it, then fold every study spec onto its source so
|
|
13
|
-
* the derived columns exist before the chart reads them.
|
|
13
|
+
* the derived columns exist before the chart reads them. A source coarser
|
|
14
|
+
* than the axis is folded at its own grain and then held across the axis
|
|
15
|
+
* ({@link SourceHold}).
|
|
14
16
|
* 2. {@link sourceFacts} — read, columnar, which columns actually carry data
|
|
15
17
|
* and what the latest bar holds.
|
|
16
18
|
* 3. {@link assembleRows} — per row, the configs the data can honour (plus the
|
|
@@ -25,6 +27,46 @@ import type { ChartSeries } from './types.js';
|
|
|
25
27
|
export interface SourceInput {
|
|
26
28
|
series: ChartSeries;
|
|
27
29
|
compare?: ChartSeries | null;
|
|
30
|
+
/** Set when `series` (and `compare`) are coarser than the axis: a daily
|
|
31
|
+
* curve on an intraday chart. Pass them at their own grain. */
|
|
32
|
+
hold?: SourceHold;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* How a source **coarser than the axis** meets it: a daily curve on a
|
|
36
|
+
* one-minute chart.
|
|
37
|
+
*
|
|
38
|
+
* The fold runs at the source's own grain, and its result (the raw columns,
|
|
39
|
+
* the joined comparison's, every study's) is then held across `grid`
|
|
40
|
+
* (`holdAcrossGrid`). The order is the point. A study of a daily series is a
|
|
41
|
+
* study of days: a 20-bar average of the curve held across minutes would be a
|
|
42
|
+
* 20-minute window over one flat day. And a comparison joined at the source's
|
|
43
|
+
* grain is ~250 rows a year where the same join after the hold is ~100,000.
|
|
44
|
+
*
|
|
45
|
+
* A host passes the source and its comparison **unheld**. The chart's
|
|
46
|
+
* `coarseSources` names the same keys, for drawing. Four things follow:
|
|
47
|
+
*
|
|
48
|
+
* - **A restated row wins before anything reads it.** Rows sharing a key are
|
|
49
|
+
* reduced to the last one before the join and the studies, so a study never
|
|
50
|
+
* counts a restatement as an extra bar.
|
|
51
|
+
* - **The comparison joins on the coarse keys**, exactly as it does unheld: a
|
|
52
|
+
* day the source has no row for is a gap in the comparison too, and a
|
|
53
|
+
* comparison keyed at another time of day (04:00 against 00:00) matches
|
|
54
|
+
* nothing. Pass both at the same grain, keyed the same way.
|
|
55
|
+
* - **Warm-up comes from the coarse rows.** A 20-day study needs 20 coarse
|
|
56
|
+
* rows before the grid starts; rows before the grid cost nothing in the
|
|
57
|
+
* result. Pass the source with the look-back its longest study needs.
|
|
58
|
+
* - **The hold throws** on a value column it cannot carry (anything but
|
|
59
|
+
* `number` and `string`), where a study that cannot fold is skipped. No
|
|
60
|
+
* study emits such a column today.
|
|
61
|
+
*/
|
|
62
|
+
export interface SourceHold {
|
|
63
|
+
/** The axis's timestamps, ascending: the fine source's keys.
|
|
64
|
+
* `series.keyColumn().begin.subarray(0, series.length)` hands them over
|
|
65
|
+
* without a copy (a key buffer may be longer than its series). */
|
|
66
|
+
grid: ArrayLike<number>;
|
|
67
|
+
/** The coarse source's bar length in ms. A row holds from its key for this
|
|
68
|
+
* long, or until the next row starts; past that a grid point is a gap. */
|
|
69
|
+
grainMs: number;
|
|
28
70
|
}
|
|
29
71
|
export type SourceInputs = Record<string, SourceInput>;
|
|
30
72
|
/** A row of seated configs — the shape the terminal machine holds. */
|
|
@@ -57,7 +99,8 @@ export declare function foldKey(configs: readonly SeriesConfig[]): string;
|
|
|
57
99
|
/**
|
|
58
100
|
* The fold: each source, joined with its comparison under the compare prefix
|
|
59
101
|
* when any config on it asks (a compare-bound spec, or a raw compare leg), then
|
|
60
|
-
* every study spec on it applied so the derived columns exist
|
|
102
|
+
* every study spec on it applied so the derived columns exist, then, for a
|
|
103
|
+
* source with a {@link SourceHold}, held across the axis. A spec whose
|
|
61
104
|
* inputs are missing is skipped by the engine and simply yields no column — the
|
|
62
105
|
* chart's column-absence handling is the render half of that contract, and
|
|
63
106
|
* {@link assembleRows} keeps the config listed so the user can still remove it.
|
package/dist/prepare.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import { applyDerived, COMPARE_PREFIX, joinUnderPrefix, usesCompare } from '@tidal-ts/core';
|
|
1
|
+
import { applyDerived, COMPARE_PREFIX, holdAcrossGrid, joinUnderPrefix, usesCompare, } from '@tidal-ts/core';
|
|
2
2
|
import { configColumns } from './series.js';
|
|
3
3
|
import { finiteColumns, lastRow } from './seriesFacts.js';
|
|
4
|
+
/** The series with one row per key, the last of each run: a restatement
|
|
5
|
+
* replaces the row before it. The key scan is cheap, so a series without
|
|
6
|
+
* duplicates, which is nearly all of them, is returned as it is. */
|
|
7
|
+
const lastPerKey = (series) => {
|
|
8
|
+
const keys = series.keyColumn().begin;
|
|
9
|
+
for (let i = 1; i < series.length; i += 1)
|
|
10
|
+
if (keys[i] === keys[i - 1])
|
|
11
|
+
return series.dedupe({ keep: 'last' });
|
|
12
|
+
return series;
|
|
13
|
+
};
|
|
4
14
|
const specsBySource = (configs) => {
|
|
5
15
|
const m = {};
|
|
6
16
|
for (const c of configs)
|
|
@@ -37,7 +47,8 @@ export function foldKey(configs) {
|
|
|
37
47
|
/**
|
|
38
48
|
* The fold: each source, joined with its comparison under the compare prefix
|
|
39
49
|
* when any config on it asks (a compare-bound spec, or a raw compare leg), then
|
|
40
|
-
* every study spec on it applied so the derived columns exist
|
|
50
|
+
* every study spec on it applied so the derived columns exist, then, for a
|
|
51
|
+
* source with a {@link SourceHold}, held across the axis. A spec whose
|
|
41
52
|
* inputs are missing is skipped by the engine and simply yields no column — the
|
|
42
53
|
* chart's column-absence handling is the render half of that contract, and
|
|
43
54
|
* {@link assembleRows} keeps the config listed so the user can still remove it.
|
|
@@ -51,16 +62,21 @@ export function foldSources(inputs, configs) {
|
|
|
51
62
|
const out = {};
|
|
52
63
|
for (const [key, input] of Object.entries(inputs)) {
|
|
53
64
|
const mine = specs[key] ?? [];
|
|
54
|
-
|
|
65
|
+
// A coarse source is folded before it is held, so a restated row has to go
|
|
66
|
+
// first, or the join pairs it with nothing and a study counts it as a bar
|
|
67
|
+
// (the hold alone would only pick the later row after both had happened).
|
|
68
|
+
let series = input.hold ? lastPerKey(input.series) : input.series;
|
|
69
|
+
const compare = input.hold && input.compare ? lastPerKey(input.compare) : input.compare;
|
|
55
70
|
// A compare-bound leg needs the compare entity's columns on the PRIMARY
|
|
56
71
|
// series before the fold — a left exact-key join, every conflicting column
|
|
57
72
|
// prefixed. Only when asked and the compare series exists; otherwise the
|
|
58
73
|
// fold's own skip leaves the spread as a gap (compare off ⇒ not drawn).
|
|
59
74
|
// Rename-then-join lives in core (`joinUnderPrefix`; F-charts-14 for why
|
|
60
75
|
// not the library's `onConflict: 'prefix'`).
|
|
61
|
-
if (
|
|
62
|
-
series = joinUnderPrefix(series,
|
|
63
|
-
|
|
76
|
+
if (compare && (rawCompare.has(key) || mine.some(usesCompare)))
|
|
77
|
+
series = joinUnderPrefix(series, compare);
|
|
78
|
+
const folded = applyDerived(series, mine);
|
|
79
|
+
out[key] = input.hold ? holdAcrossGrid(folded, input.hold.grid, input.hold.grainMs) : folded;
|
|
64
80
|
}
|
|
65
81
|
return out;
|
|
66
82
|
}
|
package/dist/seriesFacts.d.ts
CHANGED
|
@@ -16,7 +16,10 @@ import { readNumericColumn } from '@tidal-ts/core';
|
|
|
16
16
|
*/
|
|
17
17
|
/** A series as the terminal holds it — schema-erased. */
|
|
18
18
|
type AnySeries = Parameters<typeof readNumericColumn>[0];
|
|
19
|
-
/**
|
|
19
|
+
/** The value column names, from the schema: every row has the same set. The
|
|
20
|
+
* first row's `data()` used to stand in, and before pond 0.72 a join left its
|
|
21
|
+
* unmatched columns out of that, so a `cmp_*` column whose first row had no
|
|
22
|
+
* match was never scanned, and read as not carried. */
|
|
20
23
|
export declare function columnNames(series: AnySeries): string[];
|
|
21
24
|
/**
|
|
22
25
|
* Which columns carry at least one finite number — "show only what the data
|
package/dist/seriesFacts.js
CHANGED
|
@@ -16,10 +16,13 @@ function rowAt(series, index) {
|
|
|
16
16
|
return undefined;
|
|
17
17
|
return s.at(index)?.data();
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
19
|
+
/** The value column names, from the schema: every row has the same set. The
|
|
20
|
+
* first row's `data()` used to stand in, and before pond 0.72 a join left its
|
|
21
|
+
* unmatched columns out of that, so a `cmp_*` column whose first row had no
|
|
22
|
+
* match was never scanned, and read as not carried. */
|
|
20
23
|
export function columnNames(series) {
|
|
21
|
-
const
|
|
22
|
-
return
|
|
24
|
+
const schema = series.schema;
|
|
25
|
+
return schema.slice(1).map((c) => c.name);
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
28
|
* Which columns carry at least one finite number — "show only what the data
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tidal-ts/chart",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TimeSeriesChart — a multi-row time-series chart on @pond-ts/charts, plus the series and settings vocabulary and the prepare step. Theme, colours and settings arrive as props.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/tidal-app/tidal-ts.git",
|
|
10
10
|
"directory": "packages/chart"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://tidal-app.github.io/tidal-ts/docs/packages/chart/",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
@@ -31,27 +31,27 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@pond-ts/charts": "^0.
|
|
35
|
-
"@pond-ts/financial": "^0.
|
|
36
|
-
"@pond-ts/react": "^0.
|
|
37
|
-
"pond-ts": "^0.
|
|
34
|
+
"@pond-ts/charts": "^0.72.0",
|
|
35
|
+
"@pond-ts/financial": "^0.72.0",
|
|
36
|
+
"@pond-ts/react": "^0.72.0",
|
|
37
|
+
"pond-ts": "^0.72.0",
|
|
38
38
|
"react": "^18.2.0 || ^19.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tidal-ts/core": "0.
|
|
41
|
+
"@tidal-ts/core": "0.8.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@pond-ts/charts": "^0.
|
|
45
|
-
"@pond-ts/financial": "^0.
|
|
46
|
-
"@pond-ts/process": "0.
|
|
47
|
-
"@pond-ts/react": "^0.
|
|
44
|
+
"@pond-ts/charts": "^0.72.0",
|
|
45
|
+
"@pond-ts/financial": "^0.72.0",
|
|
46
|
+
"@pond-ts/process": "0.72.0",
|
|
47
|
+
"@pond-ts/react": "^0.72.0",
|
|
48
48
|
"@storybook/addon-essentials": "^8.5.0",
|
|
49
49
|
"@storybook/react": "^8.5.0",
|
|
50
50
|
"@storybook/react-vite": "^8.5.0",
|
|
51
51
|
"@types/react": "^18.3.18",
|
|
52
52
|
"@types/react-dom": "^18.3.5",
|
|
53
53
|
"@vitejs/plugin-react": "^4.3.4",
|
|
54
|
-
"pond-ts": "^0.
|
|
54
|
+
"pond-ts": "^0.72.0",
|
|
55
55
|
"react": "^18.3.1",
|
|
56
56
|
"react-dom": "^18.3.1",
|
|
57
57
|
"storybook": "^8.5.0",
|