@krizaka/charts 0.3.1 → 0.5.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/dist/actions-5VG352VZ.js +53 -0
  2. package/dist/actions-5VG352VZ.js.map +1 -0
  3. package/dist/bar.d.ts +3 -3
  4. package/dist/bar.js +7 -6
  5. package/dist/candlestick.d.ts +2 -2
  6. package/dist/candlestick.js +6 -5
  7. package/dist/card.d.ts +52 -0
  8. package/dist/card.js +19 -0
  9. package/dist/card.js.map +1 -0
  10. package/dist/{cartesian-BRhNQ3ib.d.ts → cartesian-CEY_wwe_.d.ts} +12 -2
  11. package/dist/chart.d.ts +2 -2
  12. package/dist/chart.js +5 -4
  13. package/dist/{chunk-BV4DBGN7.js → chunk-7W4T255Q.js} +4 -4
  14. package/dist/{chunk-W5ILLSPK.js → chunk-AGSSNMK5.js} +5 -5
  15. package/dist/{chunk-VKZZY2QD.js → chunk-FE4LUGAE.js} +5 -5
  16. package/dist/{chunk-ARARFMNE.js → chunk-FIQHMJZK.js} +5 -5
  17. package/dist/chunk-FIQHMJZK.js.map +1 -0
  18. package/dist/{chunk-ANUCSRUN.js → chunk-GD7TWEN3.js} +3 -3
  19. package/dist/chunk-GRRFPI27.js +89 -0
  20. package/dist/chunk-GRRFPI27.js.map +1 -0
  21. package/dist/{chunk-SLEJDQ3A.js → chunk-HH65IEUV.js} +3 -3
  22. package/dist/{chunk-OIRHLJBC.js → chunk-IJTI6VJD.js} +3 -3
  23. package/dist/{chunk-WVTIKOII.js → chunk-IURCLBUQ.js} +2 -2
  24. package/dist/{chunk-CVWSMUUB.js → chunk-JST4HJC3.js} +33 -15
  25. package/dist/chunk-JST4HJC3.js.map +1 -0
  26. package/dist/{chunk-IKQV3NSL.js → chunk-KERGFVSN.js} +3 -3
  27. package/dist/{chunk-XDDALY4C.js → chunk-KMQ7RANJ.js} +5 -5
  28. package/dist/{chunk-NCIQMRV3.js → chunk-LLUQEK5J.js} +5 -5
  29. package/dist/{chunk-AA5EWWYV.js → chunk-LZPZWBBY.js} +2 -2
  30. package/dist/{chunk-PBQV3B6O.js → chunk-MK2ZFUWM.js} +31 -16
  31. package/dist/chunk-MK2ZFUWM.js.map +1 -0
  32. package/dist/{chunk-CSSZLFLO.js → chunk-MRGMLDNS.js} +5 -5
  33. package/dist/{chunk-I3D7KUGN.js → chunk-NLTZWJLV.js} +3 -3
  34. package/dist/{chunk-PWMMXRMC.js → chunk-NV52AKHG.js} +3 -3
  35. package/dist/{chunk-MXLITIGU.js → chunk-NWJ5VDN7.js} +5 -5
  36. package/dist/{chunk-3CJHBJXA.js → chunk-OVASCEGF.js} +12 -73
  37. package/dist/chunk-OVASCEGF.js.map +1 -0
  38. package/dist/{chunk-EQLC2QVN.js → chunk-OZOAKP5F.js} +4 -4
  39. package/dist/chunk-OZOAKP5F.js.map +1 -0
  40. package/dist/{chunk-KNDHO67X.js → chunk-P2NK5L3B.js} +3 -3
  41. package/dist/{chunk-JTKR7ZWP.js → chunk-P6RS2L23.js} +140 -36
  42. package/dist/chunk-P6RS2L23.js.map +1 -0
  43. package/dist/{chunk-W5FX4TU3.js → chunk-PGD6SH5I.js} +30 -2
  44. package/dist/chunk-PGD6SH5I.js.map +1 -0
  45. package/dist/{chunk-4LBXEAGC.js → chunk-PWZHIGPO.js} +5 -5
  46. package/dist/{chunk-L2EKYWVI.js → chunk-VEOJNMPF.js} +3 -3
  47. package/dist/chunk-YHQFW2PR.js +71 -0
  48. package/dist/chunk-YHQFW2PR.js.map +1 -0
  49. package/dist/{chunk-C4MFZLJM.js → chunk-Z4T3JFNU.js} +2 -2
  50. package/dist/{chunk-EEP7PS2L.js → chunk-ZF7LVQTR.js} +3 -3
  51. package/dist/{context-BgYUymEO.d.ts → context-DNW7bJYw.d.ts} +19 -0
  52. package/dist/credits.d.ts +1 -1
  53. package/dist/credits.js +7 -6
  54. package/dist/earnings.d.ts +3 -3
  55. package/dist/earnings.js +8 -7
  56. package/dist/{frame-I7_xYGy5.d.ts → frame-B1HDNm7c.d.ts} +9 -5
  57. package/dist/funnel.d.ts +2 -2
  58. package/dist/funnel.js +6 -5
  59. package/dist/gauge.d.ts +2 -2
  60. package/dist/gauge.js +4 -3
  61. package/dist/geo.d.ts +2 -2
  62. package/dist/geo.js +5 -4
  63. package/dist/globe.d.ts +2 -2
  64. package/dist/globe.js +4 -3
  65. package/dist/goal.d.ts +2 -2
  66. package/dist/goal.js +5 -4
  67. package/dist/heatmap.d.ts +2 -2
  68. package/dist/heatmap.js +6 -5
  69. package/dist/index.d.ts +5 -3
  70. package/dist/index.js +45 -37
  71. package/dist/latency.d.ts +3 -3
  72. package/dist/latency.js +8 -7
  73. package/dist/line.d.ts +3 -3
  74. package/dist/line.js +7 -6
  75. package/dist/native.d.ts +19 -0
  76. package/dist/native.js +13 -1
  77. package/dist/native.js.map +1 -1
  78. package/dist/pie.d.ts +2 -2
  79. package/dist/pie.js +6 -5
  80. package/dist/provider.d.ts +2 -2
  81. package/dist/provider.js +4 -2
  82. package/dist/radar.d.ts +2 -2
  83. package/dist/radar.js +6 -5
  84. package/dist/sankey.d.ts +2 -2
  85. package/dist/sankey.js +6 -5
  86. package/dist/scatter.d.ts +2 -2
  87. package/dist/scatter.js +6 -5
  88. package/dist/sparkline.d.ts +2 -2
  89. package/dist/sparkline.js +6 -5
  90. package/dist/table-sheet-CQBIAV5N.js +36 -0
  91. package/dist/table-sheet-CQBIAV5N.js.map +1 -0
  92. package/dist/throughput.d.ts +3 -3
  93. package/dist/throughput.js +8 -7
  94. package/dist/ticker.d.ts +3 -3
  95. package/dist/ticker.js +8 -7
  96. package/dist/treemap.d.ts +2 -2
  97. package/dist/treemap.js +7 -6
  98. package/package.json +292 -50
  99. package/registry/area-chart.json +93 -12
  100. package/registry/bar-chart.json +93 -12
  101. package/registry/calendar-heatmap.json +59 -18
  102. package/registry/candlestick.json +59 -18
  103. package/registry/chart-card.json +248 -0
  104. package/registry/chart.json +53 -12
  105. package/registry/charts-provider.json +13 -2
  106. package/registry/credit-usage.json +11 -0
  107. package/registry/earnings-chart.json +93 -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 +59 -18
  129. package/registry/gauge.json +53 -14
  130. package/registry/geo-map.json +59 -18
  131. package/registry/globe.json +54 -12
  132. package/registry/goal-progress.json +47 -8
  133. package/registry/heatmap.json +59 -18
  134. package/registry/index.json +362 -1
  135. package/registry/job-throughput.json +93 -12
  136. package/registry/kpi-stat.json +309 -0
  137. package/registry/latency-chart.json +93 -12
  138. package/registry/line-chart.json +93 -12
  139. package/registry/pie-chart.json +103 -36
  140. package/registry/price-ticker.json +93 -12
  141. package/registry/radar-chart.json +59 -18
  142. package/registry/sankey.json +59 -18
  143. package/registry/scatter-chart.json +59 -18
  144. package/registry/sparkline.json +49 -10
  145. package/registry/treemap.json +53 -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
