@krizaka/charts 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -5
- package/dist/bar.js +5 -4
- package/dist/candlestick.js +3 -3
- package/dist/chart.js +3 -3
- package/dist/{chunk-EK3Z647J.js → chunk-4LBXEAGC.js} +3 -3
- package/dist/{chunk-AHQXJSAQ.js → chunk-AA5EWWYV.js} +2 -2
- package/dist/{chunk-VKO2OYYM.js → chunk-ARARFMNE.js} +2 -2
- package/dist/{chunk-WBH2QU77.js → chunk-BV4DBGN7.js} +2 -2
- package/dist/{chunk-BZ5CQFPH.js → chunk-C4MFZLJM.js} +2 -2
- package/dist/{chunk-XAJ3KCC4.js → chunk-CSSZLFLO.js} +3 -3
- package/dist/{chunk-UNK4MJVG.js → chunk-CVWSMUUB.js} +8 -8
- package/dist/chunk-E5DKBSWX.js +2 -0
- package/dist/chunk-E5DKBSWX.js.map +1 -0
- package/dist/chunk-EEP7PS2L.js +54 -0
- package/dist/chunk-EEP7PS2L.js.map +1 -0
- package/dist/{chunk-DZB6HEVO.js → chunk-EQLC2QVN.js} +2 -2
- package/dist/chunk-FINOPIDN.js +2 -0
- package/dist/chunk-FINOPIDN.js.map +1 -0
- package/dist/chunk-G2KF2WL4.js +2 -0
- package/dist/chunk-G2KF2WL4.js.map +1 -0
- package/dist/{chunk-PTSB3H5Q.js → chunk-I3D7KUGN.js} +2 -2
- package/dist/chunk-IKQV3NSL.js +76 -0
- package/dist/chunk-IKQV3NSL.js.map +1 -0
- package/dist/{chunk-DWJPPEMC.js → chunk-JTKR7ZWP.js} +73 -60
- package/dist/chunk-JTKR7ZWP.js.map +1 -0
- package/dist/chunk-KNDHO67X.js +78 -0
- package/dist/chunk-KNDHO67X.js.map +1 -0
- package/dist/chunk-L2EKYWVI.js +94 -0
- package/dist/chunk-L2EKYWVI.js.map +1 -0
- package/dist/{chunk-XC6BQ3RN.js → chunk-MXLITIGU.js} +3 -3
- package/dist/{chunk-OER6ETT4.js → chunk-NCIQMRV3.js} +3 -3
- package/dist/chunk-OIRHLJBC.js +83 -0
- package/dist/chunk-OIRHLJBC.js.map +1 -0
- package/dist/{chunk-WIRCIOLH.js → chunk-PBQV3B6O.js} +5 -5
- package/dist/chunk-POQIHFAZ.js +2 -0
- package/dist/chunk-POQIHFAZ.js.map +1 -0
- package/dist/{chunk-I5QUZVU2.js → chunk-PWMMXRMC.js} +2 -2
- package/dist/chunk-SLEJDQ3A.js +81 -0
- package/dist/chunk-SLEJDQ3A.js.map +1 -0
- package/dist/{chunk-7TIFCK5E.js → chunk-VKZZY2QD.js} +3 -3
- package/dist/{chunk-VKTZD7UT.js → chunk-W5ILLSPK.js} +3 -3
- package/dist/chunk-WBHFVBSK.js +25 -0
- package/dist/chunk-WBHFVBSK.js.map +1 -0
- package/dist/chunk-WNUFGMS7.js +113 -0
- package/dist/chunk-WNUFGMS7.js.map +1 -0
- package/dist/{chunk-XR4ZJDOV.js → chunk-WVTIKOII.js} +2 -2
- package/dist/{chunk-7CSAGFBW.js → chunk-XDDALY4C.js} +3 -3
- package/dist/credits.d.ts +42 -0
- package/dist/credits.js +21 -0
- package/dist/credits.js.map +1 -0
- package/dist/earnings.d.ts +29 -0
- package/dist/earnings.js +22 -0
- package/dist/earnings.js.map +1 -0
- package/dist/funnel.js +3 -3
- package/dist/gauge.js +3 -2
- package/dist/geo.js +2 -2
- package/dist/globe.js +2 -2
- package/dist/goal.d.ts +26 -0
- package/dist/goal.js +17 -0
- package/dist/goal.js.map +1 -0
- package/dist/heatmap.js +3 -3
- package/dist/index.d.ts +7 -0
- package/dist/index.js +80 -33
- package/dist/labels-DE_743fQ.d.ts +72 -0
- package/dist/latency.d.ts +33 -0
- package/dist/latency.js +24 -0
- package/dist/latency.js.map +1 -0
- package/dist/line.js +5 -4
- package/dist/native.d.ts +195 -1
- package/dist/native.js +383 -14
- package/dist/native.js.map +1 -1
- package/dist/pie.js +3 -3
- package/dist/radar.js +3 -3
- package/dist/sankey.js +3 -3
- package/dist/scatter.js +3 -3
- package/dist/sparkline.js +4 -3
- package/dist/throughput.d.ts +37 -0
- package/dist/throughput.js +24 -0
- package/dist/throughput.js.map +1 -0
- package/dist/ticker.d.ts +38 -0
- package/dist/ticker.js +22 -0
- package/dist/ticker.js.map +1 -0
- package/dist/treemap.js +3 -3
- package/package.json +100 -4
- package/registry/area-chart.json +1 -0
- package/registry/bar-chart.json +1 -0
- package/registry/calendar-heatmap.json +1 -0
- package/registry/candlestick.json +1 -0
- package/registry/chart.json +1 -0
- package/registry/charts-provider.json +1 -0
- package/registry/credit-usage.json +473 -0
- package/registry/earnings-chart.json +703 -0
- package/registry/examples/credit-usage/monthly-credits.d.ts +4 -0
- package/registry/examples/credit-usage/monthly-credits.js +24 -0
- package/registry/examples/credit-usage/monthly-credits.tsx +19 -0
- package/registry/examples/credit-usage/native/monthly-credits.d.ts +4 -0
- package/registry/examples/credit-usage/native/monthly-credits.dark.png +0 -0
- package/registry/examples/credit-usage/native/monthly-credits.js +23 -0
- package/registry/examples/credit-usage/native/monthly-credits.light.png +0 -0
- package/registry/examples/credit-usage/native/monthly-credits.tsx +18 -0
- package/registry/examples/credit-usage/storage-plan.d.ts +4 -0
- package/registry/examples/credit-usage/storage-plan.js +21 -0
- package/registry/examples/credit-usage/storage-plan.tsx +15 -0
- package/registry/examples/earnings-chart/creator-month.d.ts +4 -0
- package/registry/examples/earnings-chart/creator-month.js +29 -0
- package/registry/examples/earnings-chart/creator-month.tsx +24 -0
- package/registry/examples/earnings-chart/gross-and-net.d.ts +4 -0
- package/registry/examples/earnings-chart/gross-and-net.js +29 -0
- package/registry/examples/earnings-chart/gross-and-net.tsx +24 -0
- package/registry/examples/earnings-chart/native/creator-month.d.ts +4 -0
- package/registry/examples/earnings-chart/native/creator-month.dark.png +0 -0
- package/registry/examples/earnings-chart/native/creator-month.js +29 -0
- package/registry/examples/earnings-chart/native/creator-month.light.png +0 -0
- package/registry/examples/earnings-chart/native/creator-month.tsx +24 -0
- package/registry/examples/goal-progress/challenge-pot.d.ts +4 -0
- package/registry/examples/goal-progress/challenge-pot.js +22 -0
- package/registry/examples/goal-progress/challenge-pot.tsx +16 -0
- package/registry/examples/goal-progress/goal-reached.d.ts +4 -0
- package/registry/examples/goal-progress/goal-reached.js +11 -0
- package/registry/examples/goal-progress/goal-reached.tsx +6 -0
- package/registry/examples/goal-progress/native/challenge-pot.d.ts +4 -0
- package/registry/examples/goal-progress/native/challenge-pot.dark.png +0 -0
- package/registry/examples/goal-progress/native/challenge-pot.js +11 -0
- package/registry/examples/goal-progress/native/challenge-pot.light.png +0 -0
- package/registry/examples/goal-progress/native/challenge-pot.tsx +6 -0
- package/registry/examples/job-throughput/live-hours.d.ts +4 -0
- package/registry/examples/job-throughput/live-hours.js +33 -0
- package/registry/examples/job-throughput/live-hours.tsx +28 -0
- package/registry/examples/job-throughput/native/week-of-jobs.d.ts +4 -0
- package/registry/examples/job-throughput/native/week-of-jobs.dark.png +0 -0
- package/registry/examples/job-throughput/native/week-of-jobs.js +20 -0
- package/registry/examples/job-throughput/native/week-of-jobs.light.png +0 -0
- package/registry/examples/job-throughput/native/week-of-jobs.tsx +16 -0
- package/registry/examples/job-throughput/week-of-jobs.d.ts +4 -0
- package/registry/examples/job-throughput/week-of-jobs.js +20 -0
- package/registry/examples/job-throughput/week-of-jobs.tsx +16 -0
- package/registry/examples/latency-chart/by-capability.d.ts +4 -0
- package/registry/examples/latency-chart/by-capability.js +26 -0
- package/registry/examples/latency-chart/by-capability.tsx +21 -0
- package/registry/examples/latency-chart/native/by-capability.d.ts +4 -0
- package/registry/examples/latency-chart/native/by-capability.dark.png +0 -0
- package/registry/examples/latency-chart/native/by-capability.js +17 -0
- package/registry/examples/latency-chart/native/by-capability.light.png +0 -0
- package/registry/examples/latency-chart/native/by-capability.tsx +13 -0
- package/registry/examples/latency-chart/time-to-result.d.ts +4 -0
- package/registry/examples/latency-chart/time-to-result.js +27 -0
- package/registry/examples/latency-chart/time-to-result.tsx +22 -0
- package/registry/examples/price-ticker/auction-room.d.ts +4 -0
- package/registry/examples/price-ticker/auction-room.js +21 -0
- package/registry/examples/price-ticker/auction-room.tsx +17 -0
- package/registry/examples/price-ticker/native/auction-room.d.ts +4 -0
- package/registry/examples/price-ticker/native/auction-room.dark.png +0 -0
- package/registry/examples/price-ticker/native/auction-room.js +19 -0
- package/registry/examples/price-ticker/native/auction-room.light.png +0 -0
- package/registry/examples/price-ticker/native/auction-room.tsx +15 -0
- package/registry/examples/price-ticker/no-bid-yet.d.ts +4 -0
- package/registry/examples/price-ticker/no-bid-yet.js +11 -0
- package/registry/examples/price-ticker/no-bid-yet.tsx +6 -0
- package/registry/funnel.json +1 -0
- package/registry/gauge.json +1 -0
- package/registry/geo-map.json +1 -0
- package/registry/globe.json +1 -0
- package/registry/goal-progress.json +520 -0
- package/registry/heatmap.json +1 -0
- package/registry/index.json +163 -1
- package/registry/job-throughput.json +654 -0
- package/registry/latency-chart.json +671 -0
- package/registry/line-chart.json +1 -0
- package/registry/pie-chart.json +1 -0
- package/registry/price-ticker.json +684 -0
- package/registry/radar-chart.json +1 -0
- package/registry/sankey.json +1 -0
- package/registry/scatter-chart.json +1 -0
- package/registry/sparkline.json +1 -0
- package/registry/treemap.json +1 -0
- package/dist/chunk-DWJPPEMC.js.map +0 -1
- /package/dist/{chunk-EK3Z647J.js.map → chunk-4LBXEAGC.js.map} +0 -0
- /package/dist/{chunk-AHQXJSAQ.js.map → chunk-AA5EWWYV.js.map} +0 -0
- /package/dist/{chunk-VKO2OYYM.js.map → chunk-ARARFMNE.js.map} +0 -0
- /package/dist/{chunk-WBH2QU77.js.map → chunk-BV4DBGN7.js.map} +0 -0
- /package/dist/{chunk-BZ5CQFPH.js.map → chunk-C4MFZLJM.js.map} +0 -0
- /package/dist/{chunk-XAJ3KCC4.js.map → chunk-CSSZLFLO.js.map} +0 -0
- /package/dist/{chunk-UNK4MJVG.js.map → chunk-CVWSMUUB.js.map} +0 -0
- /package/dist/{chunk-DZB6HEVO.js.map → chunk-EQLC2QVN.js.map} +0 -0
- /package/dist/{chunk-PTSB3H5Q.js.map → chunk-I3D7KUGN.js.map} +0 -0
- /package/dist/{chunk-XC6BQ3RN.js.map → chunk-MXLITIGU.js.map} +0 -0
- /package/dist/{chunk-OER6ETT4.js.map → chunk-NCIQMRV3.js.map} +0 -0
- /package/dist/{chunk-WIRCIOLH.js.map → chunk-PBQV3B6O.js.map} +0 -0
- /package/dist/{chunk-I5QUZVU2.js.map → chunk-PWMMXRMC.js.map} +0 -0
- /package/dist/{chunk-7TIFCK5E.js.map → chunk-VKZZY2QD.js.map} +0 -0
- /package/dist/{chunk-VKTZD7UT.js.map → chunk-W5ILLSPK.js.map} +0 -0
- /package/dist/{chunk-XR4ZJDOV.js.map → chunk-WVTIKOII.js.map} +0 -0
- /package/dist/{chunk-7CSAGFBW.js.map → chunk-XDDALY4C.js.map} +0 -0
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "job-throughput",
|
|
3
|
+
"package": "@krizaka/charts",
|
|
4
|
+
"type": "chart",
|
|
5
|
+
"title": "Job throughput",
|
|
6
|
+
"summary": "Jobs per period stacked by status, with the total and the success rate of the finished jobs written above.",
|
|
7
|
+
"description": "Jobs per period stacked by status, with the total and the success rate of the finished jobs written above.",
|
|
8
|
+
"status": "beta",
|
|
9
|
+
"category": "charts",
|
|
10
|
+
"platforms": "both",
|
|
11
|
+
"engine": "svg",
|
|
12
|
+
"tier": "ready-made",
|
|
13
|
+
"whenToUse": [
|
|
14
|
+
"Orazaka's insights and the console's supervision: jobs per day by status.",
|
|
15
|
+
"The mobile Jobs screen: the total and the success rate first, the week's bars under them.",
|
|
16
|
+
"Any queue whose items end in success or failure: uploads, payouts, transcodes."
|
|
17
|
+
],
|
|
18
|
+
"whenNotToUse": [
|
|
19
|
+
{
|
|
20
|
+
"when": "Money per period.",
|
|
21
|
+
"use": "earnings-chart"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"when": "How long the jobs take.",
|
|
25
|
+
"use": "latency-chart"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"when": "The share of each kind of job, without time.",
|
|
29
|
+
"use": "pie-chart"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"bestPractices": [
|
|
33
|
+
"Pass the statuses translated, in the order they should stack: the finished ones at the bottom.",
|
|
34
|
+
"Mark the statuses that end a job with `outcome`: only they count in the success rate.",
|
|
35
|
+
"Set `live` when the counts stream in: no entrance on every update."
|
|
36
|
+
],
|
|
37
|
+
"accessibility": {
|
|
38
|
+
"keyboard": [
|
|
39
|
+
{
|
|
40
|
+
"keys": "Tab",
|
|
41
|
+
"action": "Moves the focus to the plot, then to the data and export buttons."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"keys": "Arrow keys",
|
|
45
|
+
"action": "Walk the periods: each one's counts by status are announced."
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"notes": [
|
|
49
|
+
"The statuses wear the status tones and are named in the legend: the colour is never alone.",
|
|
50
|
+
"The total and the success rate are written above the chart, in words."
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"related": [
|
|
54
|
+
"bar-chart",
|
|
55
|
+
"latency-chart",
|
|
56
|
+
"pie-chart"
|
|
57
|
+
],
|
|
58
|
+
"source": "packages/charts/src/meta/job-throughput.ts",
|
|
59
|
+
"install": {
|
|
60
|
+
"web": "npm install @krizaka/charts",
|
|
61
|
+
"native": "npx expo install react-native-svg\nnpm install @krizaka/charts"
|
|
62
|
+
},
|
|
63
|
+
"web": {
|
|
64
|
+
"entry": "@krizaka/charts/throughput",
|
|
65
|
+
"import": "import { JobThroughput } from \"@krizaka/charts/throughput\";",
|
|
66
|
+
"props": [
|
|
67
|
+
{
|
|
68
|
+
"component": "JobThroughput",
|
|
69
|
+
"description": "Jobs per period, stacked by status, with the total and the success rate.",
|
|
70
|
+
"props": [
|
|
71
|
+
{
|
|
72
|
+
"name": "data",
|
|
73
|
+
"type": "readonly T[]",
|
|
74
|
+
"default": null,
|
|
75
|
+
"description": "The rows, in the order of the x axis.",
|
|
76
|
+
"required": true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "title",
|
|
80
|
+
"type": "string",
|
|
81
|
+
"default": null,
|
|
82
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
|
|
83
|
+
"required": true
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "brand",
|
|
87
|
+
"type": "BrandId",
|
|
88
|
+
"default": null,
|
|
89
|
+
"description": "The brand whose palette the charts use. Without it, a chart follows a `.brand-<id>` ancestor, else Krizaka. Set it\nwhen the app loads a brand stylesheet on `:root` (`@krizaka/tokens/brands/orazaka.css`).",
|
|
90
|
+
"required": false
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "className",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"default": null,
|
|
96
|
+
"description": "A class on the figure (layout: margins, grid placement).",
|
|
97
|
+
"required": false
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "dataTable",
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"default": null,
|
|
103
|
+
"description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
|
|
104
|
+
"required": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "description",
|
|
108
|
+
"type": "ReactNode",
|
|
109
|
+
"default": null,
|
|
110
|
+
"description": "A sentence under the title: the period, the unit, the source.",
|
|
111
|
+
"required": false
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "empty",
|
|
115
|
+
"type": "ReactNode",
|
|
116
|
+
"default": null,
|
|
117
|
+
"description": "What to show when there is nothing to draw (default: the `empty` label). An `EmptyState` of\n@krizaka /ui fits.",
|
|
118
|
+
"required": false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "error",
|
|
122
|
+
"type": "ReactNode",
|
|
123
|
+
"default": null,
|
|
124
|
+
"description": "The data could not be loaded: `true` says the default words, a node says yours (a retry button…).",
|
|
125
|
+
"required": false
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "exportable",
|
|
129
|
+
"type": "boolean | readonly ExportFormat[]",
|
|
130
|
+
"default": null,
|
|
131
|
+
"description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
|
|
132
|
+
"required": false
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "height",
|
|
136
|
+
"type": "number",
|
|
137
|
+
"default": null,
|
|
138
|
+
"description": "The height of the plot in pixels. Default 280 (a sparkline: 32).",
|
|
139
|
+
"required": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "hideSummary",
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"default": null,
|
|
145
|
+
"description": "Hide the total and the success rate above the bars.",
|
|
146
|
+
"required": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "hideTitle",
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"default": null,
|
|
152
|
+
"description": "Visually hide the title (it stays the chart's accessible name): a card that already has its heading.",
|
|
153
|
+
"required": false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "id",
|
|
157
|
+
"type": "string",
|
|
158
|
+
"default": null,
|
|
159
|
+
"description": "The id of the figure.",
|
|
160
|
+
"required": false
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "labels",
|
|
164
|
+
"type": "Partial<ThroughputLabels>",
|
|
165
|
+
"default": null,
|
|
166
|
+
"description": "The words, passed translated; English by default.",
|
|
167
|
+
"required": false
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "legend",
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"default": null,
|
|
173
|
+
"description": "Show the legend (from two series). Default true.",
|
|
174
|
+
"required": false
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "live",
|
|
178
|
+
"type": "boolean",
|
|
179
|
+
"default": null,
|
|
180
|
+
"description": "Streaming data (a job queue, an auction): no entrance on updates, no announcement of every new point.",
|
|
181
|
+
"required": false
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "loading",
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"default": null,
|
|
187
|
+
"description": "The data is on its way: a skeleton of the chart, announced once.",
|
|
188
|
+
"required": false
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "locale",
|
|
192
|
+
"type": "Locale",
|
|
193
|
+
"default": null,
|
|
194
|
+
"description": "The locale of every figure and date (`\"fr-FR\"`). Default `\"en-US\"`.",
|
|
195
|
+
"required": false
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "markers",
|
|
199
|
+
"type": "readonly Marker[]",
|
|
200
|
+
"default": null,
|
|
201
|
+
"description": "Vertical markers at a category: a launch, an incident.",
|
|
202
|
+
"required": false
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "onSelect",
|
|
206
|
+
"type": "((datum: T, index: number) => void)",
|
|
207
|
+
"default": null,
|
|
208
|
+
"description": "Called with the row when a point or a bar is clicked (or Enter is pressed on it).",
|
|
209
|
+
"required": false
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "period",
|
|
213
|
+
"type": "CategoryFormat",
|
|
214
|
+
"default": "day",
|
|
215
|
+
"description": "How the periods are written. Default `\"day\"` (`Oct 11`); `\"time\"` for hours.",
|
|
216
|
+
"required": false
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "statuses",
|
|
220
|
+
"type": "readonly JobStatus[]",
|
|
221
|
+
"default": "[\n { key: \"completed\", label: \"Completed\", tone: \"success\", outcome: \"succeeded\" },\n { key: \"failed\", label: \"Failed\", tone: \"danger\", outcome: \"failed\" },\n { key: \"running\", label: \"Running\", tone: \"info\" },\n { key: \"queued\", label: \"Queued\", tone: \"neutral\" },\n]",
|
|
222
|
+
"description": "The statuses, in stacking order, with their field, name and tone. Default: completed, failed, running, queued.",
|
|
223
|
+
"required": false
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "style",
|
|
227
|
+
"type": "CSSProperties",
|
|
228
|
+
"default": null,
|
|
229
|
+
"description": "Inline style on the figure (layout only: colours come from the tokens).",
|
|
230
|
+
"required": false
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "summary",
|
|
234
|
+
"type": "\"hidden\" | \"visible\"",
|
|
235
|
+
"default": null,
|
|
236
|
+
"description": "The written summary: read by screen readers only (`\"hidden\"`, default), or shown under the chart (`\"visible\"`).",
|
|
237
|
+
"required": false
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "summaryText",
|
|
241
|
+
"type": "string",
|
|
242
|
+
"default": null,
|
|
243
|
+
"description": "Your own summary instead of the generated one (still read first by screen readers).",
|
|
244
|
+
"required": false
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "thresholds",
|
|
248
|
+
"type": "readonly Threshold[]",
|
|
249
|
+
"default": null,
|
|
250
|
+
"description": "Horizontal lines at a value: a goal, a payout threshold.",
|
|
251
|
+
"required": false
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "x",
|
|
255
|
+
"type": "string | ((datum: T, index: number) => unknown)",
|
|
256
|
+
"default": "\"day\" as Accessor<T, unknown>",
|
|
257
|
+
"description": "The field (or function) of the period. Default `\"day\"`.",
|
|
258
|
+
"required": false
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "xLabel",
|
|
262
|
+
"type": "string",
|
|
263
|
+
"default": null,
|
|
264
|
+
"description": "The header of the categories in the data table (`Month`).",
|
|
265
|
+
"required": false
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "zero",
|
|
269
|
+
"type": "boolean",
|
|
270
|
+
"default": null,
|
|
271
|
+
"description": "Start the value axis at zero. Default: true for bars and areas; for lines, unless the values sit far from zero.",
|
|
272
|
+
"required": false
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"examples": [
|
|
278
|
+
{
|
|
279
|
+
"name": "week-of-jobs",
|
|
280
|
+
"title": "A week of jobs",
|
|
281
|
+
"description": "Seven days of Orazaka jobs by status, the success rate above.",
|
|
282
|
+
"path": "examples/job-throughput/week-of-jobs.tsx",
|
|
283
|
+
"module": "@krizaka/charts/registry/examples/job-throughput/week-of-jobs",
|
|
284
|
+
"code": "import { JobThroughput } from \"@krizaka/charts/throughput\";\n\n// Orazaka jobs per day, by status (the default statuses: completed, failed, running, queued).\nconst days = [\n { day: \"2026-10-05\", completed: 1_240, failed: 38, running: 0, queued: 0 },\n { day: \"2026-10-06\", completed: 1_612, failed: 41, running: 0, queued: 0 },\n { day: \"2026-10-07\", completed: 1_505, failed: 95, running: 0, queued: 0 },\n { day: \"2026-10-08\", completed: 1_788, failed: 27, running: 0, queued: 0 },\n { day: \"2026-10-09\", completed: 1_934, failed: 33, running: 0, queued: 0 },\n { day: \"2026-10-10\", completed: 1_102, failed: 19, running: 0, queued: 0 },\n { day: \"2026-10-11\", completed: 986, failed: 12, running: 24, queued: 63 },\n];\n\nexport default function WeekOfJobs() {\n return <JobThroughput title=\"Jobs this week\" data={days} labels={{ total: \"jobs over {count} days\" }} />;\n}\n"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "live-hours",
|
|
288
|
+
"title": "Live, per hour",
|
|
289
|
+
"description": "The last hours, `live`, with the console's own statuses.",
|
|
290
|
+
"path": "examples/job-throughput/live-hours.tsx",
|
|
291
|
+
"module": "@krizaka/charts/registry/examples/job-throughput/live-hours",
|
|
292
|
+
"code": "import { JobThroughput } from \"@krizaka/charts/throughput\";\n\n// The console, per hour and live: its own statuses, translated by the app.\nconst hours = [\n { hour: \"2026-10-11T09:00:00Z\", done: 212, rejected: 4, waiting: 9 },\n { hour: \"2026-10-11T10:00:00Z\", done: 268, rejected: 7, waiting: 14 },\n { hour: \"2026-10-11T11:00:00Z\", done: 301, rejected: 22, waiting: 31 },\n { hour: \"2026-10-11T12:00:00Z\", done: 244, rejected: 5, waiting: 12 },\n { hour: \"2026-10-11T13:00:00Z\", done: 190, rejected: 3, waiting: 40 },\n];\n\nexport default function LiveHours() {\n return (\n <JobThroughput\n title=\"Requests per hour\"\n data={hours}\n x=\"hour\"\n period=\"time\"\n live\n statuses={[\n { key: \"done\", label: \"Done\", tone: \"success\", outcome: \"succeeded\" },\n { key: \"rejected\", label: \"Rejected\", tone: \"danger\", outcome: \"failed\" },\n { key: \"waiting\", label: \"Waiting\", tone: \"neutral\" },\n ]}\n labels={{ total: \"requests over {count} hours\" }}\n />\n );\n}\n"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"native": {
|
|
297
|
+
"entry": "@krizaka/charts/native",
|
|
298
|
+
"import": "import { JobThroughput } from \"@krizaka/charts/native\";",
|
|
299
|
+
"differences": [
|
|
300
|
+
"The total and the success rate are a headline above the chart.",
|
|
301
|
+
"No data table or export: swipe on the chart to hear each period."
|
|
302
|
+
],
|
|
303
|
+
"props": [
|
|
304
|
+
{
|
|
305
|
+
"component": "JobThroughput",
|
|
306
|
+
"description": "Jobs per period stacked by status (React Native): the total and the success rate first.",
|
|
307
|
+
"props": [
|
|
308
|
+
{
|
|
309
|
+
"name": "data",
|
|
310
|
+
"type": "readonly T[]",
|
|
311
|
+
"default": null,
|
|
312
|
+
"description": "The rows, in the order of the x axis.",
|
|
313
|
+
"required": true
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "title",
|
|
317
|
+
"type": "string",
|
|
318
|
+
"default": null,
|
|
319
|
+
"description": "What the chart shows: its heading and accessible name.",
|
|
320
|
+
"required": true
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "brand",
|
|
324
|
+
"type": "BrandId",
|
|
325
|
+
"default": null,
|
|
326
|
+
"description": "The brand whose palette leads. Default Krizaka.",
|
|
327
|
+
"required": false
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "empty",
|
|
331
|
+
"type": "ReactNode",
|
|
332
|
+
"default": null,
|
|
333
|
+
"description": "Shown instead of the plot when there is nothing to draw. Default: the `empty` label.",
|
|
334
|
+
"required": false
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "height",
|
|
338
|
+
"type": "number",
|
|
339
|
+
"default": null,
|
|
340
|
+
"description": "The plot's height.",
|
|
341
|
+
"required": false
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "hideTitle",
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"default": null,
|
|
347
|
+
"description": "Hide the heading (it stays the accessible name).",
|
|
348
|
+
"required": false
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"name": "labels",
|
|
352
|
+
"type": "Partial<ThroughputLabels>",
|
|
353
|
+
"default": null,
|
|
354
|
+
"description": "The words, passed translated.",
|
|
355
|
+
"required": false
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "loading",
|
|
359
|
+
"type": "boolean",
|
|
360
|
+
"default": null,
|
|
361
|
+
"description": "The data is on its way.",
|
|
362
|
+
"required": false
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "locale",
|
|
366
|
+
"type": "Locale",
|
|
367
|
+
"default": null,
|
|
368
|
+
"description": "The locale of every figure and date. Default `\"en-US\"`.",
|
|
369
|
+
"required": false
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "period",
|
|
373
|
+
"type": "CategoryFormat",
|
|
374
|
+
"default": "day",
|
|
375
|
+
"description": "How the periods are written. Default `\"day\"`.",
|
|
376
|
+
"required": false
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "scheme",
|
|
380
|
+
"type": "Mode",
|
|
381
|
+
"default": null,
|
|
382
|
+
"description": "Dark or light. Default: the device's (pass `useTheme().scheme` of\n@krizaka /ui/native to follow the app).",
|
|
383
|
+
"required": false
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "statuses",
|
|
387
|
+
"type": "readonly JobStatus[]",
|
|
388
|
+
"default": "[\n { key: \"completed\", label: \"Completed\", tone: \"success\", outcome: \"succeeded\" },\n { key: \"failed\", label: \"Failed\", tone: \"danger\", outcome: \"failed\" },\n { key: \"running\", label: \"Running\", tone: \"info\" },\n { key: \"queued\", label: \"Queued\", tone: \"neutral\" },\n]",
|
|
389
|
+
"description": "The statuses, in stacking order. Default: completed, failed, running, queued.",
|
|
390
|
+
"required": false
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "style",
|
|
394
|
+
"type": "ViewStyle",
|
|
395
|
+
"default": null,
|
|
396
|
+
"description": "The style of the chart's container (layout only: colours come from the theme).",
|
|
397
|
+
"required": false
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "theme",
|
|
401
|
+
"type": "Partial<ChartTheme>",
|
|
402
|
+
"default": null,
|
|
403
|
+
"description": "The app's colour roles (`useTheme().theme` of\n@krizaka /ui/native): a product's brand overrides apply.",
|
|
404
|
+
"required": false
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "x",
|
|
408
|
+
"type": "string | ((datum: T, index: number) => unknown)",
|
|
409
|
+
"default": "\"day\" as Accessor<T, unknown>",
|
|
410
|
+
"description": "The field of the period. Default `\"day\"`.",
|
|
411
|
+
"required": false
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"examples": [
|
|
417
|
+
{
|
|
418
|
+
"name": "week-of-jobs",
|
|
419
|
+
"title": "A week of jobs",
|
|
420
|
+
"description": "The mobile Jobs screen: the week's jobs by status.",
|
|
421
|
+
"path": "examples/job-throughput/native/week-of-jobs.tsx",
|
|
422
|
+
"module": "@krizaka/charts/registry/examples/job-throughput/native/week-of-jobs",
|
|
423
|
+
"code": "import { JobThroughput } from \"@krizaka/charts/native\";\n\nconst days = [\n { day: \"2026-10-05\", completed: 1_240, failed: 38, running: 0, queued: 0 },\n { day: \"2026-10-06\", completed: 1_612, failed: 41, running: 0, queued: 0 },\n { day: \"2026-10-07\", completed: 1_505, failed: 95, running: 0, queued: 0 },\n { day: \"2026-10-08\", completed: 1_788, failed: 27, running: 0, queued: 0 },\n { day: \"2026-10-09\", completed: 1_934, failed: 33, running: 0, queued: 0 },\n { day: \"2026-10-10\", completed: 1_102, failed: 19, running: 0, queued: 0 },\n { day: \"2026-10-11\", completed: 986, failed: 12, running: 24, queued: 63 },\n];\n\n// The mobile Jobs screen: the total and the success rate first.\nexport default function NativeWeekOfJobs() {\n return <JobThroughput title=\"Jobs this week\" data={days} height={160} labels={{ total: \"jobs over {count} days\" }} />;\n}\n",
|
|
424
|
+
"screenshots": {
|
|
425
|
+
"dark": "examples/job-throughput/native/week-of-jobs.dark.png",
|
|
426
|
+
"light": "examples/job-throughput/native/week-of-jobs.light.png"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
"files": [],
|
|
432
|
+
"dependencies": [
|
|
433
|
+
"@krizaka/intl@workspace:^",
|
|
434
|
+
"d3-geo@^3.1.1",
|
|
435
|
+
"echarts@^6.1.0",
|
|
436
|
+
"topojson-client@^3.1.0"
|
|
437
|
+
],
|
|
438
|
+
"registryDependencies": [],
|
|
439
|
+
"demo": {
|
|
440
|
+
"path": "examples/job-throughput/week-of-jobs.tsx",
|
|
441
|
+
"content": "import { JobThroughput } from \"@krizaka/charts/throughput\";\n\n// Orazaka jobs per day, by status (the default statuses: completed, failed, running, queued).\nconst days = [\n { day: \"2026-10-05\", completed: 1_240, failed: 38, running: 0, queued: 0 },\n { day: \"2026-10-06\", completed: 1_612, failed: 41, running: 0, queued: 0 },\n { day: \"2026-10-07\", completed: 1_505, failed: 95, running: 0, queued: 0 },\n { day: \"2026-10-08\", completed: 1_788, failed: 27, running: 0, queued: 0 },\n { day: \"2026-10-09\", completed: 1_934, failed: 33, running: 0, queued: 0 },\n { day: \"2026-10-10\", completed: 1_102, failed: 19, running: 0, queued: 0 },\n { day: \"2026-10-11\", completed: 986, failed: 12, running: 24, queued: 63 },\n];\n\nexport default function WeekOfJobs() {\n return <JobThroughput title=\"Jobs this week\" data={days} labels={{ total: \"jobs over {count} days\" }} />;\n}\n"
|
|
442
|
+
},
|
|
443
|
+
"props": [
|
|
444
|
+
{
|
|
445
|
+
"component": "JobThroughput",
|
|
446
|
+
"description": "Jobs per period, stacked by status, with the total and the success rate.",
|
|
447
|
+
"props": [
|
|
448
|
+
{
|
|
449
|
+
"name": "data",
|
|
450
|
+
"type": "readonly T[]",
|
|
451
|
+
"default": null,
|
|
452
|
+
"description": "The rows, in the order of the x axis.",
|
|
453
|
+
"required": true
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "title",
|
|
457
|
+
"type": "string",
|
|
458
|
+
"default": null,
|
|
459
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
|
|
460
|
+
"required": true
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "brand",
|
|
464
|
+
"type": "BrandId",
|
|
465
|
+
"default": null,
|
|
466
|
+
"description": "The brand whose palette the charts use. Without it, a chart follows a `.brand-<id>` ancestor, else Krizaka. Set it\nwhen the app loads a brand stylesheet on `:root` (`@krizaka/tokens/brands/orazaka.css`).",
|
|
467
|
+
"required": false
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "className",
|
|
471
|
+
"type": "string",
|
|
472
|
+
"default": null,
|
|
473
|
+
"description": "A class on the figure (layout: margins, grid placement).",
|
|
474
|
+
"required": false
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "dataTable",
|
|
478
|
+
"type": "boolean",
|
|
479
|
+
"default": null,
|
|
480
|
+
"description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
|
|
481
|
+
"required": false
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "description",
|
|
485
|
+
"type": "ReactNode",
|
|
486
|
+
"default": null,
|
|
487
|
+
"description": "A sentence under the title: the period, the unit, the source.",
|
|
488
|
+
"required": false
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "empty",
|
|
492
|
+
"type": "ReactNode",
|
|
493
|
+
"default": null,
|
|
494
|
+
"description": "What to show when there is nothing to draw (default: the `empty` label). An `EmptyState` of\n@krizaka /ui fits.",
|
|
495
|
+
"required": false
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "error",
|
|
499
|
+
"type": "ReactNode",
|
|
500
|
+
"default": null,
|
|
501
|
+
"description": "The data could not be loaded: `true` says the default words, a node says yours (a retry button…).",
|
|
502
|
+
"required": false
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "exportable",
|
|
506
|
+
"type": "boolean | readonly ExportFormat[]",
|
|
507
|
+
"default": null,
|
|
508
|
+
"description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
|
|
509
|
+
"required": false
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "height",
|
|
513
|
+
"type": "number",
|
|
514
|
+
"default": null,
|
|
515
|
+
"description": "The height of the plot in pixels. Default 280 (a sparkline: 32).",
|
|
516
|
+
"required": false
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "hideSummary",
|
|
520
|
+
"type": "boolean",
|
|
521
|
+
"default": null,
|
|
522
|
+
"description": "Hide the total and the success rate above the bars.",
|
|
523
|
+
"required": false
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "hideTitle",
|
|
527
|
+
"type": "boolean",
|
|
528
|
+
"default": null,
|
|
529
|
+
"description": "Visually hide the title (it stays the chart's accessible name): a card that already has its heading.",
|
|
530
|
+
"required": false
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "id",
|
|
534
|
+
"type": "string",
|
|
535
|
+
"default": null,
|
|
536
|
+
"description": "The id of the figure.",
|
|
537
|
+
"required": false
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "labels",
|
|
541
|
+
"type": "Partial<ThroughputLabels>",
|
|
542
|
+
"default": null,
|
|
543
|
+
"description": "The words, passed translated; English by default.",
|
|
544
|
+
"required": false
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "legend",
|
|
548
|
+
"type": "boolean",
|
|
549
|
+
"default": null,
|
|
550
|
+
"description": "Show the legend (from two series). Default true.",
|
|
551
|
+
"required": false
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "live",
|
|
555
|
+
"type": "boolean",
|
|
556
|
+
"default": null,
|
|
557
|
+
"description": "Streaming data (a job queue, an auction): no entrance on updates, no announcement of every new point.",
|
|
558
|
+
"required": false
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "loading",
|
|
562
|
+
"type": "boolean",
|
|
563
|
+
"default": null,
|
|
564
|
+
"description": "The data is on its way: a skeleton of the chart, announced once.",
|
|
565
|
+
"required": false
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "locale",
|
|
569
|
+
"type": "Locale",
|
|
570
|
+
"default": null,
|
|
571
|
+
"description": "The locale of every figure and date (`\"fr-FR\"`). Default `\"en-US\"`.",
|
|
572
|
+
"required": false
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"name": "markers",
|
|
576
|
+
"type": "readonly Marker[]",
|
|
577
|
+
"default": null,
|
|
578
|
+
"description": "Vertical markers at a category: a launch, an incident.",
|
|
579
|
+
"required": false
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "onSelect",
|
|
583
|
+
"type": "((datum: T, index: number) => void)",
|
|
584
|
+
"default": null,
|
|
585
|
+
"description": "Called with the row when a point or a bar is clicked (or Enter is pressed on it).",
|
|
586
|
+
"required": false
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"name": "period",
|
|
590
|
+
"type": "CategoryFormat",
|
|
591
|
+
"default": "day",
|
|
592
|
+
"description": "How the periods are written. Default `\"day\"` (`Oct 11`); `\"time\"` for hours.",
|
|
593
|
+
"required": false
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "statuses",
|
|
597
|
+
"type": "readonly JobStatus[]",
|
|
598
|
+
"default": "[\n { key: \"completed\", label: \"Completed\", tone: \"success\", outcome: \"succeeded\" },\n { key: \"failed\", label: \"Failed\", tone: \"danger\", outcome: \"failed\" },\n { key: \"running\", label: \"Running\", tone: \"info\" },\n { key: \"queued\", label: \"Queued\", tone: \"neutral\" },\n]",
|
|
599
|
+
"description": "The statuses, in stacking order, with their field, name and tone. Default: completed, failed, running, queued.",
|
|
600
|
+
"required": false
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "style",
|
|
604
|
+
"type": "CSSProperties",
|
|
605
|
+
"default": null,
|
|
606
|
+
"description": "Inline style on the figure (layout only: colours come from the tokens).",
|
|
607
|
+
"required": false
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "summary",
|
|
611
|
+
"type": "\"hidden\" | \"visible\"",
|
|
612
|
+
"default": null,
|
|
613
|
+
"description": "The written summary: read by screen readers only (`\"hidden\"`, default), or shown under the chart (`\"visible\"`).",
|
|
614
|
+
"required": false
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "summaryText",
|
|
618
|
+
"type": "string",
|
|
619
|
+
"default": null,
|
|
620
|
+
"description": "Your own summary instead of the generated one (still read first by screen readers).",
|
|
621
|
+
"required": false
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "thresholds",
|
|
625
|
+
"type": "readonly Threshold[]",
|
|
626
|
+
"default": null,
|
|
627
|
+
"description": "Horizontal lines at a value: a goal, a payout threshold.",
|
|
628
|
+
"required": false
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "x",
|
|
632
|
+
"type": "string | ((datum: T, index: number) => unknown)",
|
|
633
|
+
"default": "\"day\" as Accessor<T, unknown>",
|
|
634
|
+
"description": "The field (or function) of the period. Default `\"day\"`.",
|
|
635
|
+
"required": false
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "xLabel",
|
|
639
|
+
"type": "string",
|
|
640
|
+
"default": null,
|
|
641
|
+
"description": "The header of the categories in the data table (`Month`).",
|
|
642
|
+
"required": false
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "zero",
|
|
646
|
+
"type": "boolean",
|
|
647
|
+
"default": null,
|
|
648
|
+
"description": "Start the value axis at zero. Default: true for bars and areas; for lines, unless the values sit far from zero.",
|
|
649
|
+
"required": false
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
]
|
|
654
|
+
}
|