@zsherman/charts 0.0.0-stage → 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/CHANGELOG.md +7 -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 +104 -4
package/docs/api.json
ADDED
|
@@ -0,0 +1,1346 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chart": {
|
|
3
|
+
"components": {
|
|
4
|
+
"Chart": {
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "class",
|
|
8
|
+
"type": "ClassValue",
|
|
9
|
+
"description": "Extra classes on the root. Unlayered app CSS wins over the chart's.",
|
|
10
|
+
"required": false,
|
|
11
|
+
"from": "kit"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "controller",
|
|
15
|
+
"type": "((controller: ChartController) => void)",
|
|
16
|
+
"description": "Receives the chart's controller once it mounts: push data, set ranges, reach uPlot.",
|
|
17
|
+
"required": false,
|
|
18
|
+
"from": "kit"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "cursor",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": "true",
|
|
24
|
+
"description": "Show the cursor line and points on hover.",
|
|
25
|
+
"required": false,
|
|
26
|
+
"from": "kit"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "data",
|
|
30
|
+
"type": "AlignedData",
|
|
31
|
+
"description": "`[x, ...ys]`: x values first, then one array per series. Updates without rebuilding the chart.",
|
|
32
|
+
"required": true,
|
|
33
|
+
"from": "kit"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "description",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "A longer description read after the label (a trend, the peak).",
|
|
39
|
+
"required": false,
|
|
40
|
+
"from": "kit"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "focus",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": "true",
|
|
46
|
+
"description": "Fade the other series while one is focused: the pointer near a line or an area, or a legend entry hovered or focused (any series type). The tooltip sets the focused series' row apart.",
|
|
47
|
+
"required": false,
|
|
48
|
+
"from": "kit"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "height",
|
|
52
|
+
"type": "number",
|
|
53
|
+
"default": "240",
|
|
54
|
+
"description": "The plot's height in pixels, axes included (the legend and title sit outside it). The width follows the container.",
|
|
55
|
+
"required": false,
|
|
56
|
+
"from": "kit"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "hooks",
|
|
60
|
+
"type": "Arrays",
|
|
61
|
+
"description": "uPlot hooks of your own.",
|
|
62
|
+
"required": false,
|
|
63
|
+
"from": "kit"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "label",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "What the chart shows, for assistive technology: the metric, the period and the main finding (\"Requests per minute, last hour: steady at about 1,200\"). The canvas has no other name.",
|
|
69
|
+
"required": true,
|
|
70
|
+
"from": "kit"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "labels",
|
|
74
|
+
"type": "Partial<ChartLabels>",
|
|
75
|
+
"description": "The chart's built-in strings, in your words or language (app-wide: `LocaleProvider messages.chart`).",
|
|
76
|
+
"required": false,
|
|
77
|
+
"from": "kit"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "legend",
|
|
81
|
+
"type": "\"live\" | boolean",
|
|
82
|
+
"description": "The series legend under the plot; each entry toggles its series. `\"live\"` also shows each value at the cursor (the latest value otherwise). Defaults to on for two or more series.",
|
|
83
|
+
"required": false,
|
|
84
|
+
"from": "kit"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "markers",
|
|
88
|
+
"type": "ChartMarker[]",
|
|
89
|
+
"description": "Reference lines and bands: a target or a threshold on y, a deploy or an incident on x. The y axis keeps them in view, and their labels are read out after the chart's label.",
|
|
90
|
+
"required": false,
|
|
91
|
+
"from": "kit"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "onCursor",
|
|
95
|
+
"type": "((point: ChartPoint | null) => void)",
|
|
96
|
+
"description": "Called when the cursor moves to another point, or the focused series changes, with what's under it; `null` when it leaves the plot. For your own legend, a readout beside the chart, or the matching row of a table. Fires for the keyboard's cursor and a ChartGrid's shared one too.",
|
|
97
|
+
"required": false,
|
|
98
|
+
"from": "kit"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "onSelect",
|
|
102
|
+
"type": "((range: ChartRange) => void)",
|
|
103
|
+
"description": "Called with the dragged x range instead of zooming (brush selection; set `zoom={false}`).",
|
|
104
|
+
"required": false,
|
|
105
|
+
"from": "kit"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "onZoom",
|
|
109
|
+
"type": "((range: ChartRange | null) => void)",
|
|
110
|
+
"description": "Called after a zoom with the new x range, and with `null` when the chart zooms back out.",
|
|
111
|
+
"required": false,
|
|
112
|
+
"from": "kit"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "padding",
|
|
116
|
+
"type": "[number, number, number, number]",
|
|
117
|
+
"description": "Space around the plot in pixels: `[top, right, bottom, left]`.",
|
|
118
|
+
"required": false,
|
|
119
|
+
"from": "kit"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "plugins",
|
|
123
|
+
"type": "Plugin[]",
|
|
124
|
+
"description": "uPlot plugins of your own (annotations, custom drawing).",
|
|
125
|
+
"required": false,
|
|
126
|
+
"from": "kit"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "series",
|
|
130
|
+
"type": "ChartSeries[]",
|
|
131
|
+
"description": "One entry per y array, in the same order.",
|
|
132
|
+
"required": true,
|
|
133
|
+
"from": "kit"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "stacked",
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"description": "Stack the series: each sits on the ones before it. The tooltip and legend show each series' own value.",
|
|
139
|
+
"required": false,
|
|
140
|
+
"from": "kit"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "syncKey",
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "Charts with the same key share a cursor. Charts in a ChartGrid share one by default.",
|
|
146
|
+
"required": false,
|
|
147
|
+
"from": "kit"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "title",
|
|
151
|
+
"type": "Element",
|
|
152
|
+
"description": "A visible title above the plot. Leave it out when the page already names the chart.",
|
|
153
|
+
"required": false,
|
|
154
|
+
"from": "kit"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "tooltip",
|
|
158
|
+
"type": "boolean | ChartTooltip",
|
|
159
|
+
"default": "true",
|
|
160
|
+
"description": "The tooltip at the cursor, also driven by the keyboard (arrow keys on the focused plot).",
|
|
161
|
+
"required": false,
|
|
162
|
+
"from": "kit"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "x",
|
|
166
|
+
"type": "ChartXAxis",
|
|
167
|
+
"description": "The x axis: time (the default), numbers or categories.",
|
|
168
|
+
"required": false,
|
|
169
|
+
"from": "kit"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "y",
|
|
173
|
+
"type": "ChartAxis",
|
|
174
|
+
"description": "The y axis.",
|
|
175
|
+
"required": false,
|
|
176
|
+
"from": "kit"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "zoom",
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"default": "true",
|
|
182
|
+
"description": "Drag across the plot to zoom the x axis; double-click to zoom out.",
|
|
183
|
+
"required": false,
|
|
184
|
+
"from": "kit"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"dataAttributes": [],
|
|
188
|
+
"cssVariables": [],
|
|
189
|
+
"state": []
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"sparkline": {
|
|
194
|
+
"components": {
|
|
195
|
+
"Sparkline": {
|
|
196
|
+
"props": [
|
|
197
|
+
{
|
|
198
|
+
"name": "area",
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"description": "Fill a wash under the line.",
|
|
201
|
+
"required": false,
|
|
202
|
+
"from": "kit"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "class",
|
|
206
|
+
"type": "ClassValue",
|
|
207
|
+
"description": "Extra classes on the root.",
|
|
208
|
+
"required": false,
|
|
209
|
+
"from": "kit"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "color",
|
|
213
|
+
"type": "ChartColor",
|
|
214
|
+
"default": "\"chart-1\"",
|
|
215
|
+
"description": "The line's color: a chart token (`chart-1` … `chart-8`) or any CSS color.",
|
|
216
|
+
"required": false,
|
|
217
|
+
"from": "kit"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "data",
|
|
221
|
+
"type": "readonly (number | null)[] | AlignedData",
|
|
222
|
+
"description": "The values, oldest first; or `[x, y]` aligned data when the points aren't evenly spaced.",
|
|
223
|
+
"required": true,
|
|
224
|
+
"from": "kit"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "dot",
|
|
228
|
+
"type": "boolean",
|
|
229
|
+
"description": "Mark the latest value with a dot: where \"now\" is.",
|
|
230
|
+
"required": false,
|
|
231
|
+
"from": "kit"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "height",
|
|
235
|
+
"type": "number",
|
|
236
|
+
"default": "32",
|
|
237
|
+
"description": "Height in pixels. The width follows the container.",
|
|
238
|
+
"required": false,
|
|
239
|
+
"from": "kit"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "label",
|
|
243
|
+
"type": "string",
|
|
244
|
+
"description": "The trend in words: the metric, the period and its direction (\"Revenue, last 30 days: up 12%\").",
|
|
245
|
+
"required": true,
|
|
246
|
+
"from": "kit"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "width",
|
|
250
|
+
"type": "number",
|
|
251
|
+
"default": "1.5",
|
|
252
|
+
"description": "Line width in pixels.",
|
|
253
|
+
"required": false,
|
|
254
|
+
"from": "kit"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"dataAttributes": [],
|
|
258
|
+
"cssVariables": [],
|
|
259
|
+
"state": []
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"chart-grid": {
|
|
264
|
+
"components": {
|
|
265
|
+
"ChartGrid": {
|
|
266
|
+
"props": [
|
|
267
|
+
{
|
|
268
|
+
"name": "chartHeight",
|
|
269
|
+
"type": "number",
|
|
270
|
+
"description": "Plot height for charts that don't set `height`.",
|
|
271
|
+
"required": false,
|
|
272
|
+
"from": "kit"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "children",
|
|
276
|
+
"type": "Element",
|
|
277
|
+
"description": "The charts: `Chart` elements, each with a `title`.",
|
|
278
|
+
"required": true,
|
|
279
|
+
"from": "kit"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "class",
|
|
283
|
+
"type": "ClassValue",
|
|
284
|
+
"description": "Extra classes on the root.",
|
|
285
|
+
"required": false,
|
|
286
|
+
"from": "kit"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "columns",
|
|
290
|
+
"type": "number",
|
|
291
|
+
"description": "A fixed number of columns instead (they still shrink to fit).",
|
|
292
|
+
"required": false,
|
|
293
|
+
"from": "kit"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "label",
|
|
297
|
+
"type": "string",
|
|
298
|
+
"description": "Names the panel and its period for assistive technology (\"Network, last hour\").",
|
|
299
|
+
"required": true,
|
|
300
|
+
"from": "kit"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "minColumnWidth",
|
|
304
|
+
"type": "number",
|
|
305
|
+
"default": "320",
|
|
306
|
+
"description": "The narrowest a column gets, in pixels: the grid fits as many columns as the width allows.",
|
|
307
|
+
"required": false,
|
|
308
|
+
"from": "kit"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "sync",
|
|
312
|
+
"type": "boolean",
|
|
313
|
+
"default": "true",
|
|
314
|
+
"description": "One cursor for every chart in the grid: point at a moment in one, read it in all. Turn it off when the charts don't share an x axis.",
|
|
315
|
+
"required": false,
|
|
316
|
+
"from": "kit"
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"dataAttributes": [],
|
|
320
|
+
"cssVariables": [],
|
|
321
|
+
"state": []
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"heat-graph": {
|
|
326
|
+
"components": {
|
|
327
|
+
"HeatGraph": {
|
|
328
|
+
"props": [
|
|
329
|
+
{
|
|
330
|
+
"name": "cellGap",
|
|
331
|
+
"type": "number",
|
|
332
|
+
"default": "3",
|
|
333
|
+
"description": "Space between cells in pixels.",
|
|
334
|
+
"required": false,
|
|
335
|
+
"from": "kit"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "cellSize",
|
|
339
|
+
"type": "number",
|
|
340
|
+
"description": "A fixed cell size in pixels. Without it, cells share the width (a year needs about 700px).",
|
|
341
|
+
"required": false,
|
|
342
|
+
"from": "kit"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "class",
|
|
346
|
+
"type": "ClassValue",
|
|
347
|
+
"description": "Extra classes on the root.",
|
|
348
|
+
"required": false,
|
|
349
|
+
"from": "kit"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "color",
|
|
353
|
+
"type": "ChartColor",
|
|
354
|
+
"default": "\"chart-1\"",
|
|
355
|
+
"description": "The ramp's color, from a wash over the muted surface (level 1) to the full color (level 4).",
|
|
356
|
+
"required": false,
|
|
357
|
+
"from": "kit"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "data",
|
|
361
|
+
"type": "readonly HeatGraphDatum[]",
|
|
362
|
+
"description": "One entry per day (entries on the same day add up). Days without one count as 0.",
|
|
363
|
+
"required": true,
|
|
364
|
+
"from": "kit"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "dayLabels",
|
|
368
|
+
"type": "boolean",
|
|
369
|
+
"default": "true",
|
|
370
|
+
"description": "Weekday names beside the rows (every other one).",
|
|
371
|
+
"required": false,
|
|
372
|
+
"from": "kit"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "end",
|
|
376
|
+
"type": "string | Date",
|
|
377
|
+
"description": "The last day shown. Defaults to the latest day in `data`. Set both to draw an empty period.",
|
|
378
|
+
"required": false,
|
|
379
|
+
"from": "kit"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "label",
|
|
383
|
+
"type": "string",
|
|
384
|
+
"description": "What the graph shows, for assistive technology: the measure, the period and the takeaway.",
|
|
385
|
+
"required": true,
|
|
386
|
+
"from": "kit"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "labels",
|
|
390
|
+
"type": "Partial<HeatGraphLabels>",
|
|
391
|
+
"description": "The graph's words, in your wording or language (app-wide: `LocaleProvider messages.heatGraph`).",
|
|
392
|
+
"required": false,
|
|
393
|
+
"from": "kit"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "legend",
|
|
397
|
+
"type": "boolean",
|
|
398
|
+
"default": "true",
|
|
399
|
+
"description": "The Less → More legend.",
|
|
400
|
+
"required": false,
|
|
401
|
+
"from": "kit"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "monthLabels",
|
|
405
|
+
"type": "boolean",
|
|
406
|
+
"default": "true",
|
|
407
|
+
"description": "Month names over the weeks.",
|
|
408
|
+
"required": false,
|
|
409
|
+
"from": "kit"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "onSelectDay",
|
|
413
|
+
"type": "((day: HeatGraphDay) => void)",
|
|
414
|
+
"description": "Called when a day is clicked or chosen with Enter or Space: open that day's activity.",
|
|
415
|
+
"required": false,
|
|
416
|
+
"from": "kit"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "shape",
|
|
420
|
+
"type": "\"circle\" | \"rounded\" | \"square\"",
|
|
421
|
+
"default": "\"rounded\"",
|
|
422
|
+
"description": "The mark: `rounded` squares read as a calendar; `circle` pairs with `sizeEncoding=\"value\"`.",
|
|
423
|
+
"required": false,
|
|
424
|
+
"from": "kit"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "sizeEncoding",
|
|
428
|
+
"type": "\"fixed\" | \"value\"",
|
|
429
|
+
"default": "\"fixed\"",
|
|
430
|
+
"description": "`\"value\"` sizes each mark by its count too (its area), so magnitude reads without the legend. A zero day keeps a small mark; the whole cell stays the hover and click target.",
|
|
431
|
+
"required": false,
|
|
432
|
+
"from": "kit"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"name": "start",
|
|
436
|
+
"type": "string | Date",
|
|
437
|
+
"description": "The first day shown (`\"2026-01-01\"` or a `Date`). Defaults to the earliest day in `data`.",
|
|
438
|
+
"required": false,
|
|
439
|
+
"from": "kit"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "thresholds",
|
|
443
|
+
"type": "[number, number, number, number]",
|
|
444
|
+
"description": "The lower bounds of levels 1–4, such as `[1, 5, 10, 20]`. Defaults to quarters of the busiest day. Fix them when graphs side by side must share a scale.",
|
|
445
|
+
"required": false,
|
|
446
|
+
"from": "kit"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "weekStart",
|
|
450
|
+
"type": "\"monday\" | \"sunday\"",
|
|
451
|
+
"description": "The weekday each column starts on. Defaults to the locale's (Monday in most, Sunday in the US).",
|
|
452
|
+
"required": false,
|
|
453
|
+
"from": "kit"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"dataAttributes": [],
|
|
457
|
+
"cssVariables": [],
|
|
458
|
+
"state": []
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"stacked-histogram": {
|
|
463
|
+
"components": {
|
|
464
|
+
"StackedHistogram": {
|
|
465
|
+
"props": [
|
|
466
|
+
{
|
|
467
|
+
"name": "bucketMs",
|
|
468
|
+
"type": "number",
|
|
469
|
+
"description": "The width of a bucket in milliseconds (`60_000` for minutes).",
|
|
470
|
+
"required": true,
|
|
471
|
+
"from": "kit"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "buckets",
|
|
475
|
+
"type": "readonly HistogramBucket[]",
|
|
476
|
+
"description": "One entry per time bucket, oldest first. Buckets outside `domain` aren't drawn.",
|
|
477
|
+
"required": true,
|
|
478
|
+
"from": "kit"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "class",
|
|
482
|
+
"type": "ClassValue",
|
|
483
|
+
"description": "Extra classes on the root.",
|
|
484
|
+
"required": false,
|
|
485
|
+
"from": "kit"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "domain",
|
|
489
|
+
"type": "HistogramRange",
|
|
490
|
+
"description": "The time window drawn (`to` exclusive). Defaults to the buckets' own span; set it to what `onZoom` chose.",
|
|
491
|
+
"required": false,
|
|
492
|
+
"from": "kit"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "formatValue",
|
|
496
|
+
"type": "((value: number) => string)",
|
|
497
|
+
"description": "How a count is written. Defaults to the locale's number format.",
|
|
498
|
+
"required": false,
|
|
499
|
+
"from": "kit"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "height",
|
|
503
|
+
"type": "number",
|
|
504
|
+
"default": "64",
|
|
505
|
+
"description": "The bars' height in pixels.",
|
|
506
|
+
"required": false,
|
|
507
|
+
"from": "kit"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "label",
|
|
511
|
+
"type": "string",
|
|
512
|
+
"description": "What is counted, for assistive technology: the total and the measure (\"412 log events by level\").",
|
|
513
|
+
"required": true,
|
|
514
|
+
"from": "kit"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"name": "labels",
|
|
518
|
+
"type": "Partial<StackedHistogramLabels>",
|
|
519
|
+
"description": "The histogram's words, in your wording or language (app-wide: `LocaleProvider messages.stackedHistogram`).",
|
|
520
|
+
"required": false,
|
|
521
|
+
"from": "kit"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "legend",
|
|
525
|
+
"type": "boolean",
|
|
526
|
+
"description": "The series names under the axis. On by default for two or more series.",
|
|
527
|
+
"required": false,
|
|
528
|
+
"from": "kit"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "onZoom",
|
|
532
|
+
"type": "((range: HistogramRange) => void)",
|
|
533
|
+
"description": "Called with the range a person selected (by dragging, or Shift with the arrow keys) and chose to zoom to. Without it, the histogram only reads out its buckets.",
|
|
534
|
+
"required": false,
|
|
535
|
+
"from": "kit"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "series",
|
|
539
|
+
"type": "readonly HistogramSeries[]",
|
|
540
|
+
"description": "The stacked series, bottom to top: the first sits on the baseline.",
|
|
541
|
+
"required": true,
|
|
542
|
+
"from": "kit"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "timeZone",
|
|
546
|
+
"type": "string",
|
|
547
|
+
"description": "The time zone times are written in and ticks fall on (`\"UTC\"`, `\"Europe/Berlin\"`). Defaults to the runtime's: set it when the server renders, so server and browser write the same times.",
|
|
548
|
+
"required": false,
|
|
549
|
+
"from": "kit"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"dataAttributes": [],
|
|
553
|
+
"cssVariables": [],
|
|
554
|
+
"state": []
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"status-history": {
|
|
559
|
+
"components": {
|
|
560
|
+
"StatusHistory": {
|
|
561
|
+
"props": [
|
|
562
|
+
{
|
|
563
|
+
"name": "axis",
|
|
564
|
+
"type": "boolean",
|
|
565
|
+
"description": "Dates under the bars, for a long range without `startLabel` and `endLabel`.",
|
|
566
|
+
"required": false,
|
|
567
|
+
"from": "kit"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"name": "class",
|
|
571
|
+
"type": "ClassValue",
|
|
572
|
+
"description": "Extra classes on the root.",
|
|
573
|
+
"required": false,
|
|
574
|
+
"from": "kit"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "colors",
|
|
578
|
+
"type": "Partial<Record<StatusState, ChartColor>>",
|
|
579
|
+
"description": "Each state's color: a chart token (`chart-1` … `chart-8`) or any CSS color. Defaults to the kit's status colors.",
|
|
580
|
+
"required": false,
|
|
581
|
+
"from": "kit"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "data",
|
|
585
|
+
"type": "readonly StatusEntry<T>[]",
|
|
586
|
+
"description": "One entry per interval, oldest first. Each draws one bar; bars are never merged.",
|
|
587
|
+
"required": true,
|
|
588
|
+
"from": "kit"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "endLabel",
|
|
592
|
+
"type": "Element",
|
|
593
|
+
"description": "Below the end: where it ends (\"Now\").",
|
|
594
|
+
"required": false,
|
|
595
|
+
"from": "kit"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "formatTime",
|
|
599
|
+
"type": "((date: Date) => string)",
|
|
600
|
+
"description": "How an interval's time is written in its name and tooltip. Defaults to the locale's date, and time when intervals are shorter than a day.",
|
|
601
|
+
"required": false,
|
|
602
|
+
"from": "kit"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "gap",
|
|
606
|
+
"type": "number",
|
|
607
|
+
"default": "2",
|
|
608
|
+
"description": "Space between bars in pixels (it narrows when the bars run out of room).",
|
|
609
|
+
"required": false,
|
|
610
|
+
"from": "kit"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "height",
|
|
614
|
+
"type": "number",
|
|
615
|
+
"default": "32",
|
|
616
|
+
"description": "The bars' height in pixels.",
|
|
617
|
+
"required": false,
|
|
618
|
+
"from": "kit"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "label",
|
|
622
|
+
"type": "string",
|
|
623
|
+
"description": "The history in words, for assistive technology: what is checked, the period and the result.",
|
|
624
|
+
"required": true,
|
|
625
|
+
"from": "kit"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "labels",
|
|
629
|
+
"type": "Partial<StatusHistoryLabels>",
|
|
630
|
+
"description": "The status words, in your wording or language (app-wide: `LocaleProvider messages.statusHistory`).",
|
|
631
|
+
"required": false,
|
|
632
|
+
"from": "kit"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "legend",
|
|
636
|
+
"type": "boolean",
|
|
637
|
+
"description": "The states shown, each named with its count.",
|
|
638
|
+
"required": false,
|
|
639
|
+
"from": "kit"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "onSelectEntry",
|
|
643
|
+
"type": "((entry: StatusEntry<T>, index: number) => void)",
|
|
644
|
+
"description": "Called when a bar is clicked or chosen with Enter or Space: open that interval's details.",
|
|
645
|
+
"required": false,
|
|
646
|
+
"from": "kit"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"name": "startLabel",
|
|
650
|
+
"type": "Element",
|
|
651
|
+
"description": "Below the start: where the range begins (\"90 hours ago\").",
|
|
652
|
+
"required": false,
|
|
653
|
+
"from": "kit"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"name": "summary",
|
|
657
|
+
"type": "Element",
|
|
658
|
+
"description": "Above the end: the result (\"99.2% uptime\").",
|
|
659
|
+
"required": false,
|
|
660
|
+
"from": "kit"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "timeZone",
|
|
664
|
+
"type": "string",
|
|
665
|
+
"description": "The time zone times are written in (`\"UTC\"`, `\"Europe/Berlin\"`). Defaults to the runtime's: set it when the server renders, so server and browser write the same times.",
|
|
666
|
+
"required": false,
|
|
667
|
+
"from": "kit"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "title",
|
|
671
|
+
"type": "Element",
|
|
672
|
+
"description": "Above the start: what is checked (\"Checkout\").",
|
|
673
|
+
"required": false,
|
|
674
|
+
"from": "kit"
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"dataAttributes": [],
|
|
678
|
+
"cssVariables": [],
|
|
679
|
+
"state": []
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
"bar-list": {
|
|
684
|
+
"components": {
|
|
685
|
+
"BarList": {
|
|
686
|
+
"props": [
|
|
687
|
+
{
|
|
688
|
+
"name": "class",
|
|
689
|
+
"type": "ClassValue",
|
|
690
|
+
"description": "Extra classes on the root.",
|
|
691
|
+
"required": false,
|
|
692
|
+
"from": "kit"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"name": "color",
|
|
696
|
+
"type": "ChartColor",
|
|
697
|
+
"default": "\"chart-1\"",
|
|
698
|
+
"description": "The bars' color: a chart token (`chart-1` … `chart-8`) or any CSS color, drawn as a light wash so the label on it stays legible.",
|
|
699
|
+
"required": false,
|
|
700
|
+
"from": "kit"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"name": "data",
|
|
704
|
+
"type": "readonly BarListItem<T>[]",
|
|
705
|
+
"description": "The rows. They're ranked by value unless `sort` says otherwise.",
|
|
706
|
+
"required": true,
|
|
707
|
+
"from": "kit"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "format",
|
|
711
|
+
"type": "((value: number) => string)",
|
|
712
|
+
"description": "How values are written. Defaults to the locale's numbers, compact from 10,000 (12.9K), as Chart's axes.",
|
|
713
|
+
"required": false,
|
|
714
|
+
"from": "kit"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "label",
|
|
718
|
+
"type": "string",
|
|
719
|
+
"description": "The list's name for assistive technology: what is ranked, by what, over which period (\"Top pages by visitors, last 7 days\").",
|
|
720
|
+
"required": true,
|
|
721
|
+
"from": "kit"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "labelHeader",
|
|
725
|
+
"type": "Element",
|
|
726
|
+
"description": "A header over the labels (\"Page\").",
|
|
727
|
+
"required": false,
|
|
728
|
+
"from": "kit"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "labels",
|
|
732
|
+
"type": "Partial<BarListLabels>",
|
|
733
|
+
"description": "The words, in your wording or language (app-wide: `LocaleProvider messages.barList`).",
|
|
734
|
+
"required": false,
|
|
735
|
+
"from": "kit"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"name": "limit",
|
|
739
|
+
"type": "number",
|
|
740
|
+
"description": "Show the first `limit` rows, and a Show more button for the rest.",
|
|
741
|
+
"required": false,
|
|
742
|
+
"from": "kit"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"name": "max",
|
|
746
|
+
"type": "number",
|
|
747
|
+
"description": "The value a full bar stands for. Defaults to the largest in `data`. Pass the whole list's largest when `data` is part of it (search results, a page of it), so a bar keeps its length as others are left out.",
|
|
748
|
+
"required": false,
|
|
749
|
+
"from": "kit"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "onSelect",
|
|
753
|
+
"type": "((item: BarListItem<T>, index: number) => void)",
|
|
754
|
+
"description": "Makes each row a toggle button (for rows with no `href`): filter the page by the chosen row.",
|
|
755
|
+
"required": false,
|
|
756
|
+
"from": "kit"
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"name": "onShowMore",
|
|
760
|
+
"type": "(() => void)",
|
|
761
|
+
"description": "Called by Show more (with `limit`): open your own view of every row, a dialog with search. Without it, Show more expands the list in place, and the last rows fade out while it's collapsed.",
|
|
762
|
+
"required": false,
|
|
763
|
+
"from": "kit"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"name": "selected",
|
|
767
|
+
"type": "string | null",
|
|
768
|
+
"description": "The `key` (or label) of the row that is on, for a filter: its button is pressed and its bar darker. `null` or nothing: none is on.",
|
|
769
|
+
"required": false,
|
|
770
|
+
"from": "kit"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "share",
|
|
774
|
+
"type": "boolean",
|
|
775
|
+
"description": "A column with each row's share of the total (of every row, not only those shown).",
|
|
776
|
+
"required": false,
|
|
777
|
+
"from": "kit"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"name": "shareHeader",
|
|
781
|
+
"type": "Element",
|
|
782
|
+
"description": "A header over the shares, with `share` (\"Share\").",
|
|
783
|
+
"required": false,
|
|
784
|
+
"from": "kit"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "sort",
|
|
788
|
+
"type": "\"ascending\" | \"descending\" | \"none\"",
|
|
789
|
+
"default": "\"descending\"",
|
|
790
|
+
"description": "The order: largest first, smallest first, or as given.",
|
|
791
|
+
"required": false,
|
|
792
|
+
"from": "kit"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"name": "total",
|
|
796
|
+
"type": "number",
|
|
797
|
+
"description": "The total the shares are of. Defaults to the sum of `data`. Pass the whole list's total when `data` is part of it, so a row's share doesn't grow as others are left out.",
|
|
798
|
+
"required": false,
|
|
799
|
+
"from": "kit"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"name": "valueHeader",
|
|
803
|
+
"type": "Element",
|
|
804
|
+
"description": "A header over the values (\"Visitors\").",
|
|
805
|
+
"required": false,
|
|
806
|
+
"from": "kit"
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"dataAttributes": [],
|
|
810
|
+
"cssVariables": [],
|
|
811
|
+
"state": []
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
"segmented-bar": {
|
|
816
|
+
"components": {
|
|
817
|
+
"SegmentedBar": {
|
|
818
|
+
"props": [
|
|
819
|
+
{
|
|
820
|
+
"name": "class",
|
|
821
|
+
"type": "ClassValue",
|
|
822
|
+
"description": "Extra classes on the root.",
|
|
823
|
+
"required": false,
|
|
824
|
+
"from": "kit"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"name": "format",
|
|
828
|
+
"type": "((value: number) => string)",
|
|
829
|
+
"description": "How values are written in the legend. Defaults to the locale's numbers, compact from 10,000.",
|
|
830
|
+
"required": false,
|
|
831
|
+
"from": "kit"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "height",
|
|
835
|
+
"type": "number",
|
|
836
|
+
"default": "8",
|
|
837
|
+
"description": "The bar's height in pixels.",
|
|
838
|
+
"required": false,
|
|
839
|
+
"from": "kit"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "label",
|
|
843
|
+
"type": "string",
|
|
844
|
+
"description": "What the bar shows (\"Storage\", \"Test results\"). Its name is this, then each part's share, written from the data.",
|
|
845
|
+
"required": true,
|
|
846
|
+
"from": "kit"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"name": "labels",
|
|
850
|
+
"type": "Partial<SegmentedBarLabels>",
|
|
851
|
+
"description": "The words, in your wording or language (app-wide: `LocaleProvider messages.segmentedBar`).",
|
|
852
|
+
"required": false,
|
|
853
|
+
"from": "kit"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "legend",
|
|
857
|
+
"type": "boolean",
|
|
858
|
+
"description": "A legend under the bar: each part's swatch, label, value and share (and the rest of `max`).",
|
|
859
|
+
"required": false,
|
|
860
|
+
"from": "kit"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"name": "marker",
|
|
864
|
+
"type": "SegmentedBarMarker",
|
|
865
|
+
"description": "A tick with its own label: a target or a limit.",
|
|
866
|
+
"required": false,
|
|
867
|
+
"from": "kit"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "max",
|
|
871
|
+
"type": "number",
|
|
872
|
+
"description": "The whole, for \"used of total\" (84 GB of 100 GB): the rest stays empty track. Without it, the segments fill the bar (100%). A total above `max` fills the bar.",
|
|
873
|
+
"required": false,
|
|
874
|
+
"from": "kit"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "segments",
|
|
878
|
+
"type": "readonly SegmentedBarSegment[]",
|
|
879
|
+
"description": "The parts, in order from the start.",
|
|
880
|
+
"required": true,
|
|
881
|
+
"from": "kit"
|
|
882
|
+
}
|
|
883
|
+
],
|
|
884
|
+
"dataAttributes": [],
|
|
885
|
+
"cssVariables": [],
|
|
886
|
+
"state": []
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
"row-chart": {
|
|
891
|
+
"components": {
|
|
892
|
+
"RowChart": {
|
|
893
|
+
"props": [
|
|
894
|
+
{
|
|
895
|
+
"name": "class",
|
|
896
|
+
"type": "ClassValue",
|
|
897
|
+
"description": "Extra classes on the root.",
|
|
898
|
+
"required": false,
|
|
899
|
+
"from": "kit"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"name": "delta",
|
|
903
|
+
"type": "boolean",
|
|
904
|
+
"description": "Grouped: write the last series' change from the first after its value (\"20.6 (+54.9%)\"), for a baseline and a candidate.",
|
|
905
|
+
"required": false,
|
|
906
|
+
"from": "kit"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"name": "format",
|
|
910
|
+
"type": "((value: number) => string)",
|
|
911
|
+
"description": "How values are written. Defaults to the locale's numbers, compact from 10,000 (12.9K).",
|
|
912
|
+
"required": false,
|
|
913
|
+
"from": "kit"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"name": "label",
|
|
917
|
+
"type": "string",
|
|
918
|
+
"description": "The chart's name for assistive technology: what is compared, by what (\"Participants per vCPU, baseline vs candidate\").",
|
|
919
|
+
"required": true,
|
|
920
|
+
"from": "kit"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"name": "labels",
|
|
924
|
+
"type": "Partial<RowChartLabels>",
|
|
925
|
+
"description": "The words, in your wording or language (app-wide: `LocaleProvider messages.rowChart`).",
|
|
926
|
+
"required": false,
|
|
927
|
+
"from": "kit"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "layout",
|
|
931
|
+
"type": "\"grouped\" | \"stacked\"",
|
|
932
|
+
"default": "\"grouped\"",
|
|
933
|
+
"description": "`grouped`: one bar per series, under one another, to compare them row by row (before and after, A and B). `stacked`: one bar per row split into its series, for parts of a whole (user and kernel time).",
|
|
934
|
+
"required": false,
|
|
935
|
+
"from": "kit"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"name": "legend",
|
|
939
|
+
"type": "boolean",
|
|
940
|
+
"description": "The series legend above the rows. Defaults to on for two or more series.",
|
|
941
|
+
"required": false,
|
|
942
|
+
"from": "kit"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"name": "max",
|
|
946
|
+
"type": "number",
|
|
947
|
+
"description": "The value a full-length bar stands for. Defaults to the largest bar (grouped) or row total (stacked). Pass the same `max` to charts that sit side by side so their bars compare.",
|
|
948
|
+
"required": false,
|
|
949
|
+
"from": "kit"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "rows",
|
|
953
|
+
"type": "readonly RowChartRow<T>[]",
|
|
954
|
+
"description": "The rows, top to bottom, in the order given.",
|
|
955
|
+
"required": true,
|
|
956
|
+
"from": "kit"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"name": "series",
|
|
960
|
+
"type": "readonly RowChartSeries[]",
|
|
961
|
+
"description": "The series, in the order of each row's `values`.",
|
|
962
|
+
"required": true,
|
|
963
|
+
"from": "kit"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "tooltip",
|
|
967
|
+
"type": "boolean | RowChartTooltip<T>",
|
|
968
|
+
"default": "true",
|
|
969
|
+
"description": "The tooltip on a row: each series' value (and share, stacked) and the total. Also driven by the keyboard (arrow keys on the focused chart).",
|
|
970
|
+
"required": false,
|
|
971
|
+
"from": "kit"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"name": "valueText",
|
|
975
|
+
"type": "((value: RowChartValue<T>) => string)",
|
|
976
|
+
"description": "The text after each bar (grouped) or each stacked bar, in place of the chart's: add a share, a unit, a note. It's also read in each row's name.",
|
|
977
|
+
"required": false,
|
|
978
|
+
"from": "kit"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
"dataAttributes": [],
|
|
982
|
+
"cssVariables": [],
|
|
983
|
+
"state": []
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
"heat-matrix": {
|
|
988
|
+
"components": {
|
|
989
|
+
"HeatMatrix": {
|
|
990
|
+
"props": [
|
|
991
|
+
{
|
|
992
|
+
"name": "cellHeight",
|
|
993
|
+
"type": "number",
|
|
994
|
+
"default": "32",
|
|
995
|
+
"description": "A cell's height in pixels.",
|
|
996
|
+
"required": false,
|
|
997
|
+
"from": "kit"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"name": "class",
|
|
1001
|
+
"type": "ClassValue",
|
|
1002
|
+
"description": "Extra classes on the root.",
|
|
1003
|
+
"required": false,
|
|
1004
|
+
"from": "kit"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "columns",
|
|
1008
|
+
"type": "readonly string[]",
|
|
1009
|
+
"description": "The column headers, start to end (\"to\").",
|
|
1010
|
+
"required": true,
|
|
1011
|
+
"from": "kit"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"name": "corner",
|
|
1015
|
+
"type": "Element",
|
|
1016
|
+
"description": "Text in the top corner, over the row headers: what the rows and columns are (\"from \\\\ to\").",
|
|
1017
|
+
"required": false,
|
|
1018
|
+
"from": "kit"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"name": "format",
|
|
1022
|
+
"type": "((value: number) => string)",
|
|
1023
|
+
"description": "How values are written in the cells and the legend. Defaults to the locale's numbers.",
|
|
1024
|
+
"required": false,
|
|
1025
|
+
"from": "kit"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "label",
|
|
1029
|
+
"type": "string",
|
|
1030
|
+
"description": "The table's name: what the cells measure, between what, over which period (\"Route RTT, peak increase\").",
|
|
1031
|
+
"required": true,
|
|
1032
|
+
"from": "kit"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"name": "labels",
|
|
1036
|
+
"type": "Partial<HeatMatrixLabels>",
|
|
1037
|
+
"description": "The words, in your wording or language (app-wide: `LocaleProvider messages.heatMatrix`).",
|
|
1038
|
+
"required": false,
|
|
1039
|
+
"from": "kit"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"name": "legend",
|
|
1043
|
+
"type": "boolean",
|
|
1044
|
+
"default": "true",
|
|
1045
|
+
"description": "The scale's steps and their ranges under the matrix.",
|
|
1046
|
+
"required": false,
|
|
1047
|
+
"from": "kit"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"name": "muteDiagonal",
|
|
1051
|
+
"type": "boolean",
|
|
1052
|
+
"description": "Leave the cells where a row meets the column of the same name (a route to itself) out of the scale: they're drawn muted, and their values don't set the default steps.",
|
|
1053
|
+
"required": false,
|
|
1054
|
+
"from": "kit"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"name": "rows",
|
|
1058
|
+
"type": "readonly string[]",
|
|
1059
|
+
"description": "The row headers, top to bottom (\"from\").",
|
|
1060
|
+
"required": true,
|
|
1061
|
+
"from": "kit"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "thresholds",
|
|
1065
|
+
"type": "[number, number, number, number]",
|
|
1066
|
+
"description": "The lower bounds of steps 2–5 of the heat scale, such as `[5, 10, 15, 20]`. Defaults to five even steps between the smallest and the largest value. Fix them when the shades mean something (over 20 ms is bad) or when matrices side by side must share a scale.",
|
|
1067
|
+
"required": false,
|
|
1068
|
+
"from": "kit"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"name": "values",
|
|
1072
|
+
"type": "readonly (readonly (number | null | undefined)[])[]",
|
|
1073
|
+
"description": "The values, one array per row with one value per column (`values[row][column]`); `null` for none.",
|
|
1074
|
+
"required": true,
|
|
1075
|
+
"from": "kit"
|
|
1076
|
+
}
|
|
1077
|
+
],
|
|
1078
|
+
"dataAttributes": [],
|
|
1079
|
+
"cssVariables": [],
|
|
1080
|
+
"state": []
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
"state-timeline": {
|
|
1085
|
+
"components": {
|
|
1086
|
+
"StateTimeline": {
|
|
1087
|
+
"props": [
|
|
1088
|
+
{
|
|
1089
|
+
"name": "class",
|
|
1090
|
+
"type": "ClassValue",
|
|
1091
|
+
"description": "Extra classes on the root.",
|
|
1092
|
+
"required": false,
|
|
1093
|
+
"from": "kit"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"name": "formatTime",
|
|
1097
|
+
"type": "((date: Date) => string)",
|
|
1098
|
+
"description": "How a time is written in the tooltip and the keyboard readout.",
|
|
1099
|
+
"required": false,
|
|
1100
|
+
"from": "kit"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "formatValue",
|
|
1104
|
+
"type": "((value: number) => string)",
|
|
1105
|
+
"description": "How a sample's `value` is written in the tooltip (\"2.4% loss\").",
|
|
1106
|
+
"required": false,
|
|
1107
|
+
"from": "kit"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"name": "label",
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"description": "The chart's name for assistive technology: what the rows are, what the states mean, the period.",
|
|
1113
|
+
"required": true,
|
|
1114
|
+
"from": "kit"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"name": "labels",
|
|
1118
|
+
"type": "Partial<StateTimelineLabels>",
|
|
1119
|
+
"description": "The words, in your wording or language (app-wide: `LocaleProvider messages.stateTimeline`).",
|
|
1120
|
+
"required": false,
|
|
1121
|
+
"from": "kit"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "legend",
|
|
1125
|
+
"type": "boolean",
|
|
1126
|
+
"default": "true",
|
|
1127
|
+
"description": "The states legend above the lanes.",
|
|
1128
|
+
"required": false,
|
|
1129
|
+
"from": "kit"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "range",
|
|
1133
|
+
"type": "readonly [string | number | Date, string | number | Date]",
|
|
1134
|
+
"description": "The period shown, `[start, end]`. Defaults to the first reading to the end of the last.",
|
|
1135
|
+
"required": false,
|
|
1136
|
+
"from": "kit"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"name": "rowGap",
|
|
1140
|
+
"type": "number",
|
|
1141
|
+
"default": "4",
|
|
1142
|
+
"description": "Space between lanes in pixels.",
|
|
1143
|
+
"required": false,
|
|
1144
|
+
"from": "kit"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "rowHeight",
|
|
1148
|
+
"type": "number",
|
|
1149
|
+
"default": "14",
|
|
1150
|
+
"description": "Each lane's height in pixels.",
|
|
1151
|
+
"required": false,
|
|
1152
|
+
"from": "kit"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"name": "rows",
|
|
1156
|
+
"type": "readonly StateTimelineRow<T>[]",
|
|
1157
|
+
"description": "The rows, top to bottom.",
|
|
1158
|
+
"required": true,
|
|
1159
|
+
"from": "kit"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"name": "states",
|
|
1163
|
+
"type": "readonly StateTimelineState[]",
|
|
1164
|
+
"description": "The states, from calm to severe. Each sample's `state` is one of their keys.",
|
|
1165
|
+
"required": true,
|
|
1166
|
+
"from": "kit"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"name": "step",
|
|
1170
|
+
"type": "number",
|
|
1171
|
+
"description": "How long one reading lasts, in milliseconds: a reading later than this after the last leaves a gap. Defaults to the shortest interval between readings.",
|
|
1172
|
+
"required": false,
|
|
1173
|
+
"from": "kit"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"name": "ticks",
|
|
1177
|
+
"type": "number",
|
|
1178
|
+
"default": "8",
|
|
1179
|
+
"description": "About how many times to write under the lanes (round times: every 30 minutes, every hour).",
|
|
1180
|
+
"required": false,
|
|
1181
|
+
"from": "kit"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"name": "timeZone",
|
|
1185
|
+
"type": "string",
|
|
1186
|
+
"description": "The time zone times are written in (\"UTC\"). Defaults to the reader's.",
|
|
1187
|
+
"required": false,
|
|
1188
|
+
"from": "kit"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"name": "tooltip",
|
|
1192
|
+
"type": "boolean",
|
|
1193
|
+
"default": "true",
|
|
1194
|
+
"description": "The tooltip at the pointer, also driven by the keyboard (arrow keys on the focused chart).",
|
|
1195
|
+
"required": false,
|
|
1196
|
+
"from": "kit"
|
|
1197
|
+
}
|
|
1198
|
+
],
|
|
1199
|
+
"dataAttributes": [],
|
|
1200
|
+
"cssVariables": [],
|
|
1201
|
+
"state": []
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
"donut": {
|
|
1206
|
+
"components": {
|
|
1207
|
+
"Donut": {
|
|
1208
|
+
"props": [
|
|
1209
|
+
{
|
|
1210
|
+
"name": "center",
|
|
1211
|
+
"type": "Element",
|
|
1212
|
+
"description": "Replaces the centre's content (by default the total, or the hovered or focused slice). `false` keeps the default.",
|
|
1213
|
+
"required": false,
|
|
1214
|
+
"from": "kit"
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
"name": "children",
|
|
1218
|
+
"type": "Element",
|
|
1219
|
+
"description": "Where the legend goes, in place of the built-in one: a `DonutLegend` and anything around it.",
|
|
1220
|
+
"required": false,
|
|
1221
|
+
"from": "kit"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"name": "class",
|
|
1225
|
+
"type": "ClassValue",
|
|
1226
|
+
"description": "Extra classes on the root.",
|
|
1227
|
+
"required": false,
|
|
1228
|
+
"from": "kit"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"name": "data",
|
|
1232
|
+
"type": "readonly DonutDatum<T>[]",
|
|
1233
|
+
"description": "The categories, in the order they're drawn from the top, clockwise.",
|
|
1234
|
+
"required": true,
|
|
1235
|
+
"from": "kit"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "format",
|
|
1239
|
+
"type": "((value: number) => string)",
|
|
1240
|
+
"description": "How values are written. Defaults to the locale's numbers, compact from 10,000.",
|
|
1241
|
+
"required": false,
|
|
1242
|
+
"from": "kit"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"name": "gap",
|
|
1246
|
+
"type": "number",
|
|
1247
|
+
"description": "The space between slices in pixels. Defaults to 2 (1 under 64).",
|
|
1248
|
+
"required": false,
|
|
1249
|
+
"from": "kit"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"name": "label",
|
|
1253
|
+
"type": "string",
|
|
1254
|
+
"description": "What the whole is (\"Revenue by region\"). The image's name is this, the total, then each slice's share.",
|
|
1255
|
+
"required": true,
|
|
1256
|
+
"from": "kit"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"name": "labels",
|
|
1260
|
+
"type": "Partial<DonutLabels>",
|
|
1261
|
+
"description": "The words, in your wording or language (app-wide: `LocaleProvider messages.donut`).",
|
|
1262
|
+
"required": false,
|
|
1263
|
+
"from": "kit"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "legend",
|
|
1267
|
+
"type": "boolean",
|
|
1268
|
+
"default": "true",
|
|
1269
|
+
"description": "The legend list beside the donut, the way to read and choose slices. `false` keeps the values in the page for assistive technology only, and the slices aren't clickable. Children replace it: place a `DonutLegend` among them (it offers the choice even with `legend={false}`).",
|
|
1270
|
+
"required": false,
|
|
1271
|
+
"from": "kit"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"name": "loading",
|
|
1275
|
+
"type": "boolean",
|
|
1276
|
+
"description": "A skeleton ring while the data loads; the root is `aria-busy`.",
|
|
1277
|
+
"required": false,
|
|
1278
|
+
"from": "kit"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"name": "maxSlices",
|
|
1282
|
+
"type": "number",
|
|
1283
|
+
"default": "8",
|
|
1284
|
+
"description": "The most slices drawn: past it, the smallest categories fold into one \"Other\" slice, whose legend row lists them.",
|
|
1285
|
+
"required": false,
|
|
1286
|
+
"from": "kit"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"name": "onSelect",
|
|
1290
|
+
"type": "((slice: DonutSlice<T>) => void)",
|
|
1291
|
+
"description": "Makes each legend row a toggle button (and each slice clickable): filter the page by the chosen category. With `legend={false}` the slices aren't clickable; a `DonutLegend` in children still offers the choice.",
|
|
1292
|
+
"required": false,
|
|
1293
|
+
"from": "kit"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "selected",
|
|
1297
|
+
"type": "string | null",
|
|
1298
|
+
"description": "The `key` (or label) of the category that is on, for a filter: its row is pressed and its slice stays highlighted. A category folded into \"Other\" marks \"Other\". `null` or nothing: none is on.",
|
|
1299
|
+
"required": false,
|
|
1300
|
+
"from": "kit"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "size",
|
|
1304
|
+
"type": "number",
|
|
1305
|
+
"default": "160",
|
|
1306
|
+
"description": "The donut's width and height in pixels. Under 80 it's a compact mark with nothing in the centre.",
|
|
1307
|
+
"required": false,
|
|
1308
|
+
"from": "kit"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "thickness",
|
|
1312
|
+
"type": "number",
|
|
1313
|
+
"description": "The ring's width in pixels. Defaults to an eighth of `size` (a fifth under 64).",
|
|
1314
|
+
"required": false,
|
|
1315
|
+
"from": "kit"
|
|
1316
|
+
}
|
|
1317
|
+
],
|
|
1318
|
+
"dataAttributes": [],
|
|
1319
|
+
"cssVariables": [],
|
|
1320
|
+
"state": []
|
|
1321
|
+
},
|
|
1322
|
+
"DonutLegend": {
|
|
1323
|
+
"props": [
|
|
1324
|
+
{
|
|
1325
|
+
"name": "class",
|
|
1326
|
+
"type": "ClassValue",
|
|
1327
|
+
"description": "Extra classes on the list.",
|
|
1328
|
+
"required": false,
|
|
1329
|
+
"from": "kit"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"name": "share",
|
|
1333
|
+
"type": "boolean",
|
|
1334
|
+
"default": "true",
|
|
1335
|
+
"description": "Each row's share of the total, after its value.",
|
|
1336
|
+
"required": false,
|
|
1337
|
+
"from": "kit"
|
|
1338
|
+
}
|
|
1339
|
+
],
|
|
1340
|
+
"dataAttributes": [],
|
|
1341
|
+
"cssVariables": [],
|
|
1342
|
+
"state": []
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
}
|