@@ -8,6 +8,17 @@
8
8
  "status": "beta",
9
9
  "category": "charts",
10
10
  "platforms": "both",
11
+ "parity": {
12
+ "web": {
13
+ "state": "yes"
14
+ },
15
+ "native": {
16
+ "state": "yes"
17
+ },
18
+ "desktop": {
19
+ "state": "yes"
20
+ }
21
+ },
11
22
  "engine": "svg",
12
23
  "tier": "core",
13
24
  "whenToUse": [
@@ -96,13 +107,6 @@
96
107
  "description": "The field (or function) naming the part.",
97
108
  "required": true
98
109
  },
99
- {
100
- "name": "title",
101
- "type": "string",
102
- "default": null,
103
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
104
- "required": true
105
- },
106
110
  {
107
111
  "name": "value",
108
112
  "type": "string | ((datum: T, index: number) => number)",
@@ -110,6 +114,13 @@
110
114
  "description": "The field (or function) of its amount (≥ 0).",
111
115
  "required": true
112
116
  },
117
+ {
118
+ "name": "actionsMenu",
119
+ "type": "boolean",
120
+ "default": null,
121
+ "description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
122
+ "required": false
123
+ },
113
124
  {
114
125
  "name": "brand",
115
126
  "type": "BrandId",
@@ -149,7 +160,7 @@
149
160
  "name": "dataTable",
150
161
  "type": "boolean",
151
162
  "default": null,
152
- "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
163
+ "description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
153
164
  "required": false
154
165
  },
