@krizaka/charts 0.3.0 → 0.4.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 +1 -1
- package/dist/actions-5VG352VZ.js +53 -0
- package/dist/actions-5VG352VZ.js.map +1 -0
- package/dist/bar.d.ts +3 -3
- package/dist/bar.js +7 -6
- package/dist/candlestick.d.ts +2 -2
- package/dist/candlestick.js +6 -5
- package/dist/card.d.ts +52 -0
- package/dist/card.js +19 -0
- package/dist/card.js.map +1 -0
- package/dist/{cartesian-BRhNQ3ib.d.ts → cartesian-CEY_wwe_.d.ts} +12 -2
- package/dist/chart.d.ts +2 -2
- package/dist/chart.js +5 -4
- package/dist/{chunk-BV4DBGN7.js → chunk-7W4T255Q.js} +4 -4
- package/dist/{chunk-W5ILLSPK.js → chunk-AGSSNMK5.js} +5 -5
- package/dist/{chunk-VKZZY2QD.js → chunk-FE4LUGAE.js} +5 -5
- package/dist/{chunk-ARARFMNE.js → chunk-FIQHMJZK.js} +5 -5
- package/dist/chunk-FIQHMJZK.js.map +1 -0
- package/dist/{chunk-ANUCSRUN.js → chunk-GD7TWEN3.js} +3 -3
- package/dist/chunk-GRRFPI27.js +89 -0
- package/dist/chunk-GRRFPI27.js.map +1 -0
- package/dist/{chunk-SLEJDQ3A.js → chunk-HH65IEUV.js} +3 -3
- package/dist/{chunk-OIRHLJBC.js → chunk-IJTI6VJD.js} +3 -3
- package/dist/{chunk-WVTIKOII.js → chunk-IURCLBUQ.js} +2 -2
- package/dist/{chunk-CVWSMUUB.js → chunk-JST4HJC3.js} +33 -15
- package/dist/chunk-JST4HJC3.js.map +1 -0
- package/dist/{chunk-IKQV3NSL.js → chunk-KERGFVSN.js} +3 -3
- package/dist/{chunk-XDDALY4C.js → chunk-KMQ7RANJ.js} +5 -5
- package/dist/{chunk-NCIQMRV3.js → chunk-LLUQEK5J.js} +5 -5
- package/dist/{chunk-AA5EWWYV.js → chunk-LZPZWBBY.js} +2 -2
- package/dist/{chunk-PBQV3B6O.js → chunk-MK2ZFUWM.js} +31 -16
- package/dist/chunk-MK2ZFUWM.js.map +1 -0
- package/dist/{chunk-CSSZLFLO.js → chunk-MRGMLDNS.js} +5 -5
- package/dist/{chunk-I3D7KUGN.js → chunk-NLTZWJLV.js} +3 -3
- package/dist/{chunk-PWMMXRMC.js → chunk-NV52AKHG.js} +3 -3
- package/dist/{chunk-MXLITIGU.js → chunk-NWJ5VDN7.js} +5 -5
- package/dist/{chunk-3CJHBJXA.js → chunk-OVASCEGF.js} +12 -73
- package/dist/chunk-OVASCEGF.js.map +1 -0
- package/dist/{chunk-EQLC2QVN.js → chunk-OZOAKP5F.js} +4 -4
- package/dist/chunk-OZOAKP5F.js.map +1 -0
- package/dist/{chunk-KNDHO67X.js → chunk-P2NK5L3B.js} +3 -3
- package/dist/{chunk-JTKR7ZWP.js → chunk-P6RS2L23.js} +140 -36
- package/dist/chunk-P6RS2L23.js.map +1 -0
- package/dist/{chunk-W5FX4TU3.js → chunk-PGD6SH5I.js} +30 -2
- package/dist/chunk-PGD6SH5I.js.map +1 -0
- package/dist/{chunk-4LBXEAGC.js → chunk-PWZHIGPO.js} +5 -5
- package/dist/{chunk-L2EKYWVI.js → chunk-VEOJNMPF.js} +3 -3
- package/dist/chunk-YHQFW2PR.js +71 -0
- package/dist/chunk-YHQFW2PR.js.map +1 -0
- package/dist/{chunk-C4MFZLJM.js → chunk-Z4T3JFNU.js} +2 -2
- package/dist/{chunk-EEP7PS2L.js → chunk-ZF7LVQTR.js} +3 -3
- package/dist/{context-BgYUymEO.d.ts → context-DNW7bJYw.d.ts} +19 -0
- package/dist/credits.d.ts +1 -1
- package/dist/credits.js +7 -6
- package/dist/earnings.d.ts +3 -3
- package/dist/earnings.js +8 -7
- package/dist/{frame-I7_xYGy5.d.ts → frame-B1HDNm7c.d.ts} +9 -5
- package/dist/funnel.d.ts +2 -2
- package/dist/funnel.js +6 -5
- package/dist/gauge.d.ts +2 -2
- package/dist/gauge.js +4 -3
- package/dist/geo.d.ts +2 -2
- package/dist/geo.js +5 -4
- package/dist/globe.d.ts +2 -2
- package/dist/globe.js +4 -3
- package/dist/goal.d.ts +2 -2
- package/dist/goal.js +5 -4
- package/dist/heatmap.d.ts +2 -2
- package/dist/heatmap.js +6 -5
- package/dist/index.d.ts +5 -3
- package/dist/index.js +45 -37
- package/dist/latency.d.ts +3 -3
- package/dist/latency.js +8 -7
- package/dist/line.d.ts +3 -3
- package/dist/line.js +7 -6
- package/dist/native.d.ts +19 -0
- package/dist/native.js +13 -1
- package/dist/native.js.map +1 -1
- package/dist/pie.d.ts +2 -2
- package/dist/pie.js +6 -5
- package/dist/provider.d.ts +2 -2
- package/dist/provider.js +4 -2
- package/dist/radar.d.ts +2 -2
- package/dist/radar.js +6 -5
- package/dist/sankey.d.ts +2 -2
- package/dist/sankey.js +6 -5
- package/dist/scatter.d.ts +2 -2
- package/dist/scatter.js +6 -5
- package/dist/sparkline.d.ts +2 -2
- package/dist/sparkline.js +6 -5
- package/dist/table-sheet-CQBIAV5N.js +36 -0
- package/dist/table-sheet-CQBIAV5N.js.map +1 -0
- package/dist/throughput.d.ts +3 -3
- package/dist/throughput.js +8 -7
- package/dist/ticker.d.ts +3 -3
- package/dist/ticker.js +8 -7
- package/dist/treemap.d.ts +2 -2
- package/dist/treemap.js +7 -6
- package/package.json +295 -53
- package/registry/area-chart.json +82 -12
- package/registry/bar-chart.json +82 -12
- package/registry/calendar-heatmap.json +46 -18
- package/registry/candlestick.json +46 -18
- package/registry/chart-card.json +235 -0
- package/registry/chart.json +40 -12
- package/registry/charts-provider.json +2 -2
- package/registry/earnings-chart.json +82 -12
- package/registry/examples/chart-card/before-after.d.ts +4 -0
- package/registry/examples/chart-card/before-after.js +22 -0
- package/registry/examples/chart-card/before-after.tsx +22 -0
- package/registry/examples/chart-card/jobs-activity.d.ts +4 -0
- package/registry/examples/chart-card/jobs-activity.js +20 -0
- package/registry/examples/chart-card/jobs-activity.tsx +20 -0
- package/registry/examples/chart-card/sparse-and-empty.d.ts +4 -0
- package/registry/examples/chart-card/sparse-and-empty.js +16 -0
- package/registry/examples/chart-card/sparse-and-empty.tsx +18 -0
- package/registry/examples/chart-card/usage-donut.d.ts +4 -0
- package/registry/examples/chart-card/usage-donut.js +18 -0
- package/registry/examples/chart-card/usage-donut.tsx +18 -0
- package/registry/examples/charts-provider/french-orazaka.js +1 -1
- package/registry/examples/charts-provider/french-orazaka.tsx +1 -1
- package/registry/examples/kpi-stat/dashboard-row.d.ts +4 -0
- package/registry/examples/kpi-stat/dashboard-row.js +19 -0
- package/registry/examples/kpi-stat/dashboard-row.tsx +17 -0
- package/registry/examples/kpi-stat/single.d.ts +4 -0
- package/registry/examples/kpi-stat/single.js +11 -0
- package/registry/examples/kpi-stat/single.tsx +6 -0
- package/registry/funnel.json +46 -18
- package/registry/gauge.json +42 -14
- package/registry/geo-map.json +46 -18
- package/registry/globe.json +40 -12
- package/registry/goal-progress.json +36 -8
- package/registry/heatmap.json +46 -18
- package/registry/index.json +49 -1
- package/registry/job-throughput.json +82 -12
- package/registry/kpi-stat.json +296 -0
- package/registry/latency-chart.json +82 -12
- package/registry/line-chart.json +82 -12
- package/registry/pie-chart.json +92 -36
- package/registry/price-ticker.json +82 -12
- package/registry/radar-chart.json +46 -18
- package/registry/sankey.json +46 -18
- package/registry/scatter-chart.json +46 -18
- package/registry/sparkline.json +38 -10
- package/registry/treemap.json +40 -12
- package/dist/chunk-3CJHBJXA.js.map +0 -1
- package/dist/chunk-ARARFMNE.js.map +0 -1
- package/dist/chunk-CVWSMUUB.js.map +0 -1
- package/dist/chunk-EQLC2QVN.js.map +0 -1
- package/dist/chunk-JTKR7ZWP.js.map +0 -1
- package/dist/chunk-PBQV3B6O.js.map +0 -1
- package/dist/chunk-W5FX4TU3.js.map +0 -1
- /package/dist/{chunk-BV4DBGN7.js.map → chunk-7W4T255Q.js.map} +0 -0
- /package/dist/{chunk-W5ILLSPK.js.map → chunk-AGSSNMK5.js.map} +0 -0
- /package/dist/{chunk-VKZZY2QD.js.map → chunk-FE4LUGAE.js.map} +0 -0
- /package/dist/{chunk-ANUCSRUN.js.map → chunk-GD7TWEN3.js.map} +0 -0
- /package/dist/{chunk-SLEJDQ3A.js.map → chunk-HH65IEUV.js.map} +0 -0
- /package/dist/{chunk-OIRHLJBC.js.map → chunk-IJTI6VJD.js.map} +0 -0
- /package/dist/{chunk-WVTIKOII.js.map → chunk-IURCLBUQ.js.map} +0 -0
- /package/dist/{chunk-IKQV3NSL.js.map → chunk-KERGFVSN.js.map} +0 -0
- /package/dist/{chunk-XDDALY4C.js.map → chunk-KMQ7RANJ.js.map} +0 -0
- /package/dist/{chunk-NCIQMRV3.js.map → chunk-LLUQEK5J.js.map} +0 -0
- /package/dist/{chunk-AA5EWWYV.js.map → chunk-LZPZWBBY.js.map} +0 -0
- /package/dist/{chunk-CSSZLFLO.js.map → chunk-MRGMLDNS.js.map} +0 -0
- /package/dist/{chunk-I3D7KUGN.js.map → chunk-NLTZWJLV.js.map} +0 -0
- /package/dist/{chunk-PWMMXRMC.js.map → chunk-NV52AKHG.js.map} +0 -0
- /package/dist/{chunk-MXLITIGU.js.map → chunk-NWJ5VDN7.js.map} +0 -0
- /package/dist/{chunk-KNDHO67X.js.map → chunk-P2NK5L3B.js.map} +0 -0
- /package/dist/{chunk-4LBXEAGC.js.map → chunk-PWZHIGPO.js.map} +0 -0
- /package/dist/{chunk-L2EKYWVI.js.map → chunk-VEOJNMPF.js.map} +0 -0
- /package/dist/{chunk-C4MFZLJM.js.map → chunk-Z4T3JFNU.js.map} +0 -0
- /package/dist/{chunk-EEP7PS2L.js.map → chunk-ZF7LVQTR.js.map} +0 -0
package/registry/globe.json
CHANGED
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
"required": true
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"name": "
|
|
79
|
-
"type": "
|
|
78
|
+
"name": "actionsMenu",
|
|
79
|
+
"type": "boolean",
|
|
80
80
|
"default": null,
|
|
81
|
-
"description": "
|
|
82
|
-
"required":
|
|
81
|
+
"description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
|
|
82
|
+
"required": false
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"name": "arcs",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"name": "dataTable",
|
|
121
121
|
"type": "boolean",
|
|
122
122
|
"default": null,
|
|
123
|
-
"description": "
|
|
123
|
+
"description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
|
|
124
124
|
"required": false
|
|
125
125
|
},
|
|
126
126
|
{
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"name": "exportable",
|
|
149
149
|
"type": "boolean | readonly ExportFormat[]",
|
|
150
150
|
"default": null,
|
|
151
|
-
"description": "
|
|
151
|
+
"description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
|
|
152
152
|
"required": false
|
|
153
153
|
},
|
|
154
154
|
{
|
|
@@ -179,6 +179,13 @@
|
|
|
179
179
|
"description": "The id of the figure.",
|
|
180
180
|
"required": false
|
|
181
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"name": "insight",
|
|
184
|
+
"type": "ReactNode",
|
|
185
|
+
"default": null,
|
|
186
|
+
"description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
|
|
187
|
+
"required": false
|
|
188
|
+
},
|
|
182
189
|
{
|
|
183
190
|
"name": "labels",
|
|
184
191
|
"type": "ChartLabelsInput",
|
|
@@ -242,6 +249,13 @@
|
|
|
242
249
|
"description": "Your own summary instead of the generated one (still read first by screen readers).",
|
|
243
250
|
"required": false
|
|
244
251
|
},
|
|
252
|
+
{
|
|
253
|
+
"name": "title",
|
|
254
|
+
"type": "string",
|
|
255
|
+
"default": null,
|
|
256
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`. Inside a `ChartCard`, the card's title is the default.",
|
|
257
|
+
"required": false
|
|
258
|
+
},
|
|
245
259
|
{
|
|
246
260
|
"name": "valueLabel",
|
|
247
261
|
"type": "string",
|
|
@@ -289,11 +303,11 @@
|
|
|
289
303
|
"required": true
|
|
290
304
|
},
|
|
291
305
|
{
|
|
292
|
-
"name": "
|
|
293
|
-
"type": "
|
|
306
|
+
"name": "actionsMenu",
|
|
307
|
+
"type": "boolean",
|
|
294
308
|
"default": null,
|
|
295
|
-
"description": "
|
|
296
|
-
"required":
|
|
309
|
+
"description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
|
|
310
|
+
"required": false
|
|
297
311
|
},
|
|
298
312
|
{
|
|
299
313
|
"name": "arcs",
|
|
@@ -334,7 +348,7 @@
|
|
|
334
348
|
"name": "dataTable",
|
|
335
349
|
"type": "boolean",
|
|
336
350
|
"default": null,
|
|
337
|
-
"description": "
|
|
351
|
+
"description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
|
|
338
352
|
"required": false
|
|
339
353
|
},
|
|
340
354
|
{
|
|
@@ -362,7 +376,7 @@
|
|
|
362
376
|
"name": "exportable",
|
|
363
377
|
"type": "boolean | readonly ExportFormat[]",
|
|
364
378
|
"default": null,
|
|
365
|
-
"description": "
|
|
379
|
+
"description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
|
|
366
380
|
"required": false
|
|
367
381
|
},
|
|
368
382
|
{
|
|
@@ -393,6 +407,13 @@
|
|
|
393
407
|
"description": "The id of the figure.",
|
|
394
408
|
"required": false
|
|
395
409
|
},
|
|
410
|
+
{
|
|
411
|
+
"name": "insight",
|
|
412
|
+
"type": "ReactNode",
|
|
413
|
+
"default": null,
|
|
414
|
+
"description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
|
|
415
|
+
"required": false
|
|
416
|
+
},
|
|
396
417
|
{
|
|
397
418
|
"name": "labels",
|
|
398
419
|
"type": "ChartLabelsInput",
|
|
@@ -456,6 +477,13 @@
|
|
|
456
477
|
"description": "Your own summary instead of the generated one (still read first by screen readers).",
|
|
457
478
|
"required": false
|
|
458
479
|
},
|
|
480
|
+
{
|
|
481
|
+
"name": "title",
|
|
482
|
+
"type": "string",
|
|
483
|
+
"default": null,
|
|
484
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`. Inside a `ChartCard`, the card's title is the default.",
|
|
485
|
+
"required": false
|
|
486
|
+
},
|
|
459
487
|
{
|
|
460
488
|
"name": "valueLabel",
|
|
461
489
|
"type": "string",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"required": true
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
"name": "
|
|
80
|
-
"type": "
|
|
79
|
+
"name": "actionsMenu",
|
|
80
|
+
"type": "boolean",
|
|
81
81
|
"default": null,
|
|
82
|
-
"description": "
|
|
83
|
-
"required":
|
|
82
|
+
"description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
|
|
83
|
+
"required": false
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": "brand",
|
|
@@ -138,6 +138,13 @@
|
|
|
138
138
|
"description": "The id of the figure.",
|
|
139
139
|
"required": false
|
|
140
140
|
},
|
|
141
|
+
{
|
|
142
|
+
"name": "insight",
|
|
143
|
+
"type": "ReactNode",
|
|
144
|
+
"default": null,
|
|
145
|
+
"description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
|
|
146
|
+
"required": false
|
|
147
|
+
},
|
|
141
148
|
{
|
|
142
149
|
"name": "labels",
|
|
143
150
|
"type": "Partial<GoalLabels>",
|
|
@@ -200,6 +207,13 @@
|
|
|
200
207
|
"default": null,
|
|
201
208
|
"description": "The time left, written by the app (a `Countdown`, “2 days”).",
|
|
202
209
|
"required": false
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "title",
|
|
213
|
+
"type": "string",
|
|
214
|
+
"default": null,
|
|
215
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`. Inside a `ChartCard`, the card's title is the default.",
|
|
216
|
+
"required": false
|
|
203
217
|
}
|
|
204
218
|
]
|
|
205
219
|
}
|
|
@@ -389,11 +403,11 @@
|
|
|
389
403
|
"required": true
|
|
390
404
|
},
|
|
391
405
|
{
|
|
392
|
-
"name": "
|
|
393
|
-
"type": "
|
|
406
|
+
"name": "actionsMenu",
|
|
407
|
+
"type": "boolean",
|
|
394
408
|
"default": null,
|
|
395
|
-
"description": "
|
|
396
|
-
"required":
|
|
409
|
+
"description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
|
|
410
|
+
"required": false
|
|
397
411
|
},
|
|
398
412
|
{
|
|
399
413
|
"name": "brand",
|
|
@@ -451,6 +465,13 @@
|
|
|
451
465
|
"description": "The id of the figure.",
|
|
452
466
|
"required": false
|
|
453
467
|
},
|
|
468
|
+
{
|
|
469
|
+
"name": "insight",
|
|
470
|
+
"type": "ReactNode",
|
|
471
|
+
"default": null,
|
|
472
|
+
"description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
|
|
473
|
+
"required": false
|
|
474
|
+
},
|
|
454
475
|
{
|
|
455
476
|
"name": "labels",
|
|
456
477
|
"type": "Partial<GoalLabels>",
|
|
@@ -513,6 +534,13 @@
|
|
|
513
534
|
"default": null,
|
|
514
535
|
"description": "The time left, written by the app (a `Countdown`, “2 days”).",
|
|
515
536
|
"required": false
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "title",
|
|
540
|
+
"type": "string",
|
|
541
|
+
"default": null,
|
|
542
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`. Inside a `ChartCard`, the card's title is the default.",
|
|
543
|
+
"required": false
|
|
516
544
|
}
|
|
517
545
|
]
|
|
518
546
|
}
|
package/registry/heatmap.json
CHANGED
|
@@ -80,13 +80,6 @@
|
|
|
80
80
|
"description": "One row per cell.",
|
|
81
81
|
"required": true
|
|
82
82
|
},
|
|
83
|
-
{
|
|
84
|
-
"name": "title",
|
|
85
|
-
"type": "string",
|
|
86
|
-
"default": null,
|
|
87
|
-
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
|
|
88
|
-
"required": true
|
|
89
|
-
},
|
|
90
83
|
{
|
|
91
84
|
"name": "value",
|
|
92
85
|
"type": "string | ((datum: T, index: number) => number)",
|
|
@@ -108,6 +101,13 @@
|
|
|
108
101
|
"description": "The field of the row (a weekday, a team).",
|
|
109
102
|
"required": true
|
|
110
103
|
},
|
|
104
|
+
{
|
|
105
|
+
"name": "actionsMenu",
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": null,
|
|
108
|
+
"description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
|
|
109
|
+
"required": false
|
|
110
|
+
},
|
|
111
111
|
{
|
|
112
112
|
"name": "brand",
|
|
113
113
|
"type": "BrandId",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"name": "dataTable",
|
|
127
127
|
"type": "boolean",
|
|
128
128
|
"default": null,
|
|
129
|
-
"description": "
|
|
129
|
+
"description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
|
|
130
130
|
"required": false
|
|
131
131
|
},
|
|
132
132
|
{
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"name": "exportable",
|
|
155
155
|
"type": "boolean | readonly ExportFormat[]",
|
|
156
156
|
"default": null,
|
|
157
|
-
"description": "
|
|
157
|
+
"description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
|
|
158
158
|
"required": false
|
|
159
159
|
},
|
|
160
160
|
{
|
|
@@ -185,6 +185,13 @@
|
|
|
185
185
|
"description": "The id of the figure.",
|
|
186
186
|
"required": false
|
|
187
187
|
},
|
|
188
|
+
{
|
|
189
|
+
"name": "insight",
|
|
190
|
+
"type": "ReactNode",
|
|
191
|
+
"default": null,
|
|
192
|
+
"description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
|
|
193
|
+
"required": false
|
|
194
|
+
},
|
|
188
195
|
{
|
|
189
196
|
"name": "labels",
|
|
190
197
|
"type": "ChartLabelsInput",
|
|
@@ -241,6 +248,13 @@
|
|
|
241
248
|
"description": "Your own summary instead of the generated one (still read first by screen readers).",
|
|
242
249
|
"required": false
|
|
243
250
|
},
|
|
251
|
+
{
|
|
252
|
+
"name": "title",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"default": null,
|
|
255
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`. Inside a `ChartCard`, the card's title is the default.",
|
|
256
|
+
"required": false
|
|
257
|
+
},
|
|
244
258
|
{
|
|
245
259
|
"name": "xCategories",
|
|
246
260
|
"type": "readonly unknown[]",
|
|
@@ -322,13 +336,6 @@
|
|
|
322
336
|
"description": "One row per cell.",
|
|
323
337
|
"required": true
|
|
324
338
|
},
|
|
325
|
-
{
|
|
326
|
-
"name": "title",
|
|
327
|
-
"type": "string",
|
|
328
|
-
"default": null,
|
|
329
|
-
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
|
|
330
|
-
"required": true
|
|
331
|
-
},
|
|
332
339
|
{
|
|
333
340
|
"name": "value",
|
|
334
341
|
"type": "string | ((datum: T, index: number) => number)",
|
|
@@ -350,6 +357,13 @@
|
|
|
350
357
|
"description": "The field of the row (a weekday, a team).",
|
|
351
358
|
"required": true
|
|
352
359
|
},
|
|
360
|
+
{
|
|
361
|
+
"name": "actionsMenu",
|
|
362
|
+
"type": "boolean",
|
|
363
|
+
"default": null,
|
|
364
|
+
"description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
|
|
365
|
+
"required": false
|
|
366
|
+
},
|
|
353
367
|
{
|
|
354
368
|
"name": "brand",
|
|
355
369
|
"type": "BrandId",
|
|
@@ -368,7 +382,7 @@
|
|
|
368
382
|
"name": "dataTable",
|
|
369
383
|
"type": "boolean",
|
|
370
384
|
"default": null,
|
|
371
|
-
"description": "
|
|
385
|
+
"description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
|
|
372
386
|
"required": false
|
|
373
387
|
},
|
|
374
388
|
{
|
|
@@ -396,7 +410,7 @@
|
|
|
396
410
|
"name": "exportable",
|
|
397
411
|
"type": "boolean | readonly ExportFormat[]",
|
|
398
412
|
"default": null,
|
|
399
|
-
"description": "
|
|
413
|
+
"description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
|
|
400
414
|
"required": false
|
|
401
415
|
},
|
|
402
416
|
{
|
|
@@ -427,6 +441,13 @@
|
|
|
427
441
|
"description": "The id of the figure.",
|
|
428
442
|
"required": false
|
|
429
443
|
},
|
|
444
|
+
{
|
|
445
|
+
"name": "insight",
|
|
446
|
+
"type": "ReactNode",
|
|
447
|
+
"default": null,
|
|
448
|
+
"description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
|
|
449
|
+
"required": false
|
|
450
|
+
},
|
|
430
451
|
{
|
|
431
452
|
"name": "labels",
|
|
432
453
|
"type": "ChartLabelsInput",
|
|
@@ -483,6 +504,13 @@
|
|
|
483
504
|
"description": "Your own summary instead of the generated one (still read first by screen readers).",
|
|
484
505
|
"required": false
|
|
485
506
|
},
|
|
507
|
+
{
|
|
508
|
+
"name": "title",
|
|
509
|
+
"type": "string",
|
|
510
|
+
"default": null,
|
|
511
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`. Inside a `ChartCard`, the card's title is the default.",
|
|
512
|
+
"required": false
|
|
513
|
+
},
|
|
486
514
|
{
|
|
487
515
|
"name": "xCategories",
|
|
488
516
|
"type": "readonly unknown[]",
|
package/registry/index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krizaka/charts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"items": [
|
|
5
5
|
{
|
|
6
6
|
"name": "area-chart",
|
|
@@ -122,6 +122,30 @@
|
|
|
122
122
|
],
|
|
123
123
|
"registryDependencies": []
|
|
124
124
|
},
|
|
125
|
+
{
|
|
126
|
+
"name": "chart-card",
|
|
127
|
+
"type": "chart",
|
|
128
|
+
"package": "@krizaka/charts",
|
|
129
|
+
"engine": null,
|
|
130
|
+
"tier": "ready-made",
|
|
131
|
+
"title": "Chart card",
|
|
132
|
+
"summary": "The frame of a chart: title, one line of insight, the chart, a footer, and the actions menu (view as table, download, copy) — used everywhere a chart is shown.",
|
|
133
|
+
"description": "The frame of a chart: title, one line of insight, the chart, a footer, and the actions menu (view as table, download, copy) — used everywhere a chart is shown.",
|
|
134
|
+
"status": "beta",
|
|
135
|
+
"category": "charts",
|
|
136
|
+
"platforms": "web",
|
|
137
|
+
"examples": {
|
|
138
|
+
"web": 4,
|
|
139
|
+
"native": 0
|
|
140
|
+
},
|
|
141
|
+
"dependencies": [
|
|
142
|
+
"@krizaka/intl@workspace:^",
|
|
143
|
+
"d3-geo@^3.1.1",
|
|
144
|
+
"echarts@^6.1.0",
|
|
145
|
+
"topojson-client@^3.1.0"
|
|
146
|
+
],
|
|
147
|
+
"registryDependencies": []
|
|
148
|
+
},
|
|
125
149
|
{
|
|
126
150
|
"name": "charts-provider",
|
|
127
151
|
"type": "chart",
|
|
@@ -362,6 +386,30 @@
|
|
|
362
386
|
],
|
|
363
387
|
"registryDependencies": []
|
|
364
388
|
},
|
|
389
|
+
{
|
|
390
|
+
"name": "kpi-stat",
|
|
391
|
+
"type": "chart",
|
|
392
|
+
"package": "@krizaka/charts",
|
|
393
|
+
"engine": null,
|
|
394
|
+
"tier": "ready-made",
|
|
395
|
+
"title": "KPI stat",
|
|
396
|
+
"summary": "A key figure with its change against the previous period and a sparkline of the period, on the kit's Stat.",
|
|
397
|
+
"description": "A key figure with its change against the previous period and a sparkline of the period, on the kit's Stat.",
|
|
398
|
+
"status": "beta",
|
|
399
|
+
"category": "charts",
|
|
400
|
+
"platforms": "web",
|
|
401
|
+
"examples": {
|
|
402
|
+
"web": 2,
|
|
403
|
+
"native": 0
|
|
404
|
+
},
|
|
405
|
+
"dependencies": [
|
|
406
|
+
"@krizaka/intl@workspace:^",
|
|
407
|
+
"d3-geo@^3.1.1",
|
|
408
|
+
"echarts@^6.1.0",
|
|
409
|
+
"topojson-client@^3.1.0"
|
|
410
|
+
],
|
|
411
|
+
"registryDependencies": []
|
|
412
|
+
},
|
|
365
413
|
{
|
|
366
414
|
"name": "latency-chart",
|
|
367
415
|
"type": "chart",
|
|
@@ -76,11 +76,18 @@
|
|
|
76
76
|
"required": true
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
"name": "
|
|
80
|
-
"type": "
|
|
79
|
+
"name": "actionsMenu",
|
|
80
|
+
"type": "boolean",
|
|
81
81
|
"default": null,
|
|
82
|
-
"description": "
|
|
83
|
-
"required":
|
|
82
|
+
"description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
|
|
83
|
+
"required": false
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "autoRange",
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": null,
|
|
89
|
+
"description": "Zoom the time axis on the period that has data: the empty days before the first and after the last value are\nleft out (never fewer than `minPoints`), and a sparse period says so under the chart instead of drawing 13 empty\ndays around one bar. Default false.",
|
|
90
|
+
"required": false
|
|
84
91
|
},
|
|
85
92
|
{
|
|
86
93
|
"name": "brand",
|
|
@@ -100,7 +107,7 @@
|
|
|
100
107
|
"name": "dataTable",
|
|
101
108
|
"type": "boolean",
|
|
102
109
|
"default": null,
|
|
103
|
-
"description": "
|
|
110
|
+
"description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
|
|
104
111
|
"required": false
|
|
105
112
|
},
|
|
106
113
|
{
|
|
@@ -128,7 +135,14 @@
|
|
|
128
135
|
"name": "exportable",
|
|
129
136
|
"type": "boolean | readonly ExportFormat[]",
|
|
130
137
|
"default": null,
|
|
131
|
-
"description": "
|
|
138
|
+
"description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
|
|
139
|
+
"required": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "filterable",
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"default": null,
|
|
145
|
+
"description": "The legend chips switch the series on and off. Default true.",
|
|
132
146
|
"required": false
|
|
133
147
|
},
|
|
134
148
|
{
|
|
@@ -159,6 +173,13 @@
|
|
|
159
173
|
"description": "The id of the figure.",
|
|
160
174
|
"required": false
|
|
161
175
|
},
|
|
176
|
+
{
|
|
177
|
+
"name": "insight",
|
|
178
|
+
"type": "ReactNode",
|
|
179
|
+
"default": null,
|
|
180
|
+
"description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
|
|
181
|
+
"required": false
|
|
182
|
+
},
|
|
162
183
|
{
|
|
163
184
|
"name": "labels",
|
|
164
185
|
"type": "Partial<ThroughputLabels>",
|
|
@@ -201,6 +222,13 @@
|
|
|
201
222
|
"description": "Vertical markers at a category: a launch, an incident.",
|
|
202
223
|
"required": false
|
|
203
224
|
},
|
|
225
|
+
{
|
|
226
|
+
"name": "minPoints",
|
|
227
|
+
"type": "number",
|
|
228
|
+
"default": null,
|
|
229
|
+
"description": "With `autoRange`, the fewest categories to keep so a short burst still has a time scale. Default 7.",
|
|
230
|
+
"required": false
|
|
231
|
+
},
|
|
204
232
|
{
|
|
205
233
|
"name": "onSelect",
|
|
206
234
|
"type": "((datum: T, index: number) => void)",
|
|
@@ -250,6 +278,13 @@
|
|
|
250
278
|
"description": "Horizontal lines at a value: a goal, a payout threshold.",
|
|
251
279
|
"required": false
|
|
252
280
|
},
|
|
281
|
+
{
|
|
282
|
+
"name": "title",
|
|
283
|
+
"type": "string",
|
|
284
|
+
"default": null,
|
|
285
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`. Inside a `ChartCard`, the card's title is the default.",
|
|
286
|
+
"required": false
|
|
287
|
+
},
|
|
253
288
|
{
|
|
254
289
|
"name": "x",
|
|
255
290
|
"type": "string | ((datum: T, index: number) => unknown)",
|
|
@@ -453,11 +488,18 @@
|
|
|
453
488
|
"required": true
|
|
454
489
|
},
|
|
455
490
|
{
|
|
456
|
-
"name": "
|
|
457
|
-
"type": "
|
|
491
|
+
"name": "actionsMenu",
|
|
492
|
+
"type": "boolean",
|
|
458
493
|
"default": null,
|
|
459
|
-
"description": "
|
|
460
|
-
"required":
|
|
494
|
+
"description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
|
|
495
|
+
"required": false
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "autoRange",
|
|
499
|
+
"type": "boolean",
|
|
500
|
+
"default": null,
|
|
501
|
+
"description": "Zoom the time axis on the period that has data: the empty days before the first and after the last value are\nleft out (never fewer than `minPoints`), and a sparse period says so under the chart instead of drawing 13 empty\ndays around one bar. Default false.",
|
|
502
|
+
"required": false
|
|
461
503
|
},
|
|
462
504
|
{
|
|
463
505
|
"name": "brand",
|
|
@@ -477,7 +519,7 @@
|
|
|
477
519
|
"name": "dataTable",
|
|
478
520
|
"type": "boolean",
|
|
479
521
|
"default": null,
|
|
480
|
-
"description": "
|
|
522
|
+
"description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
|
|
481
523
|
"required": false
|
|
482
524
|
},
|
|
483
525
|
{
|
|
@@ -505,7 +547,14 @@
|
|
|
505
547
|
"name": "exportable",
|
|
506
548
|
"type": "boolean | readonly ExportFormat[]",
|
|
507
549
|
"default": null,
|
|
508
|
-
"description": "
|
|
550
|
+
"description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
|
|
551
|
+
"required": false
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "filterable",
|
|
555
|
+
"type": "boolean",
|
|
556
|
+
"default": null,
|
|
557
|
+
"description": "The legend chips switch the series on and off. Default true.",
|
|
509
558
|
"required": false
|
|
510
559
|
},
|
|
511
560
|
{
|
|
@@ -536,6 +585,13 @@
|
|
|
536
585
|
"description": "The id of the figure.",
|
|
537
586
|
"required": false
|
|
538
587
|
},
|
|
588
|
+
{
|
|
589
|
+
"name": "insight",
|
|
590
|
+
"type": "ReactNode",
|
|
591
|
+
"default": null,
|
|
592
|
+
"description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
|
|
593
|
+
"required": false
|
|
594
|
+
},
|
|
539
595
|
{
|
|
540
596
|
"name": "labels",
|
|
541
597
|
"type": "Partial<ThroughputLabels>",
|
|
@@ -578,6 +634,13 @@
|
|
|
578
634
|
"description": "Vertical markers at a category: a launch, an incident.",
|
|
579
635
|
"required": false
|
|
580
636
|
},
|
|
637
|
+
{
|
|
638
|
+
"name": "minPoints",
|
|
639
|
+
"type": "number",
|
|
640
|
+
"default": null,
|
|
641
|
+
"description": "With `autoRange`, the fewest categories to keep so a short burst still has a time scale. Default 7.",
|
|
642
|
+
"required": false
|
|
643
|
+
},
|
|
581
644
|
{
|
|
582
645
|
"name": "onSelect",
|
|
583
646
|
"type": "((datum: T, index: number) => void)",
|
|
@@ -627,6 +690,13 @@
|
|
|
627
690
|
"description": "Horizontal lines at a value: a goal, a payout threshold.",
|
|
628
691
|
"required": false
|
|
629
692
|
},
|
|
693
|
+
{
|
|
694
|
+
"name": "title",
|
|
695
|
+
"type": "string",
|
|
696
|
+
"default": null,
|
|
697
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`. Inside a `ChartCard`, the card's title is the default.",
|
|
698
|
+
"required": false
|
|
699
|
+
},
|
|
630
700
|
{
|
|
631
701
|
"name": "x",
|
|
632
702
|
"type": "string | ((datum: T, index: number) => unknown)",
|