@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.
Files changed (172) hide show
  1. package/README.md +1 -1
  2. package/dist/actions-5VG352VZ.js +53 -0
  3. package/dist/actions-5VG352VZ.js.map +1 -0
  4. package/dist/bar.d.ts +3 -3
  5. package/dist/bar.js +7 -6
  6. package/dist/candlestick.d.ts +2 -2
  7. package/dist/candlestick.js +6 -5
  8. package/dist/card.d.ts +52 -0
  9. package/dist/card.js +19 -0
  10. package/dist/card.js.map +1 -0
  11. package/dist/{cartesian-BRhNQ3ib.d.ts → cartesian-CEY_wwe_.d.ts} +12 -2
  12. package/dist/chart.d.ts +2 -2
  13. package/dist/chart.js +5 -4
  14. package/dist/{chunk-BV4DBGN7.js → chunk-7W4T255Q.js} +4 -4
  15. package/dist/{chunk-W5ILLSPK.js → chunk-AGSSNMK5.js} +5 -5
  16. package/dist/{chunk-VKZZY2QD.js → chunk-FE4LUGAE.js} +5 -5
  17. package/dist/{chunk-ARARFMNE.js → chunk-FIQHMJZK.js} +5 -5
  18. package/dist/chunk-FIQHMJZK.js.map +1 -0
  19. package/dist/{chunk-ANUCSRUN.js → chunk-GD7TWEN3.js} +3 -3
  20. package/dist/chunk-GRRFPI27.js +89 -0
  21. package/dist/chunk-GRRFPI27.js.map +1 -0
  22. package/dist/{chunk-SLEJDQ3A.js → chunk-HH65IEUV.js} +3 -3
  23. package/dist/{chunk-OIRHLJBC.js → chunk-IJTI6VJD.js} +3 -3
  24. package/dist/{chunk-WVTIKOII.js → chunk-IURCLBUQ.js} +2 -2
  25. package/dist/{chunk-CVWSMUUB.js → chunk-JST4HJC3.js} +33 -15
  26. package/dist/chunk-JST4HJC3.js.map +1 -0
  27. package/dist/{chunk-IKQV3NSL.js → chunk-KERGFVSN.js} +3 -3
  28. package/dist/{chunk-XDDALY4C.js → chunk-KMQ7RANJ.js} +5 -5
  29. package/dist/{chunk-NCIQMRV3.js → chunk-LLUQEK5J.js} +5 -5
  30. package/dist/{chunk-AA5EWWYV.js → chunk-LZPZWBBY.js} +2 -2
  31. package/dist/{chunk-PBQV3B6O.js → chunk-MK2ZFUWM.js} +31 -16
  32. package/dist/chunk-MK2ZFUWM.js.map +1 -0
  33. package/dist/{chunk-CSSZLFLO.js → chunk-MRGMLDNS.js} +5 -5
  34. package/dist/{chunk-I3D7KUGN.js → chunk-NLTZWJLV.js} +3 -3
  35. package/dist/{chunk-PWMMXRMC.js → chunk-NV52AKHG.js} +3 -3
  36. package/dist/{chunk-MXLITIGU.js → chunk-NWJ5VDN7.js} +5 -5
  37. package/dist/{chunk-3CJHBJXA.js → chunk-OVASCEGF.js} +12 -73
  38. package/dist/chunk-OVASCEGF.js.map +1 -0
  39. package/dist/{chunk-EQLC2QVN.js → chunk-OZOAKP5F.js} +4 -4
  40. package/dist/chunk-OZOAKP5F.js.map +1 -0
  41. package/dist/{chunk-KNDHO67X.js → chunk-P2NK5L3B.js} +3 -3
  42. package/dist/{chunk-JTKR7ZWP.js → chunk-P6RS2L23.js} +140 -36
  43. package/dist/chunk-P6RS2L23.js.map +1 -0
  44. package/dist/{chunk-W5FX4TU3.js → chunk-PGD6SH5I.js} +30 -2
  45. package/dist/chunk-PGD6SH5I.js.map +1 -0
  46. package/dist/{chunk-4LBXEAGC.js → chunk-PWZHIGPO.js} +5 -5
  47. package/dist/{chunk-L2EKYWVI.js → chunk-VEOJNMPF.js} +3 -3
  48. package/dist/chunk-YHQFW2PR.js +71 -0
  49. package/dist/chunk-YHQFW2PR.js.map +1 -0
  50. package/dist/{chunk-C4MFZLJM.js → chunk-Z4T3JFNU.js} +2 -2
  51. package/dist/{chunk-EEP7PS2L.js → chunk-ZF7LVQTR.js} +3 -3
  52. package/dist/{context-BgYUymEO.d.ts → context-DNW7bJYw.d.ts} +19 -0
  53. package/dist/credits.d.ts +1 -1
  54. package/dist/credits.js +7 -6
  55. package/dist/earnings.d.ts +3 -3
  56. package/dist/earnings.js +8 -7
  57. package/dist/{frame-I7_xYGy5.d.ts → frame-B1HDNm7c.d.ts} +9 -5
  58. package/dist/funnel.d.ts +2 -2
  59. package/dist/funnel.js +6 -5
  60. package/dist/gauge.d.ts +2 -2
  61. package/dist/gauge.js +4 -3
  62. package/dist/geo.d.ts +2 -2
  63. package/dist/geo.js +5 -4
  64. package/dist/globe.d.ts +2 -2
  65. package/dist/globe.js +4 -3
  66. package/dist/goal.d.ts +2 -2
  67. package/dist/goal.js +5 -4
  68. package/dist/heatmap.d.ts +2 -2
  69. package/dist/heatmap.js +6 -5
  70. package/dist/index.d.ts +5 -3
  71. package/dist/index.js +45 -37
  72. package/dist/latency.d.ts +3 -3
  73. package/dist/latency.js +8 -7
  74. package/dist/line.d.ts +3 -3
  75. package/dist/line.js +7 -6
  76. package/dist/native.d.ts +19 -0
  77. package/dist/native.js +13 -1
  78. package/dist/native.js.map +1 -1
  79. package/dist/pie.d.ts +2 -2
  80. package/dist/pie.js +6 -5
  81. package/dist/provider.d.ts +2 -2
  82. package/dist/provider.js +4 -2
  83. package/dist/radar.d.ts +2 -2
  84. package/dist/radar.js +6 -5
  85. package/dist/sankey.d.ts +2 -2
  86. package/dist/sankey.js +6 -5
  87. package/dist/scatter.d.ts +2 -2
  88. package/dist/scatter.js +6 -5
  89. package/dist/sparkline.d.ts +2 -2
  90. package/dist/sparkline.js +6 -5
  91. package/dist/table-sheet-CQBIAV5N.js +36 -0
  92. package/dist/table-sheet-CQBIAV5N.js.map +1 -0
  93. package/dist/throughput.d.ts +3 -3
  94. package/dist/throughput.js +8 -7
  95. package/dist/ticker.d.ts +3 -3
  96. package/dist/ticker.js +8 -7
  97. package/dist/treemap.d.ts +2 -2
  98. package/dist/treemap.js +7 -6
  99. package/package.json +295 -53
  100. package/registry/area-chart.json +82 -12
  101. package/registry/bar-chart.json +82 -12
  102. package/registry/calendar-heatmap.json +46 -18
  103. package/registry/candlestick.json +46 -18
  104. package/registry/chart-card.json +235 -0
  105. package/registry/chart.json +40 -12
  106. package/registry/charts-provider.json +2 -2
  107. package/registry/earnings-chart.json +82 -12
  108. package/registry/examples/chart-card/before-after.d.ts +4 -0
  109. package/registry/examples/chart-card/before-after.js +22 -0
  110. package/registry/examples/chart-card/before-after.tsx +22 -0
  111. package/registry/examples/chart-card/jobs-activity.d.ts +4 -0
  112. package/registry/examples/chart-card/jobs-activity.js +20 -0
  113. package/registry/examples/chart-card/jobs-activity.tsx +20 -0
  114. package/registry/examples/chart-card/sparse-and-empty.d.ts +4 -0
  115. package/registry/examples/chart-card/sparse-and-empty.js +16 -0
  116. package/registry/examples/chart-card/sparse-and-empty.tsx +18 -0
  117. package/registry/examples/chart-card/usage-donut.d.ts +4 -0
  118. package/registry/examples/chart-card/usage-donut.js +18 -0
  119. package/registry/examples/chart-card/usage-donut.tsx +18 -0
  120. package/registry/examples/charts-provider/french-orazaka.js +1 -1
  121. package/registry/examples/charts-provider/french-orazaka.tsx +1 -1
  122. package/registry/examples/kpi-stat/dashboard-row.d.ts +4 -0
  123. package/registry/examples/kpi-stat/dashboard-row.js +19 -0
  124. package/registry/examples/kpi-stat/dashboard-row.tsx +17 -0
  125. package/registry/examples/kpi-stat/single.d.ts +4 -0
  126. package/registry/examples/kpi-stat/single.js +11 -0
  127. package/registry/examples/kpi-stat/single.tsx +6 -0
  128. package/registry/funnel.json +46 -18
  129. package/registry/gauge.json +42 -14
  130. package/registry/geo-map.json +46 -18
  131. package/registry/globe.json +40 -12
  132. package/registry/goal-progress.json +36 -8
  133. package/registry/heatmap.json +46 -18
  134. package/registry/index.json +49 -1
  135. package/registry/job-throughput.json +82 -12
  136. package/registry/kpi-stat.json +296 -0
  137. package/registry/latency-chart.json +82 -12
  138. package/registry/line-chart.json +82 -12
  139. package/registry/pie-chart.json +92 -36
  140. package/registry/price-ticker.json +82 -12
  141. package/registry/radar-chart.json +46 -18
  142. package/registry/sankey.json +46 -18
  143. package/registry/scatter-chart.json +46 -18
  144. package/registry/sparkline.json +38 -10
  145. package/registry/treemap.json +40 -12
  146. package/dist/chunk-3CJHBJXA.js.map +0 -1
  147. package/dist/chunk-ARARFMNE.js.map +0 -1
  148. package/dist/chunk-CVWSMUUB.js.map +0 -1
  149. package/dist/chunk-EQLC2QVN.js.map +0 -1
  150. package/dist/chunk-JTKR7ZWP.js.map +0 -1
  151. package/dist/chunk-PBQV3B6O.js.map +0 -1
  152. package/dist/chunk-W5FX4TU3.js.map +0 -1
  153. /package/dist/{chunk-BV4DBGN7.js.map → chunk-7W4T255Q.js.map} +0 -0
  154. /package/dist/{chunk-W5ILLSPK.js.map → chunk-AGSSNMK5.js.map} +0 -0
  155. /package/dist/{chunk-VKZZY2QD.js.map → chunk-FE4LUGAE.js.map} +0 -0
  156. /package/dist/{chunk-ANUCSRUN.js.map → chunk-GD7TWEN3.js.map} +0 -0
  157. /package/dist/{chunk-SLEJDQ3A.js.map → chunk-HH65IEUV.js.map} +0 -0
  158. /package/dist/{chunk-OIRHLJBC.js.map → chunk-IJTI6VJD.js.map} +0 -0
  159. /package/dist/{chunk-WVTIKOII.js.map → chunk-IURCLBUQ.js.map} +0 -0
  160. /package/dist/{chunk-IKQV3NSL.js.map → chunk-KERGFVSN.js.map} +0 -0
  161. /package/dist/{chunk-XDDALY4C.js.map → chunk-KMQ7RANJ.js.map} +0 -0
  162. /package/dist/{chunk-NCIQMRV3.js.map → chunk-LLUQEK5J.js.map} +0 -0
  163. /package/dist/{chunk-AA5EWWYV.js.map → chunk-LZPZWBBY.js.map} +0 -0
  164. /package/dist/{chunk-CSSZLFLO.js.map → chunk-MRGMLDNS.js.map} +0 -0
  165. /package/dist/{chunk-I3D7KUGN.js.map → chunk-NLTZWJLV.js.map} +0 -0
  166. /package/dist/{chunk-PWMMXRMC.js.map → chunk-NV52AKHG.js.map} +0 -0
  167. /package/dist/{chunk-MXLITIGU.js.map → chunk-NWJ5VDN7.js.map} +0 -0
  168. /package/dist/{chunk-KNDHO67X.js.map → chunk-P2NK5L3B.js.map} +0 -0
  169. /package/dist/{chunk-4LBXEAGC.js.map → chunk-PWZHIGPO.js.map} +0 -0
  170. /package/dist/{chunk-L2EKYWVI.js.map → chunk-VEOJNMPF.js.map} +0 -0
  171. /package/dist/{chunk-C4MFZLJM.js.map → chunk-Z4T3JFNU.js.map} +0 -0
  172. /package/dist/{chunk-EEP7PS2L.js.map → chunk-ZF7LVQTR.js.map} +0 -0