155
166
  {
@@ -177,7 +188,7 @@
177
188
  "name": "exportable",
178
189
  "type": "boolean | readonly ExportFormat[]",
179
190
  "default": null,
180
- "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
191
+ "description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
181
192
  "required": false
182
193
  },
183
194
  {
@@ -208,6 +219,13 @@
208
219
  "description": "The id of the figure.",
209
220
  "required": false
210
221
  },
222
+ {
223
+ "name": "insight",
224
+ "type": "ReactNode",
225
+ "default": null,
226
+ "description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
227
+ "required": false
228
+ },
211
229
  {
212
230
  "name": "labelHeader",
213
231
  "type": "string",
@@ -285,6 +303,13 @@
285
303
  "description": "Your own summary instead of the generated one (still read first by screen readers).",
286
304
  "required": false
287
305
  },
306
+ {
307
+ "name": "title",
308
+ "type": "string",
309
+ "default": null,
310
+ "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.",
311
+ "required": false
312
+ },
288
313
  {
289
314
  "name": "valueHeader",
290
315
  "type": "string",
@@ -312,13 +337,6 @@
312
337
  "description": "The field (or function) naming the part.",
313
338
  "required": true
314
339
  },
315
- {
316
- "name": "title",
317
- "type": "string",
318
- "default": null,
319
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
320
- "required": true
321
- },
322
340
  {
323
341
  "name": "value",
324
342
  "type": "string | ((datum: T, index: number) => number)",
@@ -326,6 +344,13 @@
326
344
  "description": "The field (or function) of its amount (≥ 0).",
327
345
  "required": true
328
346
  },
347
+ {
348
+ "name": "actionsMenu",
349
+ "type": "boolean",
350
+ "default": null,
351
+ "description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
352
+ "required": false
353
+ },
329
354
  {
330
355
  "name": "brand",
331
356
  "type": "BrandId",
@@ -365,7 +390,7 @@
365
390
  "name": "dataTable",
366
391
  "type": "boolean",
367
392
  "default": null,
368
- "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
393
+ "description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
369
394
  "required": false
370
395
  },
371
396
  {
@@ -400,7 +425,7 @@
400
425
  "name": "exportable",
401
426
  "type": "boolean | readonly ExportFormat[]",
402
427
  "default": null,
403
- "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
428
+ "description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
404
429
  "required": false
405
430
  },
