@zsherman/charts 0.0.0-stage → 0.1.1
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/CHANGELOG.md +24 -0
- package/LICENSE +373 -0
- package/README.md +13 -2
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/dom/bar-list/bar-list.js +386 -0
- package/dist/dom/bar-list/bar-list.styles.js +171 -0
- package/dist/dom/bar-list/index.js +1 -0
- package/dist/dom/chart/chart.js +716 -0
- package/dist/dom/chart/chart.styles.js +165 -0
- package/dist/dom/chart/index.js +1 -0
- package/dist/dom/chart-grid/chart-grid.js +67 -0
- package/dist/dom/chart-grid/index.js +1 -0
- package/dist/dom/donut/donut.js +565 -0
- package/dist/dom/donut/donut.styles.js +111 -0
- package/dist/dom/donut/index.js +1 -0
- package/dist/dom/heat-graph/calendar.js +118 -0
- package/dist/dom/heat-graph/heat-graph.js +423 -0
- package/dist/dom/heat-graph/heat-graph.styles.js +168 -0
- package/dist/dom/heat-graph/index.js +1 -0
- package/dist/dom/heat-matrix/heat-matrix.js +346 -0
- package/dist/dom/heat-matrix/heat-matrix.styles.js +155 -0
- package/dist/dom/heat-matrix/index.js +1 -0
- package/dist/dom/heat-matrix/model.js +41 -0
- package/dist/dom/index.js +13 -0
- package/dist/dom/internal/colors.js +44 -0
- package/dist/dom/internal/floating-tip.js +83 -0
- package/dist/dom/internal/format.js +43 -0
- package/dist/dom/internal/grid-context.js +5 -0
- package/dist/dom/internal/hidden.styles.js +16 -0
- package/dist/dom/internal/legend.js +112 -0
- package/dist/dom/internal/legend.styles.js +108 -0
- package/dist/dom/internal/markers.js +101 -0
- package/dist/dom/internal/options.js +300 -0
- package/dist/dom/internal/place.js +27 -0
- package/dist/dom/internal/scheme-watch.js +73 -0
- package/dist/dom/internal/share.js +28 -0
- package/dist/dom/internal/types.js +0 -0
- package/dist/dom/row-chart/index.js +1 -0
- package/dist/dom/row-chart/model.js +59 -0
- package/dist/dom/row-chart/row-chart.js +691 -0
- package/dist/dom/row-chart/row-chart.styles.js +242 -0
- package/dist/dom/segmented-bar/index.js +1 -0
- package/dist/dom/segmented-bar/segmented-bar.js +280 -0
- package/dist/dom/segmented-bar/segmented-bar.styles.js +88 -0
- package/dist/dom/sparkline/index.js +1 -0
- package/dist/dom/sparkline/sparkline.js +145 -0
- package/dist/dom/stacked-histogram/histogram.js +137 -0
- package/dist/dom/stacked-histogram/index.js +1 -0
- package/dist/dom/stacked-histogram/stacked-histogram.js +761 -0
- package/dist/dom/stacked-histogram/stacked-histogram.styles.js +211 -0
- package/dist/dom/state-timeline/index.js +1 -0
- package/dist/dom/state-timeline/model.js +166 -0
- package/dist/dom/state-timeline/state-timeline.js +729 -0
- package/dist/dom/state-timeline/state-timeline.styles.js +171 -0
- package/dist/dom/status-history/index.js +1 -0
- package/dist/dom/status-history/status-history.js +542 -0
- package/dist/dom/status-history/status-history.styles.js +171 -0
- package/dist/solid/bar-list/bar-list.jsx +139 -0
- package/dist/solid/bar-list/bar-list.styles.jsx +171 -0
- package/dist/solid/bar-list/index.jsx +1 -0
- package/dist/solid/chart/chart.jsx +454 -0
- package/dist/solid/chart/chart.styles.jsx +165 -0
- package/dist/solid/chart/index.jsx +1 -0
- package/dist/solid/chart-grid/chart-grid.jsx +46 -0
- package/dist/solid/chart-grid/index.jsx +1 -0
- package/dist/solid/donut/donut.jsx +291 -0
- package/dist/solid/donut/donut.styles.jsx +111 -0
- package/dist/solid/donut/index.jsx +1 -0
- package/dist/solid/heat-graph/calendar.jsx +118 -0
- package/dist/solid/heat-graph/heat-graph.jsx +228 -0
- package/dist/solid/heat-graph/heat-graph.styles.jsx +168 -0
- package/dist/solid/heat-graph/index.jsx +1 -0
- package/dist/solid/heat-matrix/heat-matrix.jsx +165 -0
- package/dist/solid/heat-matrix/heat-matrix.styles.jsx +155 -0
- package/dist/solid/heat-matrix/index.jsx +1 -0
- package/dist/solid/heat-matrix/model.jsx +41 -0
- package/dist/solid/index.jsx +13 -0
- package/dist/solid/internal/colors.jsx +44 -0
- package/dist/solid/internal/floating-tip.jsx +68 -0
- package/dist/solid/internal/format.jsx +43 -0
- package/dist/solid/internal/grid-context.jsx +5 -0
- package/dist/solid/internal/hidden.styles.jsx +16 -0
- package/dist/solid/internal/legend.jsx +35 -0
- package/dist/solid/internal/legend.styles.jsx +108 -0
- package/dist/solid/internal/markers.jsx +101 -0
- package/dist/solid/internal/options.jsx +300 -0
- package/dist/solid/internal/place.jsx +27 -0
- package/dist/solid/internal/scheme-watch.jsx +73 -0
- package/dist/solid/internal/share.jsx +28 -0
- package/dist/solid/internal/types.jsx +0 -0
- package/dist/solid/row-chart/index.jsx +1 -0
- package/dist/solid/row-chart/model.jsx +59 -0
- package/dist/solid/row-chart/row-chart.jsx +312 -0
- package/dist/solid/row-chart/row-chart.styles.jsx +242 -0
- package/dist/solid/segmented-bar/index.jsx +1 -0
- package/dist/solid/segmented-bar/segmented-bar.jsx +125 -0
- package/dist/solid/segmented-bar/segmented-bar.styles.jsx +88 -0
- package/dist/solid/sparkline/index.jsx +1 -0
- package/dist/solid/sparkline/sparkline.jsx +88 -0
- package/dist/solid/stacked-histogram/histogram.jsx +137 -0
- package/dist/solid/stacked-histogram/index.jsx +1 -0
- package/dist/solid/stacked-histogram/stacked-histogram.jsx +381 -0
- package/dist/solid/stacked-histogram/stacked-histogram.styles.jsx +211 -0
- package/dist/solid/state-timeline/index.jsx +1 -0
- package/dist/solid/state-timeline/model.jsx +166 -0
- package/dist/solid/state-timeline/state-timeline.jsx +387 -0
- package/dist/solid/state-timeline/state-timeline.styles.jsx +171 -0
- package/dist/solid/status-history/index.jsx +1 -0
- package/dist/solid/status-history/status-history.jsx +279 -0
- package/dist/solid/status-history/status-history.styles.jsx +171 -0
- package/dist/styles.css +1 -0
- package/dist/types/bar-list/bar-list.d.ts +91 -0
- package/dist/types/bar-list/bar-list.styles.d.ts +148 -0
- package/dist/types/bar-list/index.d.ts +3 -0
- package/dist/types/chart/chart.d.ts +98 -0
- package/dist/types/chart/chart.styles.d.ts +145 -0
- package/dist/types/chart/index.d.ts +3 -0
- package/dist/types/chart-grid/chart-grid.d.ts +35 -0
- package/dist/types/chart-grid/index.d.ts +2 -0
- package/dist/types/donut/donut.d.ts +124 -0
- package/dist/types/donut/donut.styles.d.ts +96 -0
- package/dist/types/donut/index.d.ts +3 -0
- package/dist/types/heat-graph/calendar.d.ts +61 -0
- package/dist/types/heat-graph/heat-graph.d.ts +82 -0
- package/dist/types/heat-graph/heat-graph.styles.d.ts +141 -0
- package/dist/types/heat-graph/index.d.ts +4 -0
- package/dist/types/heat-matrix/heat-matrix.d.ts +65 -0
- package/dist/types/heat-matrix/heat-matrix.styles.d.ts +135 -0
- package/dist/types/heat-matrix/index.d.ts +3 -0
- package/dist/types/heat-matrix/model.d.ts +15 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/internal/colors.d.ts +22 -0
- package/dist/types/internal/floating-tip.d.ts +15 -0
- package/dist/types/internal/format.d.ts +7 -0
- package/dist/types/internal/grid-context.d.ts +9 -0
- package/dist/types/internal/hidden.styles.d.ts +15 -0
- package/dist/types/internal/legend.d.ts +18 -0
- package/dist/types/internal/legend.styles.d.ts +96 -0
- package/dist/types/internal/markers.d.ts +16 -0
- package/dist/types/internal/options.d.ts +59 -0
- package/dist/types/internal/place.d.ts +20 -0
- package/dist/types/internal/scheme-watch.d.ts +12 -0
- package/dist/types/internal/share.d.ts +19 -0
- package/dist/types/internal/types.d.ts +163 -0
- package/dist/types/row-chart/index.d.ts +4 -0
- package/dist/types/row-chart/model.d.ts +50 -0
- package/dist/types/row-chart/row-chart.d.ts +148 -0
- package/dist/types/row-chart/row-chart.styles.d.ts +216 -0
- package/dist/types/segmented-bar/index.d.ts +3 -0
- package/dist/types/segmented-bar/segmented-bar.d.ts +65 -0
- package/dist/types/segmented-bar/segmented-bar.styles.d.ts +75 -0
- package/dist/types/sparkline/index.d.ts +3 -0
- package/dist/types/sparkline/sparkline.d.ts +38 -0
- package/dist/types/stacked-histogram/histogram.d.ts +48 -0
- package/dist/types/stacked-histogram/index.d.ts +4 -0
- package/dist/types/stacked-histogram/stacked-histogram.d.ts +73 -0
- package/dist/types/stacked-histogram/stacked-histogram.styles.d.ts +187 -0
- package/dist/types/state-timeline/index.d.ts +3 -0
- package/dist/types/state-timeline/model.d.ts +63 -0
- package/dist/types/state-timeline/state-timeline.d.ts +108 -0
- package/dist/types/state-timeline/state-timeline.styles.d.ts +151 -0
- package/dist/types/status-history/index.d.ts +3 -0
- package/dist/types/status-history/status-history.d.ts +72 -0
- package/dist/types/status-history/status-history.styles.d.ts +150 -0
- package/docs/api.json +1346 -0
- package/docs/bar-list.md +190 -0
- package/docs/chart-grid.md +77 -0
- package/docs/chart.md +355 -0
- package/docs/donut.md +182 -0
- package/docs/heat-graph.md +121 -0
- package/docs/heat-matrix.md +108 -0
- package/docs/llms.txt +68 -0
- package/docs/row-chart.md +193 -0
- package/docs/search-index.json +291 -0
- package/docs/segmented-bar.md +128 -0
- package/docs/sparkline.md +82 -0
- package/docs/stacked-histogram.md +123 -0
- package/docs/state-timeline.md +141 -0
- package/docs/status-history.md +121 -0
- package/package.json +109 -4
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
export declare const styles: Readonly<{
|
|
3
|
+
readonly root: Readonly<{
|
|
4
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
5
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
6
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
7
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
|
|
8
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
9
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
10
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
11
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
12
|
+
}>;
|
|
13
|
+
readonly scroller: Readonly<{
|
|
14
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
|
|
15
|
+
readonly overflowX: stylex.StyleXClassNameFor<"overflowX", "auto">;
|
|
16
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
17
|
+
readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "none" | "solid">;
|
|
18
|
+
readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", "2px">;
|
|
19
|
+
readonly outlineOffset: stylex.StyleXClassNameFor<"outlineOffset", "2px">;
|
|
20
|
+
readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", string>;
|
|
21
|
+
}>;
|
|
22
|
+
readonly table: Readonly<{
|
|
23
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
24
|
+
readonly tableLayout: stylex.StyleXClassNameFor<"tableLayout", "fixed">;
|
|
25
|
+
readonly borderCollapse: stylex.StyleXClassNameFor<"borderCollapse", "separate">;
|
|
26
|
+
readonly borderSpacing: stylex.StyleXClassNameFor<"borderSpacing", "2px">;
|
|
27
|
+
readonly marginInline: stylex.StyleXClassNameFor<"marginInline", "-2px">;
|
|
28
|
+
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
29
|
+
}>;
|
|
30
|
+
readonly headerColumn: Readonly<{
|
|
31
|
+
readonly width: stylex.StyleXClassNameFor<"width", "var(--hm-header, 10rem)">;
|
|
32
|
+
}>;
|
|
33
|
+
readonly corner: Readonly<{
|
|
34
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
35
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "start">;
|
|
36
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
37
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
38
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
39
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
40
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
41
|
+
readonly textOverflow: stylex.StyleXClassNameFor<"textOverflow", "ellipsis">;
|
|
42
|
+
}>;
|
|
43
|
+
readonly columnHeader: Readonly<{
|
|
44
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
45
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
46
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
47
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", unknown>;
|
|
48
|
+
readonly color: stylex.StyleXClassNameFor<"color", unknown>;
|
|
49
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
50
|
+
readonly verticalAlign: stylex.StyleXClassNameFor<"verticalAlign", "bottom">;
|
|
51
|
+
readonly overflowWrap: stylex.StyleXClassNameFor<"overflowWrap", "anywhere">;
|
|
52
|
+
}>;
|
|
53
|
+
readonly rowHeader: Readonly<{
|
|
54
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
55
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
56
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", unknown>;
|
|
57
|
+
readonly color: stylex.StyleXClassNameFor<"color", unknown>;
|
|
58
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "start">;
|
|
59
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
60
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
61
|
+
readonly textOverflow: stylex.StyleXClassNameFor<"textOverflow", "ellipsis">;
|
|
62
|
+
}>;
|
|
63
|
+
readonly cell: Readonly<{
|
|
64
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
65
|
+
readonly height: stylex.StyleXClassNameFor<"height", "var(--hm-cell-height)">;
|
|
66
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
67
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", "2px">;
|
|
68
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
69
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
70
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
71
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
72
|
+
readonly textOverflow: stylex.StyleXClassNameFor<"textOverflow", "ellipsis">;
|
|
73
|
+
readonly forcedColorAdjust: stylex.StyleXClassNameFor<"forcedColorAdjust", "none">;
|
|
74
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", unknown>;
|
|
75
|
+
}>;
|
|
76
|
+
readonly empty: Readonly<{
|
|
77
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
78
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
79
|
+
readonly forcedColorAdjust: stylex.StyleXClassNameFor<"forcedColorAdjust", "auto">;
|
|
80
|
+
}>;
|
|
81
|
+
readonly legend: Readonly<{
|
|
82
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
83
|
+
readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
|
|
84
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
85
|
+
readonly columnGap: stylex.StyleXClassNameFor<"columnGap", string>;
|
|
86
|
+
readonly rowGap: stylex.StyleXClassNameFor<"rowGap", string>;
|
|
87
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
88
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", 0>;
|
|
89
|
+
readonly listStyle: stylex.StyleXClassNameFor<"listStyle", "none">;
|
|
90
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
91
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
92
|
+
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
93
|
+
}>;
|
|
94
|
+
readonly legendItem: Readonly<{
|
|
95
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
96
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
97
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
98
|
+
readonly unicodeBidi: stylex.StyleXClassNameFor<"unicodeBidi", "plaintext">;
|
|
99
|
+
}>;
|
|
100
|
+
readonly legendSwatch: Readonly<{
|
|
101
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
102
|
+
readonly width: stylex.StyleXClassNameFor<"width", "0.75rem">;
|
|
103
|
+
readonly height: stylex.StyleXClassNameFor<"height", "0.75rem">;
|
|
104
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", "2px">;
|
|
105
|
+
readonly forcedColorAdjust: stylex.StyleXClassNameFor<"forcedColorAdjust", "none">;
|
|
106
|
+
}>;
|
|
107
|
+
readonly emptyText: Readonly<{
|
|
108
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
109
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
110
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
111
|
+
}>;
|
|
112
|
+
}>;
|
|
113
|
+
/** Each step's fill and text: steps 1–4 dark text, step 5 light (tokens chosen and checked for it). */
|
|
114
|
+
export declare const steps: Readonly<{
|
|
115
|
+
readonly s1: Readonly<{
|
|
116
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
117
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
118
|
+
}>;
|
|
119
|
+
readonly s2: Readonly<{
|
|
120
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
121
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
122
|
+
}>;
|
|
123
|
+
readonly s3: Readonly<{
|
|
124
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
125
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
126
|
+
}>;
|
|
127
|
+
readonly s4: Readonly<{
|
|
128
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
129
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
130
|
+
}>;
|
|
131
|
+
readonly s5: Readonly<{
|
|
132
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
133
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
134
|
+
}>;
|
|
135
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeatMatrix's derivation: each cell's step on the heat scale (1–5, or 0 for a missing or muted cell) from
|
|
3
|
+
* the thresholds, and the default thresholds from the data. Plain functions, no Solid.
|
|
4
|
+
*/
|
|
5
|
+
/** The four lower bounds of steps 2–5. */
|
|
6
|
+
export type HeatThresholds = readonly [number, number, number, number];
|
|
7
|
+
/**
|
|
8
|
+
* Even steps between the smallest and largest value: the bounds of steps 2–5. Cells left out of the scale
|
|
9
|
+
* (missing, muted) don't count. All equal (or none): every value is step 1.
|
|
10
|
+
*/
|
|
11
|
+
export declare function defaultThresholds(values: Iterable<number>): HeatThresholds;
|
|
12
|
+
/** A value's step: 1 below the first bound, up to 5 at or above the last; 0 for no value. */
|
|
13
|
+
export declare function stepOf(value: number | null | undefined, thresholds: HeatThresholds): 0 | 1 | 2 | 3 | 4 | 5;
|
|
14
|
+
/** Bounds as given, if they're four finite numbers in order; else `undefined` (use the default). */
|
|
15
|
+
export declare function validThresholds(t: readonly number[] | undefined): HeatThresholds | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./bar-list/index.js";
|
|
2
|
+
export * from "./chart/index.js";
|
|
3
|
+
export * from "./chart-grid/index.js";
|
|
4
|
+
export * from "./donut/index.js";
|
|
5
|
+
export * from "./heat-graph/index.js";
|
|
6
|
+
export * from "./heat-matrix/index.js";
|
|
7
|
+
export * from "./row-chart/index.js";
|
|
8
|
+
export * from "./segmented-bar/index.js";
|
|
9
|
+
export * from "./sparkline/index.js";
|
|
10
|
+
export * from "./stacked-histogram/index.js";
|
|
11
|
+
export * from "./state-timeline/index.js";
|
|
12
|
+
export * from "./status-history/index.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ChartColor, ChartTone } from "./types.js";
|
|
2
|
+
/** A series color as CSS: a chart token name becomes its custom property. */
|
|
3
|
+
export declare function cssColor(color: ChartColor | undefined, index: number): string;
|
|
4
|
+
/**
|
|
5
|
+
* Canvas can't read custom properties or `light-dark()`, so colors are resolved through a hidden
|
|
6
|
+
* element inside the chart: its computed `color` is a concrete color in the chart's own scheme (a
|
|
7
|
+
* `<Theme scheme="dark">` subtree included), which canvas accepts.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createResolver(probe: HTMLElement): (css: string) => string;
|
|
10
|
+
/** A translucent wash of a color (area fills, the brush). */
|
|
11
|
+
export declare const wash: (css: string, percent: number) => string;
|
|
12
|
+
/**
|
|
13
|
+
* The color behind an element: the first ancestor's opaque background (a card's surface, the page). What
|
|
14
|
+
* the gaps between stacked bars and the rings around points are painted in, so they read as background
|
|
15
|
+
* whatever the chart sits on.
|
|
16
|
+
*/
|
|
17
|
+
export declare function backdrop(el: Element): string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* A status tone's color: the kit's status tokens, as Badge's dot uses them, and a neutral gray. For marks
|
|
20
|
+
* whose color means a state (passed, failed, skipped), not a series.
|
|
21
|
+
*/
|
|
22
|
+
export declare const toneColor: (tone: ChartTone) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
import type { JSX } from "@solidjs/web";
|
|
3
|
+
export interface FloatingTipProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "class" | "style" | "children"> {
|
|
4
|
+
/** The element the anchor is measured from (the plot, a row). */
|
|
5
|
+
origin: () => HTMLElement | undefined;
|
|
6
|
+
/** The anchor in `origin`'s pixels: the cursor, or the end of a bar. */
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
/** Prefer the anchor's left side (the cursor is in the plot's right half). */
|
|
10
|
+
before?: boolean;
|
|
11
|
+
/** The box's look: the caller's StyleX styles, merged under the layer's position. */
|
|
12
|
+
xstyle?: stylex.StyleXStyles;
|
|
13
|
+
children?: JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export declare function FloatingTip(props: FloatingTipProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ChartSeries, ChartXAxis, ChartAxis } from "./types.js";
|
|
2
|
+
/** Default number format: full under 10,000, compact above (12.9K), in the reader's locale. */
|
|
3
|
+
export declare function numberFormat(locale: string | undefined, max?: number): (value: number) => string;
|
|
4
|
+
/** Default x format for the tooltip heading and readout. */
|
|
5
|
+
export declare function xFormat(x: ChartXAxis | undefined, locale: string | undefined, span: number): (value: number) => string;
|
|
6
|
+
/** The formatter for one series' values. */
|
|
7
|
+
export declare function valueFormat(series: ChartSeries | undefined, y: ChartAxis | undefined, fallback: (value: number) => string): (value: number) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** What a ChartGrid gives the charts inside it. */
|
|
2
|
+
export interface ChartGridContextValue {
|
|
3
|
+
/** Cursor sync key, unless the grid's `sync` is off. */
|
|
4
|
+
syncKey: () => string | undefined;
|
|
5
|
+
/** Plot height for charts that don't set their own. */
|
|
6
|
+
height: () => number | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const ChartGridContext: import("solid-js").Context<ChartGridContextValue | null>;
|
|
9
|
+
export declare const useChartGrid: () => ChartGridContextValue | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
/** Text for assistive technology only: a row's full name, the values behind a chart drawn without its legend. */
|
|
3
|
+
export declare const hidden: Readonly<{
|
|
4
|
+
readonly visually: Readonly<{
|
|
5
|
+
readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
|
|
6
|
+
readonly width: stylex.StyleXClassNameFor<"width", "1px">;
|
|
7
|
+
readonly height: stylex.StyleXClassNameFor<"height", "1px">;
|
|
8
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", "-1px">;
|
|
9
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", 0>;
|
|
10
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
11
|
+
readonly clip: stylex.StyleXClassNameFor<"clip", "rect(0 0 0 0)">;
|
|
12
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
13
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
|
|
14
|
+
}>;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { JSX } from "@solidjs/web";
|
|
2
|
+
/** A category's color mark: decorative, the label beside it names the category. */
|
|
3
|
+
export declare function Swatch(props: {
|
|
4
|
+
color: string;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* The inside of a legend row: swatch, label (and a note under it), value and share. The row itself (an
|
|
8
|
+
* `li`, or a button inside one) is the caller's. `hidden` keeps the text from assistive technology, for a
|
|
9
|
+
* row that names itself in words.
|
|
10
|
+
*/
|
|
11
|
+
export declare function LegendEntry(props: {
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
color: string;
|
|
14
|
+
label: JSX.Element;
|
|
15
|
+
note?: JSX.Element;
|
|
16
|
+
value: string;
|
|
17
|
+
share?: string;
|
|
18
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
/**
|
|
3
|
+
* The legend list Donut and Segmented bar share: one row per category with its swatch, label, value and
|
|
4
|
+
* share. Values and shares sit in fixed columns at the end, in tabular figures, so they line up row to row.
|
|
5
|
+
*/
|
|
6
|
+
export declare const legend: Readonly<{
|
|
7
|
+
readonly list: Readonly<{
|
|
8
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
9
|
+
readonly alignContent: stylex.StyleXClassNameFor<"alignContent", "start">;
|
|
10
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
11
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
|
|
12
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
13
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", 0>;
|
|
14
|
+
readonly listStyle: stylex.StyleXClassNameFor<"listStyle", "none">;
|
|
15
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
16
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
17
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
18
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
19
|
+
}>;
|
|
20
|
+
readonly row: Readonly<{
|
|
21
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
22
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
23
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "flex-start">;
|
|
24
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
25
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
26
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
|
|
27
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", "1.75rem">;
|
|
28
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
29
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
30
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
31
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "start">;
|
|
32
|
+
}>;
|
|
33
|
+
readonly interactive: Readonly<{
|
|
34
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", unknown>;
|
|
35
|
+
readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "background-color">;
|
|
36
|
+
readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", string>;
|
|
37
|
+
}>;
|
|
38
|
+
readonly button: Readonly<{
|
|
39
|
+
readonly position: stylex.StyleXClassNameFor<"position", "relative">;
|
|
40
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
41
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
|
|
42
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", "inherit">;
|
|
43
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", "inherit">;
|
|
44
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", "inherit">;
|
|
45
|
+
readonly color: stylex.StyleXClassNameFor<"color", "inherit">;
|
|
46
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
47
|
+
readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "none" | "solid">;
|
|
48
|
+
readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", "2px">;
|
|
49
|
+
readonly outlineOffset: stylex.StyleXClassNameFor<"outlineOffset", "-2px">;
|
|
50
|
+
readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", string>;
|
|
51
|
+
}>;
|
|
52
|
+
readonly selected: Readonly<{
|
|
53
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
54
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
55
|
+
readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "solid" | null>;
|
|
56
|
+
readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", "1px" | null>;
|
|
57
|
+
readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", "Highlight" | null>;
|
|
58
|
+
}>;
|
|
59
|
+
readonly swatch: Readonly<{
|
|
60
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
61
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-block">;
|
|
62
|
+
readonly width: stylex.StyleXClassNameFor<"width", "0.625rem">;
|
|
63
|
+
readonly height: stylex.StyleXClassNameFor<"height", "0.625rem">;
|
|
64
|
+
readonly marginBlockStart: stylex.StyleXClassNameFor<"marginBlockStart", "calc((1lh - 0.625rem) / 2)">;
|
|
65
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", "2px">;
|
|
66
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--swatch)">;
|
|
67
|
+
readonly forcedColorAdjust: stylex.StyleXClassNameFor<"forcedColorAdjust", "none">;
|
|
68
|
+
}>;
|
|
69
|
+
readonly label: Readonly<{
|
|
70
|
+
readonly flex: stylex.StyleXClassNameFor<"flex", "1 1 auto">;
|
|
71
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
|
|
72
|
+
readonly overflowWrap: stylex.StyleXClassNameFor<"overflowWrap", "break-word">;
|
|
73
|
+
}>;
|
|
74
|
+
readonly note: Readonly<{
|
|
75
|
+
readonly display: stylex.StyleXClassNameFor<"display", "block">;
|
|
76
|
+
readonly marginTop: stylex.StyleXClassNameFor<"marginTop", string>;
|
|
77
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
78
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
79
|
+
}>;
|
|
80
|
+
readonly value: Readonly<{
|
|
81
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
82
|
+
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
83
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
84
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
85
|
+
readonly unicodeBidi: stylex.StyleXClassNameFor<"unicodeBidi", "plaintext">;
|
|
86
|
+
}>;
|
|
87
|
+
readonly share: Readonly<{
|
|
88
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
89
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", "3rem">;
|
|
90
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "end">;
|
|
91
|
+
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
92
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
93
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
94
|
+
readonly unicodeBidi: stylex.StyleXClassNameFor<"unicodeBidi", "plaintext">;
|
|
95
|
+
}>;
|
|
96
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reference lines and bands (`markers`): a target, a threshold, an incident window. Drawn on uPlot's
|
|
3
|
+
* canvas, bands under the series and lines over them, with their labels in a text color.
|
|
4
|
+
*/
|
|
5
|
+
import type uPlot from "uplot";
|
|
6
|
+
import type { ChartMarker } from "./types.js";
|
|
7
|
+
export interface MarkerTheme {
|
|
8
|
+
/** Resolves a CSS color to one canvas accepts. */
|
|
9
|
+
resolve: (css: string) => string;
|
|
10
|
+
/** Label color. */
|
|
11
|
+
text: string;
|
|
12
|
+
font: string;
|
|
13
|
+
}
|
|
14
|
+
/** The y values markers need in view: the y scale's range takes them in. */
|
|
15
|
+
export declare function markerExtent(markers: readonly ChartMarker[] | undefined): number[];
|
|
16
|
+
export declare function markersPlugin(markers: readonly ChartMarker[], theme: MarkerTheme): uPlot.Plugin;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props → uPlot options. Pure apart from uPlot's path builders: colors arrive resolved (canvas can't
|
|
3
|
+
* read tokens), so a theme change is a rebuild with new colors.
|
|
4
|
+
*/
|
|
5
|
+
import uPlot from "uplot";
|
|
6
|
+
import type { ChartAxis, ChartData, ChartMarker, ChartSeries, ChartXAxis } from "./types.js";
|
|
7
|
+
/** Resolved colors and the canvas font. */
|
|
8
|
+
export interface ChartTheme {
|
|
9
|
+
/** Tick labels and axis titles. */
|
|
10
|
+
text: string;
|
|
11
|
+
/** Grid lines and ticks. */
|
|
12
|
+
grid: string;
|
|
13
|
+
/** The x baseline. */
|
|
14
|
+
baseline: string;
|
|
15
|
+
/** The plot's surface: rings around hover points. */
|
|
16
|
+
surface: string;
|
|
17
|
+
/** `12px <family>`. */
|
|
18
|
+
font: string;
|
|
19
|
+
/** `500 12px <family>`. */
|
|
20
|
+
labelFont: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BuildInput {
|
|
23
|
+
series: readonly ChartSeries[];
|
|
24
|
+
x: ChartXAxis | undefined;
|
|
25
|
+
y: ChartAxis | undefined;
|
|
26
|
+
stacked: boolean;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
/** Resolved stroke per series. */
|
|
30
|
+
strokes: string[];
|
|
31
|
+
/** Resolved fill per series (bars, areas), `undefined` for a bare line. */
|
|
32
|
+
fills: (string | undefined)[];
|
|
33
|
+
theme: ChartTheme;
|
|
34
|
+
/** Hover cursor and points. */
|
|
35
|
+
cursor: boolean;
|
|
36
|
+
/** The pointer near a line or area focuses it: the other series fade. */
|
|
37
|
+
focus: boolean;
|
|
38
|
+
/** Brush along x: `zoom` sets the scale, `select` only reports the range. */
|
|
39
|
+
brush: "zoom" | "select" | false;
|
|
40
|
+
syncKey: string | undefined;
|
|
41
|
+
padding: [number, number, number, number];
|
|
42
|
+
hidden: ReadonlySet<number>;
|
|
43
|
+
/** Reference lines and bands: the y scale takes their values in. */
|
|
44
|
+
markers: readonly ChartMarker[] | undefined;
|
|
45
|
+
/** Tick format for y when the axis has none. */
|
|
46
|
+
yTicks: (value: number, ticks: number[]) => string;
|
|
47
|
+
hooks: uPlot.Hooks.Arrays;
|
|
48
|
+
plugins: uPlot.Plugin[];
|
|
49
|
+
}
|
|
50
|
+
/** The other series' opacity while one is focused. */
|
|
51
|
+
export declare const FOCUS_ALPHA = 0.25;
|
|
52
|
+
/** The smallest step between neighbouring x values (1 when there's only one). */
|
|
53
|
+
export declare function xStep(xs: ArrayLike<number | null | undefined>): number;
|
|
54
|
+
/**
|
|
55
|
+
* Stacked series: each visible series sits on the sum of the visible ones before it (hidden ones add
|
|
56
|
+
* nothing, so the stack closes up when one is toggled off). `null` counts as 0 in the stack.
|
|
57
|
+
*/
|
|
58
|
+
export declare function stackData(data: ChartData, hidden: ReadonlySet<number>): ChartData;
|
|
59
|
+
export declare function buildOptions(input: BuildInput): uPlot.Options;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** A point or a box size, in viewport pixels. */
|
|
2
|
+
export interface Point {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface Size {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
/** Space between the anchor and the tooltip. */
|
|
11
|
+
export declare const TIP_GAP = 12;
|
|
12
|
+
/** The tooltip keeps this far from the viewport's edges. */
|
|
13
|
+
export declare const TIP_MARGIN = 8;
|
|
14
|
+
/**
|
|
15
|
+
* Where a tooltip's top-left corner goes, in viewport pixels: beside its anchor (after it, or before it
|
|
16
|
+
* when `before`), centred on it vertically. A side that would leave the viewport flips to the other; when
|
|
17
|
+
* neither fits it's clamped inside. Vertically it's clamped inside the viewport, so a tooltip at the top
|
|
18
|
+
* or the bottom of the screen slides along its anchor instead of being cut off.
|
|
19
|
+
*/
|
|
20
|
+
export declare function placeTip(anchor: Point, tip: Size, viewport: Size, before: boolean): Point;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One watcher for every chart's color scheme: a single observer on the document and a single media listener,
|
|
3
|
+
* however many charts a page holds. A change rechecks only the charts inside the element that changed (a
|
|
4
|
+
* `<Theme>` subtree toggled leaves the others alone), and resolves their colors in batches (all writes, then
|
|
5
|
+
* all reads), so a page of charts costs a couple of style recalculations per toggle, not one per chart.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Calls `changed` when the colors `probe` resolves to change: its scheme or theme switched (an attribute on
|
|
9
|
+
* it or an ancestor, or the system preference). The first reading waits for a microtask, so charts mounting
|
|
10
|
+
* together are read together. Returns the cleanup.
|
|
11
|
+
*/
|
|
12
|
+
export declare function watchScheme(probe: HTMLElement, changed: () => void): () => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Part-to-whole helpers shared by Donut, Bar list and Segmented bar: what counts toward a total, a share
|
|
3
|
+
* written as a percent in the kit's locale, and the image's name written from the data. Plain functions, so
|
|
4
|
+
* each chart bundles only what it calls.
|
|
5
|
+
*/
|
|
6
|
+
/** A value that counts toward a whole: a finite number above 0, else 0 (a missing or negative reading). */
|
|
7
|
+
export declare const amount: (value: number | null | undefined) => number;
|
|
8
|
+
/** A value's share of the total, 0 to 1 (0 when the total is 0). */
|
|
9
|
+
export declare const shareOf: (value: number, total: number) => number;
|
|
10
|
+
/**
|
|
11
|
+
* A share (0 to 1) as a percent in the locale: one decimal under 10% ("4.2%"), whole above ("42%"), and
|
|
12
|
+
* "<0.1%" for a sliver that would otherwise read as nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare function shareFormat(locale: string): (share: number) => string;
|
|
15
|
+
/** The image's name, written from the data: "Revenue by region: EMEA 42%, Americas 35%, APAC 23%". */
|
|
16
|
+
export declare const describe: (title: string, parts: readonly {
|
|
17
|
+
label: string;
|
|
18
|
+
share: string;
|
|
19
|
+
}[]) => string;
|