@lilt-ui/charts 0.1.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/LICENSE +21 -0
- package/README.md +107 -0
- package/THIRD_PARTY_NOTICES.md +25 -0
- package/dist/activity-ring.d.ts +44 -0
- package/dist/analysis-BLLWEKBw.js +105 -0
- package/dist/cards/activity-ring-card.d.ts +60 -0
- package/dist/cards/area-chart-card.d.ts +19 -0
- package/dist/cards/area-chart-card.typecheck.d.ts +9 -0
- package/dist/cards/bar-chart-card.d.ts +34 -0
- package/dist/cards/cartesian-card.d.ts +206 -0
- package/dist/cards/chart-card.d.ts +77 -0
- package/dist/cards/combo-chart-card.d.ts +51 -0
- package/dist/cards/format.d.ts +36 -0
- package/dist/cards/funnel-chart-card.d.ts +62 -0
- package/dist/cards/heatmap-chart-card.d.ts +107 -0
- package/dist/cards/horizontal-bar-chart-card.d.ts +60 -0
- package/dist/cards/keys.d.ts +19 -0
- package/dist/cards/line-chart-card.d.ts +19 -0
- package/dist/cards/progress-card.d.ts +55 -0
- package/dist/cards/radar-chart-card.d.ts +93 -0
- package/dist/cards/radial-chart-card.d.ts +79 -0
- package/dist/cards/rank.d.ts +21 -0
- package/dist/cards/sankey-chart-card.d.ts +69 -0
- package/dist/cards/scatter-chart-card.d.ts +91 -0
- package/dist/cards/slope-chart-card.d.ts +73 -0
- package/dist/cards/stat-card.d.ts +68 -0
- package/dist/chart-context.d.ts +102 -0
- package/dist/chart-plot.d.ts +13 -0
- package/dist/chart.d.ts +17 -0
- package/dist/data/chart-data.d.ts +24 -0
- package/dist/data.d.ts +5 -0
- package/dist/data.js +2 -0
- package/dist/engine/analysis.d.ts +11 -0
- package/dist/engine/bars.d.ts +38 -0
- package/dist/engine/comparison.d.ts +3 -0
- package/dist/engine/composition.d.ts +6 -0
- package/dist/engine/domains.d.ts +13 -0
- package/dist/engine/geometry.d.ts +73 -0
- package/dist/engine/lifecycle.d.ts +10 -0
- package/dist/engine/lookup.d.ts +3 -0
- package/dist/engine/normalize.d.ts +21 -0
- package/dist/engine/ranking.d.ts +20 -0
- package/dist/engine/sankey.d.ts +36 -0
- package/dist/engine/scatter.d.ts +15 -0
- package/dist/engine/slope.d.ts +46 -0
- package/dist/engine/stack.d.ts +11 -0
- package/dist/export-chart-svg.d.ts +8 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.js +11309 -0
- package/dist/interaction/adaptive-readout.d.ts +16 -0
- package/dist/interaction/axis-cursor.d.ts +30 -0
- package/dist/interaction/brush-gesture.d.ts +15 -0
- package/dist/interaction/brush-view.d.ts +12 -0
- package/dist/interaction/chart-controller.d.ts +6 -0
- package/dist/interaction/chart-sync.d.ts +35 -0
- package/dist/interaction/comparison-answer.d.ts +11 -0
- package/dist/interaction/comparison-layer.d.ts +19 -0
- package/dist/interaction/comparison-tooltip.d.ts +14 -0
- package/dist/interaction/focus-overview.d.ts +10 -0
- package/dist/interaction/inspection-layer.d.ts +29 -0
- package/dist/interaction/legend.d.ts +50 -0
- package/dist/interaction/pin-marker.d.ts +12 -0
- package/dist/interaction/tooltip-context.d.ts +4 -0
- package/dist/interaction/tooltip-view.d.ts +26 -0
- package/dist/interaction/tooltip.d.ts +10 -0
- package/dist/interaction/use-category-state.d.ts +24 -0
- package/dist/interaction/use-pinned-selection.d.ts +3 -0
- package/dist/interaction/value-legend.d.ts +32 -0
- package/dist/interaction/visibility.d.ts +8 -0
- package/dist/lifecycle/loading-layer.d.ts +38 -0
- package/dist/lifecycle/skeleton-sheen.d.ts +18 -0
- package/dist/lifecycle/status-content.d.ts +6 -0
- package/dist/model/cartesian-model.d.ts +132 -0
- package/dist/model/cartesian-model.typecheck.d.ts +1 -0
- package/dist/model/use-chart-state.d.ts +6 -0
- package/dist/motion/animated-number.d.ts +54 -0
- package/dist/motion/bounded-text.d.ts +13 -0
- package/dist/motion/entrance.d.ts +9 -0
- package/dist/motion/number-format.d.ts +4 -0
- package/dist/motion/use-chart-motion.d.ts +10 -0
- package/dist/motion/use-focus-domain.d.ts +7 -0
- package/dist/motion/use-glide.d.ts +13 -0
- package/dist/motion/use-series-weights.d.ts +2 -0
- package/dist/paint.d.ts +11 -0
- package/dist/primitives/annotations.d.ts +4 -0
- package/dist/primitives/area.d.ts +8 -0
- package/dist/primitives/axes.d.ts +9 -0
- package/dist/primitives/bar-shape.d.ts +39 -0
- package/dist/primitives/bar.d.ts +7 -0
- package/dist/primitives/change-comparison.d.ts +3 -0
- package/dist/primitives/grid.d.ts +3 -0
- package/dist/primitives/interval-band.d.ts +4 -0
- package/dist/primitives/line.d.ts +8 -0
- package/dist/primitives/plot-background.d.ts +10 -0
- package/dist/primitives/reference-line.d.ts +4 -0
- package/dist/primitives/runoff.d.ts +49 -0
- package/dist/runtime/chart-runtime.d.ts +95 -0
- package/dist/styles.css +2 -0
- package/dist/toolkit/chart-brush.d.ts +3 -0
- package/dist/toolkit/chart-overview.d.ts +3 -0
- package/dist/toolkit/chart-range-summary.d.ts +5 -0
- package/dist/toolkit/chart-readout.d.ts +3 -0
- package/dist/toolkit/chart-toolbar.d.ts +3 -0
- package/dist/toolkit/comparison-details.d.ts +7 -0
- package/dist/types.d.ts +555 -0
- package/dist/use-chart-width.d.ts +5 -0
- package/media/cards-dark.webp +0 -0
- package/media/cards-light.webp +0 -0
- package/media/hero-dark.webp +0 -0
- package/media/hero-light.webp +0 -0
- package/package.json +71 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ChartCurve, ChartObservationStatus, ChartSeries } from '../types';
|
|
2
|
+
import { NormalizedData } from './normalize';
|
|
3
|
+
import { BarGeometry } from './bars';
|
|
4
|
+
import { StackMode } from './stack';
|
|
5
|
+
export interface ScreenPoint {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}
|
|
9
|
+
export interface LinearPiece {
|
|
10
|
+
kind: 'line';
|
|
11
|
+
from: ScreenPoint;
|
|
12
|
+
to: ScreenPoint;
|
|
13
|
+
}
|
|
14
|
+
export interface CubicPiece {
|
|
15
|
+
kind: 'cubic';
|
|
16
|
+
from: ScreenPoint;
|
|
17
|
+
control1: ScreenPoint;
|
|
18
|
+
control2: ScreenPoint;
|
|
19
|
+
to: ScreenPoint;
|
|
20
|
+
}
|
|
21
|
+
export type CurvePiece = LinearPiece | CubicPiece;
|
|
22
|
+
export interface GeometrySegment {
|
|
23
|
+
status?: ChartObservationStatus;
|
|
24
|
+
points: readonly ScreenPoint[];
|
|
25
|
+
pieces: readonly CurvePiece[];
|
|
26
|
+
path: string;
|
|
27
|
+
areaPath: string;
|
|
28
|
+
startX: number;
|
|
29
|
+
endX: number;
|
|
30
|
+
}
|
|
31
|
+
export interface SeriesGeometry {
|
|
32
|
+
seriesId: string;
|
|
33
|
+
curve: ChartCurve;
|
|
34
|
+
segments: readonly GeometrySegment[];
|
|
35
|
+
isolated: readonly ScreenPoint[];
|
|
36
|
+
}
|
|
37
|
+
export interface PlotGeometry {
|
|
38
|
+
series: Readonly<Record<string, SeriesGeometry>>;
|
|
39
|
+
bars: Readonly<Record<string, readonly BarGeometry[]>>;
|
|
40
|
+
bands: Readonly<Record<string, readonly string[]>>;
|
|
41
|
+
baselineY: number;
|
|
42
|
+
}
|
|
43
|
+
/** Series that stack, in chart series order, and how their layers are drawn. */
|
|
44
|
+
export interface GeometryStack {
|
|
45
|
+
series: readonly string[];
|
|
46
|
+
mode: StackMode;
|
|
47
|
+
/** Draw each layer as bar segments rather than an area band. */
|
|
48
|
+
bars: boolean;
|
|
49
|
+
/** A sum stack with values below zero: positives rise from zero and negatives hang below. */
|
|
50
|
+
signed: boolean;
|
|
51
|
+
/** Animated visibility of each layer, from 0 to 1. */
|
|
52
|
+
weights?: Readonly<Record<string, number>>;
|
|
53
|
+
}
|
|
54
|
+
export interface GeometryBuildOptions<T> {
|
|
55
|
+
plotLeft: number;
|
|
56
|
+
plotTop: number;
|
|
57
|
+
plotWidth: number;
|
|
58
|
+
plotHeight: number;
|
|
59
|
+
xDomain: readonly [number, number];
|
|
60
|
+
yDomain: readonly [number, number];
|
|
61
|
+
series: readonly ChartSeries<T>[];
|
|
62
|
+
curveBySeries: Readonly<Record<string, ChartCurve>>;
|
|
63
|
+
xInset?: number;
|
|
64
|
+
/** Grouped bars outside any stack, in slot order. */
|
|
65
|
+
barSeries?: readonly string[];
|
|
66
|
+
barGroupWidth?: number;
|
|
67
|
+
barGap?: number;
|
|
68
|
+
stack?: GeometryStack;
|
|
69
|
+
/** Series plotted against their own value scale, e.g. a rate line over revenue bars. */
|
|
70
|
+
yDomainBySeries?: Readonly<Record<string, readonly [number, number]>>;
|
|
71
|
+
}
|
|
72
|
+
export declare function buildGeometry<T>(data: NormalizedData<T>, options: GeometryBuildOptions<T>): PlotGeometry;
|
|
73
|
+
export declare function pointAtX(geometry: SeriesGeometry, x: number): ScreenPoint | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type LifecyclePhase = 'pending' | 'loading' | 'handoff' | 'revealing' | 'ready' | 'updating' | 'empty' | 'error';
|
|
2
|
+
export interface LifecycleGeneration {
|
|
3
|
+
next: () => number;
|
|
4
|
+
current: () => number;
|
|
5
|
+
isCurrent: (generation: number) => boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function createLifecycleGeneration(): LifecycleGeneration;
|
|
8
|
+
export declare function durationForPhase(phase: 'initial' | 'handoff' | 'matched-update' | 'topology-update', reducedMotion: boolean, animateIn?: boolean): number;
|
|
9
|
+
/** Preserve full data fidelity while avoiding repeated per-sample geometry tweens. */
|
|
10
|
+
export declare function skipDataTweenForWorkload(sampleCount: number, millisecondsSinceLastUpdate: number): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChartObservationStatus, ChartSeries, ChartXConfig } from '../types';
|
|
2
|
+
export interface NormalizedRow<T> {
|
|
3
|
+
datum: T;
|
|
4
|
+
sourceIndex: number;
|
|
5
|
+
x: number;
|
|
6
|
+
categoryId?: string;
|
|
7
|
+
values: Readonly<Record<string, number | null>>;
|
|
8
|
+
statuses: Readonly<Record<string, ChartObservationStatus>>;
|
|
9
|
+
intervals: Readonly<Record<string, {
|
|
10
|
+
lower: number;
|
|
11
|
+
upper: number;
|
|
12
|
+
} | null>>;
|
|
13
|
+
}
|
|
14
|
+
export interface NormalizedData<T> {
|
|
15
|
+
rows: readonly NormalizedRow<T>[];
|
|
16
|
+
series: readonly ChartSeries<T>[];
|
|
17
|
+
xType: 'time' | 'number' | 'category';
|
|
18
|
+
}
|
|
19
|
+
export declare function normalizeData<T>(data: readonly T[], series: readonly ChartSeries<T>[], x: ChartXConfig<T>): NormalizedData<T>;
|
|
20
|
+
export declare function hasFiniteValue<T>(data: NormalizedData<T>, seriesId?: string): boolean;
|
|
21
|
+
export declare function hasMatchingTopology<T>(a: NormalizedData<T>, b: NormalizedData<T>, series: readonly ChartSeries<T>[]): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RankingOrder } from '../types';
|
|
2
|
+
export interface RankingCategory<T> {
|
|
3
|
+
id: (row: T) => string;
|
|
4
|
+
label: (row: T) => string;
|
|
5
|
+
}
|
|
6
|
+
export interface RankingRow<T> {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
datum: T;
|
|
10
|
+
value: number | null;
|
|
11
|
+
}
|
|
12
|
+
export declare function normalizeRanking<T>(data: readonly T[], category: RankingCategory<T>, accessor: (row: T) => number | null): RankingRow<T>[];
|
|
13
|
+
export declare function orderRanking<T>(rows: readonly RankingRow<T>[], order: RankingOrder): RankingRow<T>[];
|
|
14
|
+
export declare function rankingDomain<T>(rows: readonly RankingRow<T>[]): readonly [number, number];
|
|
15
|
+
/** Relative geometry leaves layout and resizing to the host's available width. */
|
|
16
|
+
export declare function rankingBar(value: number | null, domain: readonly [number, number]): {
|
|
17
|
+
zero: number;
|
|
18
|
+
left: number;
|
|
19
|
+
width: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface SankeyNode {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SankeyLink {
|
|
6
|
+
id: string;
|
|
7
|
+
source: string;
|
|
8
|
+
target: string;
|
|
9
|
+
value: number | null;
|
|
10
|
+
}
|
|
11
|
+
export type ConservationPolicy = 'strict' | 'allow-loss';
|
|
12
|
+
export interface SankeyGraph<Node extends SankeyNode = SankeyNode, Link extends SankeyLink = SankeyLink> {
|
|
13
|
+
nodes: readonly Node[];
|
|
14
|
+
links: readonly Link[];
|
|
15
|
+
depth: Readonly<Record<string, number>>;
|
|
16
|
+
losses: Readonly<Record<string, number | null>>;
|
|
17
|
+
}
|
|
18
|
+
export interface PositionedSankeyNode extends SankeyNode {
|
|
19
|
+
depth: number;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
total: number;
|
|
25
|
+
}
|
|
26
|
+
export interface PositionedSankeyLink extends SankeyLink {
|
|
27
|
+
path: string;
|
|
28
|
+
width: number;
|
|
29
|
+
sourceY: number;
|
|
30
|
+
targetY: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function normalizeSankey<Node extends SankeyNode, Link extends SankeyLink>(nodes: readonly Node[], links: readonly Link[], conservation: ConservationPolicy): SankeyGraph<Node, Link>;
|
|
33
|
+
export declare function layoutSankey(graph: SankeyGraph, width: number, height: number, compact?: boolean): {
|
|
34
|
+
nodes: PositionedSankeyNode[];
|
|
35
|
+
links: PositionedSankeyLink[];
|
|
36
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ScatterPoint<T> {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
row: T;
|
|
5
|
+
x: number | null;
|
|
6
|
+
y: number | null;
|
|
7
|
+
size: number | null;
|
|
8
|
+
}
|
|
9
|
+
export interface PositionedScatterPoint<T> extends ScatterPoint<T> {
|
|
10
|
+
cx: number;
|
|
11
|
+
cy: number;
|
|
12
|
+
radius: number;
|
|
13
|
+
}
|
|
14
|
+
/** Nearest candidate wins; a repeated click can cycle coincident points. */
|
|
15
|
+
export declare function hitTestScatter<T>(points: readonly PositionedScatterPoint<T>[], x: number, y: number, selectedId: string | null, cycle?: boolean): string | null;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** One category measured at two points, with its change between them. */
|
|
2
|
+
export interface SlopeRow {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
from: number | null;
|
|
6
|
+
to: number | null;
|
|
7
|
+
/** `to − from`, or null when either end is missing. */
|
|
8
|
+
change: number | null;
|
|
9
|
+
/**
|
|
10
|
+
* Fractional change against a positive starting value, e.g. 0.12 for +12%. Null when either
|
|
11
|
+
* end is missing or the start is zero or negative, where a percentage has no honest meaning.
|
|
12
|
+
*/
|
|
13
|
+
ratio: number | null;
|
|
14
|
+
}
|
|
15
|
+
/** `change` puts the largest gain first, `to` the largest end value, `input` keeps your order. */
|
|
16
|
+
export type SlopeOrder = 'change' | 'to' | 'input';
|
|
17
|
+
/** The change between two measurements under the positive-baseline percentage policy. */
|
|
18
|
+
export declare function changeBetween(from: number | null, to: number | null): {
|
|
19
|
+
change: null;
|
|
20
|
+
ratio: null;
|
|
21
|
+
} | {
|
|
22
|
+
change: number;
|
|
23
|
+
ratio: number | null;
|
|
24
|
+
};
|
|
25
|
+
export declare function slopeRows<Row>(data: readonly Row[], category: string, from: string, to: string, order?: SlopeOrder): SlopeRow[];
|
|
26
|
+
/**
|
|
27
|
+
* One number for each end: the `sum` (default) or `mean` of the categories. `to` covers every
|
|
28
|
+
* observed later value; the change compares only categories measured at both ends, so a category
|
|
29
|
+
* that is new or has not reported yet never reads as growth or loss.
|
|
30
|
+
*/
|
|
31
|
+
export declare function slopeTotals(rows: readonly SlopeRow[], aggregate?: 'sum' | 'mean'): {
|
|
32
|
+
change: null;
|
|
33
|
+
ratio: null;
|
|
34
|
+
to: number | null;
|
|
35
|
+
} | {
|
|
36
|
+
change: number;
|
|
37
|
+
ratio: number | null;
|
|
38
|
+
to: number | null;
|
|
39
|
+
};
|
|
40
|
+
/** A value domain around both ends with a little headroom, so no dot touches an edge. */
|
|
41
|
+
export declare function slopeDomain(rows: readonly SlopeRow[]): readonly [number, number];
|
|
42
|
+
/**
|
|
43
|
+
* Move label positions apart until neighbours are at least `gap` apart, staying within
|
|
44
|
+
* [min, max] and as close to their targets as possible. Returns positions in input order.
|
|
45
|
+
*/
|
|
46
|
+
export declare function spreadLabels(targets: readonly number[], gap: number, min: number, max: number): number[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChartSeries, ChartStackMode } from '../types';
|
|
2
|
+
import { NormalizedData, NormalizedRow } from './normalize';
|
|
3
|
+
export type StackMode = ChartStackMode;
|
|
4
|
+
/** Value of the last displayed stack boundary, in the axis's units. */
|
|
5
|
+
export declare function stackInspectionValue(values: readonly (number | null)[], mode: StackMode): number | null;
|
|
6
|
+
/** Whether a sum stack has values below zero, which then stack downward from the baseline. */
|
|
7
|
+
export declare function hasNegativeContribution<T>(data: NormalizedData<T>, ids: readonly string[]): boolean;
|
|
8
|
+
export declare function validateStack<T>(data: NormalizedData<T>, series: readonly ChartSeries<T>[], mode?: StackMode): void;
|
|
9
|
+
/** A missing contribution makes the total unknown, not zero. Hidden series do not contribute. */
|
|
10
|
+
export declare function stackTotal<T>(row: NormalizedRow<T>, ids: readonly string[]): number | null;
|
|
11
|
+
export declare function stackDomainData<T>(data: NormalizedData<T>, series: readonly ChartSeries<T>[], mode?: StackMode): NormalizedData<T>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Browser-side static export for SVG-backed chart plots. HTML readouts and legends are not included. */
|
|
2
|
+
export interface ChartSvgExportOptions {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
/** Defaults to the chart's resolved --lilt-surface color. */
|
|
6
|
+
background?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function serializeChartSvg(root: Element, options: ChartSvgExportOptions): string;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export { Chart, useChartComparison } from './runtime/chart-runtime';
|
|
2
|
+
export { createCartesianChartModel, useCartesianChartModel, useCartesianModelState, } from './model/cartesian-model';
|
|
3
|
+
export { useChartState } from './model/use-chart-state';
|
|
4
|
+
export type { CartesianChartModel, CartesianModelState, CartesianSummaryQuery, CartesianSummaryResult, } from './model/cartesian-model';
|
|
5
|
+
export { ComparisonDetails } from './toolkit/comparison-details';
|
|
6
|
+
export type { ComparisonDetailsProps } from './toolkit/comparison-details';
|
|
7
|
+
export { ChartPlot } from './chart-plot';
|
|
8
|
+
export { ChartToolbar } from './toolkit/chart-toolbar';
|
|
9
|
+
export { ChartReadout } from './toolkit/chart-readout';
|
|
10
|
+
export { ChartOverview } from './toolkit/chart-overview';
|
|
11
|
+
export { ChartBrush } from './toolkit/chart-brush';
|
|
12
|
+
export { Area } from './primitives/area';
|
|
13
|
+
export { IntervalBand } from './primitives/interval-band';
|
|
14
|
+
export { Line } from './primitives/line';
|
|
15
|
+
export { Bar } from './primitives/bar';
|
|
16
|
+
export type { SankeyNode, SankeyLink, ConservationPolicy } from './engine/sankey';
|
|
17
|
+
export { serializeChartSvg } from './export-chart-svg';
|
|
18
|
+
export type { ChartSvgExportOptions } from './export-chart-svg';
|
|
19
|
+
export { Grid } from './primitives/grid';
|
|
20
|
+
export { XAxis, YAxis } from './primitives/axes';
|
|
21
|
+
export { Tooltip } from './interaction/tooltip';
|
|
22
|
+
export { Legend } from './interaction/legend';
|
|
23
|
+
export { ValueLegend, type ValueLegendEntry, type ValueLegendProps, } from './interaction/value-legend';
|
|
24
|
+
export { createChartController } from './interaction/chart-controller';
|
|
25
|
+
export { useChartSync } from './interaction/chart-sync';
|
|
26
|
+
export type { ChartSyncPosition } from './interaction/chart-sync';
|
|
27
|
+
export { Annotations, ReferenceBand } from './primitives/annotations';
|
|
28
|
+
export { ReferenceLine } from './primitives/reference-line';
|
|
29
|
+
export { ChangeComparison } from './primitives/change-comparison';
|
|
30
|
+
export { AnimatedNumber } from './motion/animated-number';
|
|
31
|
+
export type { AnimatedNumberProps, AnimatedNumberVariant } from './motion/animated-number';
|
|
32
|
+
export type { ChartAxisStyle, ChartBackground, ChartPalette, ChartHoverReadout, ChartHoverStyle, ChartTooltipIndicator, ChartSurface, AreaProps, IntervalBandProps, ReferenceLineProps, BarProps, ChartCurve, ChartFillTreatment, ChartObservationStatus, ChartMargins, ChartMotion, ChartProps, ChartPlotProps, ChartToolbarProps, ChartReadoutProps, ChartOverviewProps, ChartBrushProps, ChartSeries, ChartStyle, ChartLineStyle, ChartAreaStyle, ChartBarStyle, ChartBarAppearance, ChartBarLayout, ChartBars, ChartStack, ChartStackMode, ChartStatus, ChartXConfig, ChartYConfig, ChartSelection, ChartAnnotation, ChartCompareConfig, ChartComparison, ChartComparisonSeries, ChartComparisonResult, ChartComparisonContext, ChartController, ChartControllerInspection, ChartControllerSnapshot, ChartFocusConfig, ChartLiveConfig, ChartPercentagePolicy, ChartRange, ChangeComparisonProps, AnnotationsProps, ReferenceBandProps, LegendProps, LineProps, NumericXConfig, CategoryXConfig, PrimitiveProps, GridProps, TimeXConfig, TooltipProps, ChartTooltipContext, ChartLegendValue, XAxisProps, YAxisProps, } from './types';
|
|
33
|
+
export { summarizeRange, toChartCsv } from './data/chart-data';
|
|
34
|
+
export { funnelRows as summarizeFunnelStages } from './engine/analysis';
|
|
35
|
+
export type { FunnelRow as FunnelStageSummary } from './engine/analysis';
|
|
36
|
+
export type { ChartSummary, CsvColumn } from './data/chart-data';
|
|
37
|
+
export { ChartRangeSummary } from './toolkit/chart-range-summary';
|
|
38
|
+
export type { ChartRangeSummaryProps } from './toolkit/chart-range-summary';
|
|
39
|
+
export { AreaChartCard } from './cards/area-chart-card';
|
|
40
|
+
export type { AreaChartCardProps, CardSeries, CardRange } from './cards/area-chart-card';
|
|
41
|
+
export { LineChartCard } from './cards/line-chart-card';
|
|
42
|
+
export type { LineChartCardProps } from './cards/line-chart-card';
|
|
43
|
+
export { BarChartCard } from './cards/bar-chart-card';
|
|
44
|
+
export type { BarChartCardProps } from './cards/bar-chart-card';
|
|
45
|
+
export type { CardForecast, CardTarget, CartesianCardProps } from './cards/cartesian-card';
|
|
46
|
+
export { StatCard } from './cards/stat-card';
|
|
47
|
+
export type { StatCardProps, StatCardChart } from './cards/stat-card';
|
|
48
|
+
export type { CardAggregate } from './cards/format';
|
|
49
|
+
export { HorizontalBarChartCard } from './cards/horizontal-bar-chart-card';
|
|
50
|
+
export type { HorizontalBarChartCardProps } from './cards/horizontal-bar-chart-card';
|
|
51
|
+
export { ComboChartCard } from './cards/combo-chart-card';
|
|
52
|
+
export type { ComboChartCardProps, ComboLineSeries } from './cards/combo-chart-card';
|
|
53
|
+
export { RadialChartCard } from './cards/radial-chart-card';
|
|
54
|
+
export type { RadialChartCardProps, RadialChartCardVariant } from './cards/radial-chart-card';
|
|
55
|
+
export { ProgressCard } from './cards/progress-card';
|
|
56
|
+
export type { ProgressCardProps, ProgressRange } from './cards/progress-card';
|
|
57
|
+
export { FunnelChartCard } from './cards/funnel-chart-card';
|
|
58
|
+
export type { FunnelChartCardProps } from './cards/funnel-chart-card';
|
|
59
|
+
export { HeatmapChartCard } from './cards/heatmap-chart-card';
|
|
60
|
+
export type { HeatmapAggregate, HeatmapChartCardProps } from './cards/heatmap-chart-card';
|
|
61
|
+
export { ScatterChartCard } from './cards/scatter-chart-card';
|
|
62
|
+
export type { ScatterAggregate, ScatterChartCardProps } from './cards/scatter-chart-card';
|
|
63
|
+
export { SankeyChartCard } from './cards/sankey-chart-card';
|
|
64
|
+
export type { SankeyChartCardProps } from './cards/sankey-chart-card';
|
|
65
|
+
export { RadarChartCard } from './cards/radar-chart-card';
|
|
66
|
+
export type { RadarAggregate, RadarChartCardProps } from './cards/radar-chart-card';
|
|
67
|
+
export { SlopeChartCard } from './cards/slope-chart-card';
|
|
68
|
+
export type { SlopeChartCardProps, SlopeOrder } from './cards/slope-chart-card';
|
|
69
|
+
export { ActivityRingCard } from './cards/activity-ring-card';
|
|
70
|
+
export type { ActivityAggregate, ActivityRingCardProps } from './cards/activity-ring-card';
|
|
71
|
+
export { ChartCard, ChartCardHeader, ChartCardTitle, ChartCardValue, ChartCardDelta, ChartCardCaption, ChartCardRange, CardBadge, } from './cards/chart-card';
|
|
72
|
+
export type { ChartCardProps, ChartCardHeaderProps, ChartCardValueProps, ChartCardDeltaProps, ChartCardRangeProps, ChartCardRangeOption, CardBadgeProps, } from './cards/chart-card';
|
|
73
|
+
export type { KeysOfType, NumericKey, TextKey, XKey, XKind } from './cards/keys';
|