406
431
  {
@@ -431,6 +456,13 @@
431
456
  "description": "The id of the figure.",
432
457
  "required": false
433
458
  },
459
+ {
460
+ "name": "insight",
461
+ "type": "ReactNode",
462
+ "default": null,
463
+ "description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
464
+ "required": false
465
+ },
434
466
  {
435
467
  "name": "labelHeader",
436
468
  "type": "string",
@@ -508,6 +540,13 @@
508
540
  "description": "Your own summary instead of the generated one (still read first by screen readers).",
509
541
  "required": false
510
542
  },
543
+ {
544
+ "name": "title",
545
+ "type": "string",
546
+ "default": null,
547
+ "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.",
548
+ "required": false
549
+ },
511
550
  {
512
551
  "name": "valueHeader",
513
552
  "type": "string",
@@ -863,13 +902,6 @@
863
902
  "description": "The field (or function) naming the part.",
864
903
  "required": true
865
904
  },
866
- {
867
- "name": "title",
868
- "type": "string",
869
- "default": null,
870
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
871
- "required": true
872
- },
873
905
  {
874
906
  "name": "value",
875
907
  "type": "string | ((datum: T, index: number) => number)",
@@ -877,6 +909,13 @@
877
909
  "description": "The field (or function) of its amount (≥ 0).",
878
910
  "required": true
879
911
  },
912
+ {
913
+ "name": "actionsMenu",
914
+ "type": "boolean",
915
+ "default": null,
916
+ "description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
917
+ "required": false
918
+ },
880
919
  {
881
920
  "name": "brand",
882
921
  "type": "BrandId",
@@ -916,7 +955,7 @@
916
955
  "name": "dataTable",
917
956
  "type": "boolean",
918
957
  "default": null,
919
- "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
958
+ "description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
920
959
  "required": false
921
960
  },
922
961
  {
@@ -944,7 +983,7 @@
944
983
  "name": "exportable",
945
984
  "type": "boolean | readonly ExportFormat[]",
946
985
  "default": null,
947
- "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
986
+ "description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
948
987
  "required": false
949
988
  },
950
989
  {
@@ -975,6 +1014,13 @@
975
1014
  "description": "The id of the figure.",
976
1015
  "required": false
977
1016
  },
1017
+ {
1018
+ "name": "insight",
1019
+ "type": "ReactNode",
1020
+ "default": null,
1021
+ "description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
1022
+ "required": false
1023
+ },
978
1024
  {
979
1025
  "name": "labelHeader",
980
1026
  "type": "string",
@@ -1052,6 +1098,13 @@
1052
1098
  "description": "Your own summary instead of the generated one (still read first by screen readers).",
1053
1099
  "required": false
1054
1100
  },
1101
+ {
1102
+ "name": "title",
1103
+ "type": "string",
1104
+ "default": null,
1105
+ "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.",
1106
+ "required": false
1107
+ },
1055
1108
  {
1056
1109
  "name": "valueHeader",
1057
1110
  "type": "string",
@@ -1079,13 +1132,6 @@
1079
1132
  "description": "The field (or function) naming the part.",
1080
1133
  "required": true
1081
1134
  },
1082
- {
1083
- "name": "title",
1084
- "type": "string",
1085
- "default": null,
1086
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
1087
- "required": true
1088
- },
1089
1135
  {
1090
1136
  "name": "value",
1091
1137
  "type": "string | ((datum: T, index: number) => number)",
@@ -1093,6 +1139,13 @@
1093
1139
  "description": "The field (or function) of its amount (≥ 0).",
1094
1140
  "required": true
1095
1141
  },
1142
+ {
1143
+ "name": "actionsMenu",
1144
+ "type": "boolean",
1145
+ "default": null,
1146
+ "description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
1147
+ "required": false
1148
+ },
1096
1149
  {
1097
1150
  "name": "brand",
1098
1151
  "type": "BrandId",
@@ -1132,7 +1185,7 @@
1132
1185
  "name": "dataTable",
1133
1186
  "type": "boolean",
1134
1187
  "default": null,
1135
- "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
1188
+ "description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
1136
1189
  "required": false
1137
1190
  },