@@ -75,11 +75,11 @@
75
75
  "required": true
76
76
  },
77
77
  {
78
- "name": "title",
79
- "type": "string",
78
+ "name": "actionsMenu",
79
+ "type": "boolean",
80
80
  "default": null,
81
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
82
- "required": true
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": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
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": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
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": "title",
293
- "type": "string",
306
+ "name": "actionsMenu",
307
+ "type": "boolean",
294
308
  "default": null,
295
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
296
- "required": true
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": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
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": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
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": "title",
80
- "type": "string",
79
+ "name": "actionsMenu",
80
+ "type": "boolean",
81
81
  "default": null,
82
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
83
- "required": true
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": "title",
393
- "type": "string",
406
+ "name": "actionsMenu",
407
+ "type": "boolean",
394
408
  "default": null,
395
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
396
- "required": true
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
  }
@@ -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": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
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": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
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": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
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": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
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[]",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/charts",
3
- "version": "0.3.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": "title",
80
- "type": "string",
79
+ "name": "actionsMenu",
80
+ "type": "boolean",
81
81
  "default": null,
82
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
83
- "required": true
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": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
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": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
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": "title",
457
- "type": "string",
491
+ "name": "actionsMenu",
492
+ "type": "boolean",
458
493
  "default": null,
459
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
460
- "required": true
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": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
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": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
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)",