1138
1191
  {
@@ -1167,7 +1220,7 @@
1167
1220
  "name": "exportable",
1168
1221
  "type": "boolean | readonly ExportFormat[]",
1169
1222
  "default": null,
1170
- "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
1223
+ "description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
1171
1224
  "required": false
1172
1225
  },
1173
1226
  {
@@ -1198,6 +1251,13 @@
1198
1251
  "description": "The id of the figure.",
1199
1252
  "required": false
1200
1253
  },
1254
+ {
1255
+ "name": "insight",
1256
+ "type": "ReactNode",
1257
+ "default": null,
1258
+ "description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
1259
+ "required": false
1260
+ },
1201
1261
  {
1202
1262
  "name": "labelHeader",
1203
1263
  "type": "string",
@@ -1275,6 +1335,13 @@
1275
1335
  "description": "Your own summary instead of the generated one (still read first by screen readers).",
1276
1336
  "required": false
1277
1337
  },
1338
+ {
1339
+ "name": "title",
1340
+ "type": "string",
1341
+ "default": null,
1342
+ "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.",
1343
+ "required": false
1344
+ },
1278
1345
  {
1279
1346
  "name": "valueHeader",
1280
1347
  "type": "string",
@@ -8,6 +8,17 @@
8
8
  "status": "beta",
9
9
  "category": "charts",
10
10
  "platforms": "both",
11
+ "parity": {
12
+ "web": {
13
+ "state": "yes"
14
+ },
15
+ "native": {
16
+ "state": "yes"
17
+ },
18
+ "desktop": {
19
+ "state": "yes"
20
+ }
21
+ },
11
22
  "engine": "svg",
12
23
  "tier": "ready-made",
13
24
  "whenToUse": [
@@ -85,11 +96,18 @@
85
96
  "required": true
86
97
  },
87
98
  {
88
- "name": "title",
89
- "type": "string",
99
+ "name": "actionsMenu",
100
+ "type": "boolean",
90
101
  "default": null,
91
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
92
- "required": true
102
+ "description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
103
+ "required": false
104
+ },
105
+ {
106
+ "name": "autoRange",
107
+ "type": "boolean",
108
+ "default": null,
109
+ "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.",
110
+ "required": false
93
111
  },
94
112
  {
95
113
  "name": "brand",
@@ -109,7 +127,7 @@
109
127
  "name": "dataTable",
110
128
  "type": "boolean",
111
129
  "default": null,
112
- "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
130
+ "description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
113
131
  "required": false
114
132
  },
115
133
  {
@@ -151,7 +169,14 @@
151
169
  "name": "exportable",
152
170
  "type": "boolean | readonly ExportFormat[]",
153
171
  "default": null,
154
- "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
172
+ "description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
173
+ "required": false
174
+ },
175
+ {
176
+ "name": "filterable",
177
+ "type": "boolean",
178
+ "default": null,
179
+ "description": "The legend chips switch the series on and off. Default true.",
155
180
  "required": false
156
181
  },
157
182
  {
@@ -175,6 +200,13 @@
175
200
  "description": "The id of the figure.",
176
201
  "required": false
177
202
  },
203
+ {
204
+ "name": "insight",
205
+ "type": "ReactNode",
206
+ "default": null,
207
+ "description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
208
+ "required": false
209
+ },
178
210
  {
179
211
  "name": "labels",
180
212
  "type": "Partial<TickerLabels>",
@@ -217,6 +249,13 @@
217
249
  "description": "Vertical markers at a category: a launch, an incident.",
218
250
  "required": false
219
251
  },
252
+ {
253
+ "name": "minPoints",
254
+ "type": "number",
255
+ "default": null,
256
+ "description": "With `autoRange`, the fewest categories to keep so a short burst still has a time scale. Default 7.",
257
+ "required": false
258
+ },
220
259
  {
221
260
  "name": "onSelect",
222
261
  "type": "((datum: Point, index: number) => void)",
@@ -266,6 +305,13 @@
266
305
  "description": "How the times are written. Default `\"time\"` (`14:30`); `\"datetime\"` for auctions over several days.",
267
306
  "required": false
268
307
  },
308
+ {
309
+ "name": "title",
310
+ "type": "string",
311
+ "default": null,
312
+ "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.",
313
+ "required": false
314
+ },
269
315
  {
270
316
  "name": "xLabel",
271
317
  "type": "string",
@@ -483,11 +529,18 @@
483
529
  "required": true
484
530
  },
485
531
  {
486
- "name": "title",
487
- "type": "string",
532
+ "name": "actionsMenu",
533
+ "type": "boolean",
488
534
  "default": null,
489
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
490
- "required": true
535
+ "description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
536
+ "required": false
537
+ },
538
+ {
539
+ "name": "autoRange",
540
+ "type": "boolean",
541
+ "default": null,
542
+ "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.",
543
+ "required": false
491
544
  },
492
545
  {
493
546
  "name": "brand",
@@ -507,7 +560,7 @@
507
560
  "name": "dataTable",
508
561
  "type": "boolean",
509
562
  "default": null,
510
- "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
563
+ "description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
511
564
  "required": false
512
565
  },
513
566
  {
@@ -549,7 +602,14 @@
549
602
  "name": "exportable",
550
603
  "type": "boolean | readonly ExportFormat[]",
551
604
  "default": null,
552
- "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
605
+ "description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
606
+ "required": false
607
+ },
608
+ {
609
+ "name": "filterable",
610
+ "type": "boolean",
611
+ "default": null,
612
+ "description": "The legend chips switch the series on and off. Default true.",
553
613
  "required": false
554
614
  },
555
615
  {
@@ -573,6 +633,13 @@
573
633
  "description": "The id of the figure.",
574
634
  "required": false
575
635
  },
636
+ {
637
+ "name": "insight",
638
+ "type": "ReactNode",
639
+ "default": null,
640
+ "description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
641
+ "required": false
642
+ },
576
643
  {
577
644
  "name": "labels",
578
645
  "type": "Partial<TickerLabels>",
@@ -615,6 +682,13 @@
615
682
  "description": "Vertical markers at a category: a launch, an incident.",
616
683
  "required": false
617
684
  },
685
+ {
686
+ "name": "minPoints",
687
+ "type": "number",
688
+ "default": null,
689
+ "description": "With `autoRange`, the fewest categories to keep so a short burst still has a time scale. Default 7.",
690
+ "required": false
691
+ },
618
692
  {
619
693
  "name": "onSelect",
620
694
  "type": "((datum: Point, index: number) => void)",
@@ -664,6 +738,13 @@
664
738
  "description": "How the times are written. Default `\"time\"` (`14:30`); `\"datetime\"` for auctions over several days.",
665
739
  "required": false
666
740
  },
741
+ {
742
+ "name": "title",
743
+ "type": "string",
744
+ "default": null,
745
+ "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.",
746
+ "required": false
747
+ },
667
748
  {
668
749
  "name": "xLabel",
669
750
  "type": "string",
@@ -8,6 +8,19 @@
8
8
  "status": "beta",
9
9
  "category": "charts",
10
10
  "platforms": "web",
11
+ "parity": {
12
+ "web": {
13
+ "state": "yes"
14
+ },
15
+ "native": {
16
+ "state": "gap",
17
+ "reason": "Advanced tier: no phone screen needs it yet.",
18
+ "issue": "krizaka/krizaka-ui#280"
19
+ },
20
+ "desktop": {
21
+ "state": "yes"
22
+ }
23
+ },
11
24
  "engine": "echarts",
12
25
  "tier": "advanced",
13
26
  "whenToUse": [
@@ -85,13 +98,6 @@
85
98
  "description": "The entities compared, one value per axis each.",
86
99
  "required": true
87
100
  },
88
- {
89
- "name": "title",
90
- "type": "string",
91
- "default": null,
92
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
93
- "required": true
94
- },
95
101
  {
96
102
  "name": "x",
97
103
  "type": "string | ((datum: T, index: number) => string)",
@@ -99,6 +105,13 @@
99
105
  "description": "The field (or function) naming the axis.",
100
106
  "required": true
101
107
  },
108
+ {
109
+ "name": "actionsMenu",
110
+ "type": "boolean",
111
+ "default": null,
112
+ "description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
113
+ "required": false
114
+ },
102
115
  {
103
116
  "name": "brand",
104
117
  "type": "BrandId",
@@ -117,7 +130,7 @@
117
130
  "name": "dataTable",
118
131
  "type": "boolean",
119
132
  "default": null,
120
- "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
133
+ "description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
121
134
  "required": false
122
135
  },
123
136
  {
@@ -145,7 +158,7 @@
145
158
  "name": "exportable",
146
159
  "type": "boolean | readonly ExportFormat[]",
147
160
  "default": null,
148
- "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
161
+ "description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
149
162
  "required": false
150
163
  },
151
164
  {
@@ -176,6 +189,13 @@
176
189
  "description": "The id of the figure.",
177
190
  "required": false
178
191
  },
192
+ {
193
+ "name": "insight",
194
+ "type": "ReactNode",
195
+ "default": null,
196
+ "description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
197
+ "required": false
198
+ },
179
199
  {
180
200
  "name": "labels",
181
201
  "type": "ChartLabelsInput",
@@ -239,6 +259,13 @@
239
259
  "description": "Your own summary instead of the generated one (still read first by screen readers).",
240
260
  "required": false
241
261
  },
262
+ {
263
+ "name": "title",
264
+ "type": "string",
265
+ "default": null,
266
+ "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.",
267
+ "required": false
268
+ },
242
269
  {
243
270
  "name": "xLabel",
244
271
  "type": "string",
@@ -292,13 +319,6 @@
292
319
  "description": "The entities compared, one value per axis each.",
293
320
  "required": true
294
321
  },
295
- {
296
- "name": "title",
297
- "type": "string",
298
- "default": null,
299
- "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
300
- "required": true
301
- },
302
322
  {
303
323
  "name": "x",
304
324
  "type": "string | ((datum: T, index: number) => string)",
@@ -306,6 +326,13 @@
306
326
  "description": "The field (or function) naming the axis.",
307
327
  "required": true
308
328
  },
329
+ {
330
+ "name": "actionsMenu",
331
+ "type": "boolean",
332
+ "default": null,
333
+ "description": "The ⋯ actions menu of the kit. `false`: the former “Show data” and export buttons, drawn in line. Default true.",
334
+ "required": false
335
+ },
309
336
  {
310
337
  "name": "brand",
311
338
  "type": "BrandId",
@@ -324,7 +351,7 @@
324
351
  "name": "dataTable",
325
352
  "type": "boolean",
326
353
  "default": null,
327
- "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
354
+ "description": "“View as table” in the actions menu (the table is in the page for screen readers either way). Default true.",
328
355
  "required": false
329
356
  },
330
357
  {
@@ -352,7 +379,7 @@
352
379
  "name": "exportable",
353
380
  "type": "boolean | readonly ExportFormat[]",
354
381
  "default": null,
355
- "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
382
+ "description": "The downloads of the actions menu: all three by default, or the formats you want, or `false` for none.",
356
383
  "required": false
357
384
  },
358
385
  {
@@ -383,6 +410,13 @@
383
410
  "description": "The id of the figure.",
384
411
  "required": false
385
412
  },
413
+ {
414
+ "name": "insight",
415
+ "type": "ReactNode",
416
+ "default": null,
417
+ "description": "One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.",
418
+ "required": false
419
+ },
386
420
  {
387
421
  "name": "labels",
388
422
  "type": "ChartLabelsInput",
@@ -446,6 +480,13 @@
446
480
  "description": "Your own summary instead of the generated one (still read first by screen readers).",
447
481
  "required": false
448
482
  },
483
+ {
484
+ "name": "title",
485
+ "type": "string",
486
+ "default": null,
487
+ "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.",
488
+ "required": false
489
+ },
449
490
  {
450
491
  "name": "xLabel",
451
492
  "type": "string",