@krizaka/charts 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +47 -2
  3. package/dist/bar.d.ts +17 -0
  4. package/dist/bar.js +16 -0
  5. package/dist/bar.js.map +1 -0
  6. package/dist/candlestick-IG626XL4.js +13 -0
  7. package/dist/candlestick-IG626XL4.js.map +1 -0
  8. package/dist/candlestick.d.ts +42 -0
  9. package/dist/candlestick.js +13 -0
  10. package/dist/candlestick.js.map +1 -0
  11. package/dist/canvas-4MSYDVFO.js +14 -0
  12. package/dist/canvas-4MSYDVFO.js.map +1 -0
  13. package/dist/cartesian-BRhNQ3ib.d.ts +34 -0
  14. package/dist/chart.d.ts +58 -0
  15. package/dist/chart.js +11 -0
  16. package/dist/chart.js.map +1 -0
  17. package/dist/chunk-3CJHBJXA.js +186 -0
  18. package/dist/chunk-3CJHBJXA.js.map +1 -0
  19. package/dist/chunk-6FINSUOS.js +49 -0
  20. package/dist/chunk-6FINSUOS.js.map +1 -0
  21. package/dist/chunk-7CSAGFBW.js +166 -0
  22. package/dist/chunk-7CSAGFBW.js.map +1 -0
  23. package/dist/chunk-7TIFCK5E.js +103 -0
  24. package/dist/chunk-7TIFCK5E.js.map +1 -0
  25. package/dist/chunk-AHQXJSAQ.js +38 -0
  26. package/dist/chunk-AHQXJSAQ.js.map +1 -0
  27. package/dist/chunk-ANUCSRUN.js +43 -0
  28. package/dist/chunk-ANUCSRUN.js.map +1 -0
  29. package/dist/chunk-BISL7DYW.js +66 -0
  30. package/dist/chunk-BISL7DYW.js.map +1 -0
  31. package/dist/chunk-BZ5CQFPH.js +19 -0
  32. package/dist/chunk-BZ5CQFPH.js.map +1 -0
  33. package/dist/chunk-DWJPPEMC.js +455 -0
  34. package/dist/chunk-DWJPPEMC.js.map +1 -0
  35. package/dist/chunk-DZB6HEVO.js +73 -0
  36. package/dist/chunk-DZB6HEVO.js.map +1 -0
  37. package/dist/chunk-EK3Z647J.js +133 -0
  38. package/dist/chunk-EK3Z647J.js.map +1 -0
  39. package/dist/chunk-I5QUZVU2.js +234 -0
  40. package/dist/chunk-I5QUZVU2.js.map +1 -0
  41. package/dist/chunk-OB5EFDDH.js +118 -0
  42. package/dist/chunk-OB5EFDDH.js.map +1 -0
  43. package/dist/chunk-OER6ETT4.js +155 -0
  44. package/dist/chunk-OER6ETT4.js.map +1 -0
  45. package/dist/chunk-PTSB3H5Q.js +205 -0
  46. package/dist/chunk-PTSB3H5Q.js.map +1 -0
  47. package/dist/chunk-TPJDOB7R.js +15 -0
  48. package/dist/chunk-TPJDOB7R.js.map +1 -0
  49. package/dist/chunk-UNK4MJVG.js +378 -0
  50. package/dist/chunk-UNK4MJVG.js.map +1 -0
  51. package/dist/chunk-VKO2OYYM.js +88 -0
  52. package/dist/chunk-VKO2OYYM.js.map +1 -0
  53. package/dist/chunk-VKTZD7UT.js +107 -0
  54. package/dist/chunk-VKTZD7UT.js.map +1 -0
  55. package/dist/chunk-W5FX4TU3.js +102 -0
  56. package/dist/chunk-W5FX4TU3.js.map +1 -0
  57. package/dist/chunk-WBH2QU77.js +178 -0
  58. package/dist/chunk-WBH2QU77.js.map +1 -0
  59. package/dist/chunk-WIRCIOLH.js +145 -0
  60. package/dist/chunk-WIRCIOLH.js.map +1 -0
  61. package/dist/chunk-XAJ3KCC4.js +116 -0
  62. package/dist/chunk-XAJ3KCC4.js.map +1 -0
  63. package/dist/chunk-XC6BQ3RN.js +92 -0
  64. package/dist/chunk-XC6BQ3RN.js.map +1 -0
  65. package/dist/chunk-XLLYNNC6.js +89 -0
  66. package/dist/chunk-XLLYNNC6.js.map +1 -0
  67. package/dist/chunk-XR4ZJDOV.js +15 -0
  68. package/dist/chunk-XR4ZJDOV.js.map +1 -0
  69. package/dist/context-BgYUymEO.d.ts +163 -0
  70. package/dist/frame-I7_xYGy5.d.ts +45 -0
  71. package/dist/full-S2MBPEEP.js +11 -0
  72. package/dist/full-S2MBPEEP.js.map +1 -0
  73. package/dist/funnel-QU5ZPC52.js +13 -0
  74. package/dist/funnel-QU5ZPC52.js.map +1 -0
  75. package/dist/funnel.d.ts +26 -0
  76. package/dist/funnel.js +13 -0
  77. package/dist/funnel.js.map +1 -0
  78. package/dist/gauge.d.ts +38 -0
  79. package/dist/gauge.js +12 -0
  80. package/dist/gauge.js.map +1 -0
  81. package/dist/geo.d.ts +37 -0
  82. package/dist/geo.js +13 -0
  83. package/dist/geo.js.map +1 -0
  84. package/dist/globe.d.ts +36 -0
  85. package/dist/globe.js +12 -0
  86. package/dist/globe.js.map +1 -0
  87. package/dist/heatmap-JWQOKUGM.js +13 -0
  88. package/dist/heatmap-JWQOKUGM.js.map +1 -0
  89. package/dist/heatmap.d.ts +47 -0
  90. package/dist/heatmap.js +15 -0
  91. package/dist/heatmap.js.map +1 -0
  92. package/dist/host-_F8RgiIz.d.ts +15 -0
  93. package/dist/index.d.ts +22 -0
  94. package/dist/index.js +101 -0
  95. package/dist/index.js.map +1 -0
  96. package/dist/line.d.ts +25 -0
  97. package/dist/line.js +18 -0
  98. package/dist/line.js.map +1 -0
  99. package/dist/native.d.ts +300 -0
  100. package/dist/native.js +875 -0
  101. package/dist/native.js.map +1 -0
  102. package/dist/pie.d.ts +37 -0
  103. package/dist/pie.js +16 -0
  104. package/dist/pie.js.map +1 -0
  105. package/dist/provider.d.ts +73 -0
  106. package/dist/provider.js +24 -0
  107. package/dist/provider.js.map +1 -0
  108. package/dist/radar-75GRJ2IK.js +13 -0
  109. package/dist/radar-75GRJ2IK.js.map +1 -0
  110. package/dist/radar.d.ts +22 -0
  111. package/dist/radar.js +13 -0
  112. package/dist/radar.js.map +1 -0
  113. package/dist/sankey-XQTX2EG6.js +13 -0
  114. package/dist/sankey-XQTX2EG6.js.map +1 -0
  115. package/dist/sankey.d.ts +28 -0
  116. package/dist/sankey.js +13 -0
  117. package/dist/sankey.js.map +1 -0
  118. package/dist/scatter-XSNG4OKD.js +13 -0
  119. package/dist/scatter-XSNG4OKD.js.map +1 -0
  120. package/dist/scatter.d.ts +41 -0
  121. package/dist/scatter.js +15 -0
  122. package/dist/scatter.js.map +1 -0
  123. package/dist/sparkline.d.ts +26 -0
  124. package/dist/sparkline.js +15 -0
  125. package/dist/sparkline.js.map +1 -0
  126. package/dist/svg-BJUHYX3B.js +14 -0
  127. package/dist/svg-BJUHYX3B.js.map +1 -0
  128. package/dist/treemap-OMGGGB5U.js +13 -0
  129. package/dist/treemap-OMGGGB5U.js.map +1 -0
  130. package/dist/treemap.d.ts +24 -0
  131. package/dist/treemap.js +14 -0
  132. package/dist/treemap.js.map +1 -0
  133. package/dist/world-110m-DVFWXS42.js +18 -0
  134. package/dist/world-110m-DVFWXS42.js.map +1 -0
  135. package/package.json +518 -3
  136. package/registry/area-chart.json +784 -0
  137. package/registry/bar-chart.json +783 -0
  138. package/registry/calendar-heatmap.json +459 -0
  139. package/registry/candlestick.json +552 -0
  140. package/registry/chart.json +440 -0
  141. package/registry/charts-provider.json +190 -0
  142. package/registry/examples/area-chart/credits-usage.d.ts +4 -0
  143. package/registry/examples/area-chart/credits-usage.js +38 -0
  144. package/registry/examples/area-chart/credits-usage.tsx +32 -0
  145. package/registry/examples/area-chart/native/credits-usage.d.ts +4 -0
  146. package/registry/examples/area-chart/native/credits-usage.dark.png +0 -0
  147. package/registry/examples/area-chart/native/credits-usage.js +33 -0
  148. package/registry/examples/area-chart/native/credits-usage.light.png +0 -0
  149. package/registry/examples/area-chart/native/credits-usage.tsx +27 -0
  150. package/registry/examples/area-chart/storage.d.ts +4 -0
  151. package/registry/examples/area-chart/storage.js +27 -0
  152. package/registry/examples/area-chart/storage.tsx +21 -0
  153. package/registry/examples/bar-chart/jobs-by-status.d.ts +4 -0
  154. package/registry/examples/bar-chart/jobs-by-status.js +37 -0
  155. package/registry/examples/bar-chart/jobs-by-status.tsx +31 -0
  156. package/registry/examples/bar-chart/native/jobs-by-status.d.ts +4 -0
  157. package/registry/examples/bar-chart/native/jobs-by-status.dark.png +0 -0
  158. package/registry/examples/bar-chart/native/jobs-by-status.js +32 -0
  159. package/registry/examples/bar-chart/native/jobs-by-status.light.png +0 -0
  160. package/registry/examples/bar-chart/native/jobs-by-status.tsx +26 -0
  161. package/registry/examples/bar-chart/plans-by-quarter.d.ts +4 -0
  162. package/registry/examples/bar-chart/plans-by-quarter.js +31 -0
  163. package/registry/examples/bar-chart/plans-by-quarter.tsx +26 -0
  164. package/registry/examples/bar-chart/top-supporters.d.ts +4 -0
  165. package/registry/examples/bar-chart/top-supporters.js +32 -0
  166. package/registry/examples/bar-chart/top-supporters.tsx +27 -0
  167. package/registry/examples/calendar-heatmap/publishing.d.ts +4 -0
  168. package/registry/examples/calendar-heatmap/publishing.js +28 -0
  169. package/registry/examples/calendar-heatmap/publishing.tsx +23 -0
  170. package/registry/examples/candlestick/auction-bids.d.ts +4 -0
  171. package/registry/examples/candlestick/auction-bids.js +37 -0
  172. package/registry/examples/candlestick/auction-bids.tsx +32 -0
  173. package/registry/examples/chart/polar-uploads.d.ts +4 -0
  174. package/registry/examples/chart/polar-uploads.js +34 -0
  175. package/registry/examples/chart/polar-uploads.tsx +30 -0
  176. package/registry/examples/charts-provider/french-orazaka.d.ts +4 -0
  177. package/registry/examples/charts-provider/french-orazaka.js +26 -0
  178. package/registry/examples/charts-provider/french-orazaka.tsx +22 -0
  179. package/registry/examples/charts-provider/native/french-orazaka.d.ts +4 -0
  180. package/registry/examples/charts-provider/native/french-orazaka.dark.png +0 -0
  181. package/registry/examples/charts-provider/native/french-orazaka.js +17 -0
  182. package/registry/examples/charts-provider/native/french-orazaka.light.png +0 -0
  183. package/registry/examples/charts-provider/native/french-orazaka.tsx +17 -0
  184. package/registry/examples/funnel/signup.d.ts +4 -0
  185. package/registry/examples/funnel/signup.js +30 -0
  186. package/registry/examples/funnel/signup.tsx +24 -0
  187. package/registry/examples/gauge/challenge-goal.d.ts +4 -0
  188. package/registry/examples/gauge/challenge-goal.js +24 -0
  189. package/registry/examples/gauge/challenge-goal.tsx +18 -0
  190. package/registry/examples/gauge/credits-quota.d.ts +4 -0
  191. package/registry/examples/gauge/credits-quota.js +26 -0
  192. package/registry/examples/gauge/credits-quota.tsx +19 -0
  193. package/registry/examples/gauge/native/credits-quota.d.ts +4 -0
  194. package/registry/examples/gauge/native/credits-quota.dark.png +0 -0
  195. package/registry/examples/gauge/native/credits-quota.js +25 -0
  196. package/registry/examples/gauge/native/credits-quota.light.png +0 -0
  197. package/registry/examples/gauge/native/credits-quota.tsx +18 -0
  198. package/registry/examples/geo-map/viewers.d.ts +4 -0
  199. package/registry/examples/geo-map/viewers.js +43 -0
  200. package/registry/examples/geo-map/viewers.tsx +29 -0
  201. package/registry/examples/globe/deployment-regions.d.ts +4 -0
  202. package/registry/examples/globe/deployment-regions.js +36 -0
  203. package/registry/examples/globe/deployment-regions.tsx +30 -0
  204. package/registry/examples/heatmap/upload-activity.d.ts +4 -0
  205. package/registry/examples/heatmap/upload-activity.js +30 -0
  206. package/registry/examples/heatmap/upload-activity.tsx +25 -0
  207. package/registry/examples/line-chart/creator-earnings.d.ts +4 -0
  208. package/registry/examples/line-chart/creator-earnings.js +35 -0
  209. package/registry/examples/line-chart/creator-earnings.tsx +30 -0
  210. package/registry/examples/line-chart/forecast.d.ts +4 -0
  211. package/registry/examples/line-chart/forecast.js +36 -0
  212. package/registry/examples/line-chart/forecast.tsx +30 -0
  213. package/registry/examples/line-chart/live-jobs.d.ts +4 -0
  214. package/registry/examples/line-chart/live-jobs.js +21 -0
  215. package/registry/examples/line-chart/live-jobs.tsx +23 -0
  216. package/registry/examples/line-chart/native/creator-earnings.d.ts +4 -0
  217. package/registry/examples/line-chart/native/creator-earnings.dark.png +0 -0
  218. package/registry/examples/line-chart/native/creator-earnings.js +32 -0
  219. package/registry/examples/line-chart/native/creator-earnings.light.png +0 -0
  220. package/registry/examples/line-chart/native/creator-earnings.tsx +26 -0
  221. package/registry/examples/line-chart/states.d.ts +4 -0
  222. package/registry/examples/line-chart/states.js +16 -0
  223. package/registry/examples/line-chart/states.tsx +13 -0
  224. package/registry/examples/pie-chart/credit-spend.d.ts +4 -0
  225. package/registry/examples/pie-chart/credit-spend.js +30 -0
  226. package/registry/examples/pie-chart/credit-spend.tsx +24 -0
  227. package/registry/examples/pie-chart/native/credit-spend.d.ts +4 -0
  228. package/registry/examples/pie-chart/native/credit-spend.dark.png +0 -0
  229. package/registry/examples/pie-chart/native/credit-spend.js +17 -0
  230. package/registry/examples/pie-chart/native/credit-spend.light.png +0 -0
  231. package/registry/examples/pie-chart/native/credit-spend.tsx +12 -0
  232. package/registry/examples/pie-chart/storage-by-kind.d.ts +4 -0
  233. package/registry/examples/pie-chart/storage-by-kind.js +31 -0
  234. package/registry/examples/pie-chart/storage-by-kind.tsx +26 -0
  235. package/registry/examples/radar-chart/model-comparison.d.ts +4 -0
  236. package/registry/examples/radar-chart/model-comparison.js +33 -0
  237. package/registry/examples/radar-chart/model-comparison.tsx +28 -0
  238. package/registry/examples/sankey/credit-flow.d.ts +4 -0
  239. package/registry/examples/sankey/credit-flow.js +37 -0
  240. package/registry/examples/sankey/credit-flow.tsx +32 -0
  241. package/registry/examples/scatter-chart/watch-time.d.ts +4 -0
  242. package/registry/examples/scatter-chart/watch-time.js +36 -0
  243. package/registry/examples/scatter-chart/watch-time.tsx +31 -0
  244. package/registry/examples/sparkline/bars.d.ts +4 -0
  245. package/registry/examples/sparkline/bars.js +12 -0
  246. package/registry/examples/sparkline/bars.tsx +7 -0
  247. package/registry/examples/sparkline/native/stat-trend.d.ts +4 -0
  248. package/registry/examples/sparkline/native/stat-trend.dark.png +0 -0
  249. package/registry/examples/sparkline/native/stat-trend.js +12 -0
  250. package/registry/examples/sparkline/native/stat-trend.light.png +0 -0
  251. package/registry/examples/sparkline/native/stat-trend.tsx +7 -0
  252. package/registry/examples/sparkline/stat-trend.d.ts +4 -0
  253. package/registry/examples/sparkline/stat-trend.js +18 -0
  254. package/registry/examples/sparkline/stat-trend.tsx +15 -0
  255. package/registry/examples/sparkline/table-rows.d.ts +4 -0
  256. package/registry/examples/sparkline/table-rows.js +23 -0
  257. package/registry/examples/sparkline/table-rows.tsx +26 -0
  258. package/registry/examples/treemap/storage.d.ts +4 -0
  259. package/registry/examples/treemap/storage.js +17 -0
  260. package/registry/examples/treemap/storage.tsx +13 -0
  261. package/registry/funnel.json +486 -0
  262. package/registry/gauge.json +599 -0
  263. package/registry/geo-map.json +483 -0
  264. package/registry/globe.json +468 -0
  265. package/registry/heatmap.json +530 -0
  266. package/registry/index.json +420 -0
  267. package/registry/line-chart.json +792 -0
  268. package/registry/pie-chart.json +1287 -0
  269. package/registry/radar-chart.json +458 -0
  270. package/registry/sankey.json +502 -0
  271. package/registry/scatter-chart.json +558 -0
  272. package/registry/sparkline.json +562 -0
  273. package/registry/treemap.json +431 -0
@@ -0,0 +1,783 @@
1
+ {
2
+ "name": "bar-chart",
3
+ "package": "@krizaka/charts",
4
+ "type": "chart",
5
+ "title": "Bar chart",
6
+ "summary": "Amounts compared across categories: grouped, stacked or horizontal bars, each value written at its tip.",
7
+ "description": "Amounts compared across categories: grouped, stacked or horizontal bars, each value written at its tip.",
8
+ "status": "beta",
9
+ "category": "charts",
10
+ "platforms": "both",
11
+ "engine": "svg",
12
+ "whenToUse": [
13
+ "Counts per category or per period: jobs per day by status, revenue per plan.",
14
+ "A ranking with long names, as horizontal bars: top supporters, busiest models.",
15
+ "The parts of a total per category, stacked: completed, failed and queued jobs."
16
+ ],
17
+ "whenNotToUse": [
18
+ {
19
+ "when": "A continuous trend over many points.",
20
+ "use": "line-chart"
21
+ },
22
+ {
23
+ "when": "Two dimensions of the same measure (weekday × hour).",
24
+ "use": "heatmap"
25
+ },
26
+ {
27
+ "when": "Stages that lose people on the way.",
28
+ "use": "funnel"
29
+ }
30
+ ],
31
+ "bestPractices": [
32
+ "Sort a ranking by value; keep time in its own order.",
33
+ "Bars always start at zero: a bar's length is its value.",
34
+ "Stack at most four parts; give each a word in the legend, never a colour alone.",
35
+ "Use the status tones (`color: \"danger\"`) for statuses only, never for an ordinary series."
36
+ ],
37
+ "accessibility": {
38
+ "keyboard": [
39
+ {
40
+ "keys": "Tab",
41
+ "action": "Moves the focus to the plot (one tab stop), then to the data and export buttons."
42
+ },
43
+ {
44
+ "keys": "Arrow keys",
45
+ "action": "Walk the points one by one: each is announced and its tooltip shown."
46
+ },
47
+ {
48
+ "keys": "Home / End",
49
+ "action": "Jump to the first or the last point."
50
+ },
51
+ {
52
+ "keys": "Esc",
53
+ "action": "Hides the tooltip and clears the active point."
54
+ },
55
+ {
56
+ "keys": "Enter",
57
+ "action": "Selects the active bar (calls `onSelect` with its row)."
58
+ }
59
+ ],
60
+ "notes": [
61
+ "The plot is a group named by the title and described by a summary written from the data (extremes, trend), read before anything else.",
62
+ "The data table is always in the page for assistive technology; “Show data” reveals it for everyone.",
63
+ "Colour never carries a meaning alone: a legend from two series, direct labels, the table.",
64
+ "The entrance plays once, when the chart comes on screen, and never under reduced motion.",
65
+ "A 2 px gap separates the stacked segments, so neighbours stay apart without relying on their colours."
66
+ ]
67
+ },
68
+ "related": [
69
+ "line-chart",
70
+ "area-chart",
71
+ "funnel",
72
+ "heatmap"
73
+ ],
74
+ "source": "packages/charts/src/meta/bar-chart.ts",
75
+ "install": {
76
+ "web": "npm install @krizaka/charts",
77
+ "native": "npx expo install react-native-svg\nnpm install @krizaka/charts"
78
+ },
79
+ "web": {
80
+ "entry": "@krizaka/charts/bar",
81
+ "import": "import { BarChart } from \"@krizaka/charts/bar\";",
82
+ "props": [
83
+ {
84
+ "component": "BarChart",
85
+ "description": "Compare amounts across categories: grouped, stacked or horizontal bars, each value at its tip.",
86
+ "props": [
87
+ {
88
+ "name": "data",
89
+ "type": "readonly T[]",
90
+ "default": null,
91
+ "description": "The rows, in the order of the x axis.",
92
+ "required": true
93
+ },
94
+ {
95
+ "name": "title",
96
+ "type": "string",
97
+ "default": null,
98
+ "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
99
+ "required": true
100
+ },
101
+ {
102
+ "name": "brand",
103
+ "type": "BrandId",
104
+ "default": null,
105
+ "description": "The brand whose palette the charts use. Without it, a chart follows a `.brand-<id>` ancestor, else Krizaka. Set it\nwhen the app loads a brand stylesheet on `:root` (`@krizaka/tokens/brands/orazaka.css`).",
106
+ "required": false
107
+ },
108
+ {
109
+ "name": "className",
110
+ "type": "string",
111
+ "default": null,
112
+ "description": "A class on the figure (layout: margins, grid placement).",
113
+ "required": false
114
+ },
115
+ {
116
+ "name": "dataTable",
117
+ "type": "boolean",
118
+ "default": null,
119
+ "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
120
+ "required": false
121
+ },
122
+ {
123
+ "name": "description",
124
+ "type": "ReactNode",
125
+ "default": null,
126
+ "description": "A sentence under the title: the period, the unit, the source.",
127
+ "required": false
128
+ },
129
+ {
130
+ "name": "empty",
131
+ "type": "ReactNode",
132
+ "default": null,
133
+ "description": "What to show when there is nothing to draw (default: the `empty` label). An `EmptyState` of\n@krizaka /ui fits.",
134
+ "required": false
135
+ },
136
+ {
137
+ "name": "error",
138
+ "type": "ReactNode",
139
+ "default": null,
140
+ "description": "The data could not be loaded: `true` says the default words, a node says yours (a retry button…).",
141
+ "required": false
142
+ },
143
+ {
144
+ "name": "exportable",
145
+ "type": "boolean | readonly ExportFormat[]",
146
+ "default": null,
147
+ "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
148
+ "required": false
149
+ },
150
+ {
151
+ "name": "format",
152
+ "type": "ValueFormat",
153
+ "default": null,
154
+ "description": "How the values are written (axis, tooltip, table, summary). Default `\"number\"`.",
155
+ "required": false
156
+ },
157
+ {
158
+ "name": "height",
159
+ "type": "number",
160
+ "default": null,
161
+ "description": "The height of the plot in pixels. Default 280 (a sparkline: 32).",
162
+ "required": false
163
+ },
164
+ {
165
+ "name": "hideTitle",
166
+ "type": "boolean",
167
+ "default": null,
168
+ "description": "Visually hide the title (it stays the chart's accessible name): a card that already has its heading.",
169
+ "required": false
170
+ },
171
+ {
172
+ "name": "horizontal",
173
+ "type": "boolean",
174
+ "default": null,
175
+ "description": "Bars grow to the right, the categories down the side: long labels, rankings.",
176
+ "required": false
177
+ },
178
+ {
179
+ "name": "id",
180
+ "type": "string",
181
+ "default": null,
182
+ "description": "The id of the figure.",
183
+ "required": false
184
+ },
185
+ {
186
+ "name": "labels",
187
+ "type": "ChartLabelsInput",
188
+ "default": null,
189
+ "description": "The words, translated: the buttons, the states, the written summary.",
190
+ "required": false
191
+ },
192
+ {
193
+ "name": "legend",
194
+ "type": "boolean",
195
+ "default": null,
196
+ "description": "Show the legend (from two series). Default true.",
197
+ "required": false
198
+ },
199
+ {
200
+ "name": "live",
201
+ "type": "boolean",
202
+ "default": null,
203
+ "description": "Streaming data (a job queue, an auction): no entrance on updates, no announcement of every new point.",
204
+ "required": false
205
+ },
206
+ {
207
+ "name": "loading",
208
+ "type": "boolean",
209
+ "default": null,
210
+ "description": "The data is on its way: a skeleton of the chart, announced once.",
211
+ "required": false
212
+ },
213
+ {
214
+ "name": "locale",
215
+ "type": "Locale",
216
+ "default": null,
217
+ "description": "The locale of every figure and date (`\"fr-FR\"`). Default `\"en-US\"`.",
218
+ "required": false
219
+ },
220
+ {
221
+ "name": "markers",
222
+ "type": "readonly Marker[]",
223
+ "default": null,
224
+ "description": "Vertical markers at a category: a launch, an incident.",
225
+ "required": false
226
+ },
227
+ {
228
+ "name": "onSelect",
229
+ "type": "((datum: T, index: number) => void)",
230
+ "default": null,
231
+ "description": "Called with the row when a point or a bar is clicked (or Enter is pressed on it).",
232
+ "required": false
233
+ },
234
+ {
235
+ "name": "series",
236
+ "type": "readonly SeriesSpec<T>[]",
237
+ "default": null,
238
+ "description": "The series to draw, each with its field and its name; the palette follows their order.",
239
+ "required": false
240
+ },
241
+ {
242
+ "name": "stacked",
243
+ "type": "boolean",
244
+ "default": null,
245
+ "description": "Stack the series in one bar per category (a total and its parts); default: grouped side by side.",
246
+ "required": false
247
+ },
248
+ {
249
+ "name": "style",
250
+ "type": "CSSProperties",
251
+ "default": null,
252
+ "description": "Inline style on the figure (layout only: colours come from the tokens).",
253
+ "required": false
254
+ },
255
+ {
256
+ "name": "summary",
257
+ "type": "\"hidden\" | \"visible\"",
258
+ "default": null,
259
+ "description": "The written summary: read by screen readers only (`\"hidden\"`, default), or shown under the chart (`\"visible\"`).",
260
+ "required": false
261
+ },
262
+ {
263
+ "name": "summaryText",
264
+ "type": "string",
265
+ "default": null,
266
+ "description": "Your own summary instead of the generated one (still read first by screen readers).",
267
+ "required": false
268
+ },
269
+ {
270
+ "name": "thresholds",
271
+ "type": "readonly Threshold[]",
272
+ "default": null,
273
+ "description": "Horizontal lines at a value: a goal, a payout threshold.",
274
+ "required": false
275
+ },
276
+ {
277
+ "name": "valueLabels",
278
+ "type": "boolean",
279
+ "default": "true",
280
+ "description": "Write each value at the tip of its bar (one series, up to 16 bars). Default true.",
281
+ "required": false
282
+ },
283
+ {
284
+ "name": "x",
285
+ "type": "string | ((datum: T, index: number) => unknown)",
286
+ "default": null,
287
+ "description": "The field (or function) of the category: a month (`\"2026-04\"`), a day, a label. Default: the row's position.",
288
+ "required": false
289
+ },
290
+ {
291
+ "name": "xFormat",
292
+ "type": "CategoryFormat",
293
+ "default": null,
294
+ "description": "How the categories are written. Default: dates by their precision (`2026-04` → `Apr 2026`), text as is.",
295
+ "required": false
296
+ },
297
+ {
298
+ "name": "xLabel",
299
+ "type": "string",
300
+ "default": null,
301
+ "description": "The header of the categories in the data table (`Month`).",
302
+ "required": false
303
+ },
304
+ {
305
+ "name": "y",
306
+ "type": "string | ((datum: T, index: number) => number | null)",
307
+ "default": null,
308
+ "description": "A single series: its field. Use `series` for several.",
309
+ "required": false
310
+ },
311
+ {
312
+ "name": "yLabel",
313
+ "type": "string",
314
+ "default": null,
315
+ "description": "The name of the single `y` series (legend, tooltip, table). Default: the field's name.",
316
+ "required": false
317
+ },
318
+ {
319
+ "name": "zero",
320
+ "type": "boolean",
321
+ "default": null,
322
+ "description": "Start the value axis at zero. Default: true for bars and areas; for lines, unless the values sit far from zero.",
323
+ "required": false
324
+ }
325
+ ]
326
+ }
327
+ ],
328
+ "examples": [
329
+ {
330
+ "name": "jobs-by-status",
331
+ "title": "Jobs by status",
332
+ "description": "A week of Orazaka jobs per day, stacked by status in the status tones.",
333
+ "path": "examples/bar-chart/jobs-by-status.tsx",
334
+ "module": "@krizaka/charts/registry/examples/bar-chart/jobs-by-status",
335
+ "code": "import { BarChart } from \"@krizaka/charts/bar\";\n\nconst days = [\n { day: \"2026-10-05\", completed: 1_240, failed: 38, queued: 12 },\n { day: \"2026-10-06\", completed: 1_612, failed: 41, queued: 20 },\n { day: \"2026-10-07\", completed: 1_505, failed: 95, queued: 31 },\n { day: \"2026-10-08\", completed: 1_788, failed: 27, queued: 18 },\n { day: \"2026-10-09\", completed: 1_934, failed: 33, queued: 44 },\n { day: \"2026-10-10\", completed: 1_102, failed: 19, queued: 9 },\n { day: \"2026-10-11\", completed: 986, failed: 12, queued: 63 },\n];\n\nexport default function JobsByStatus() {\n return (\n <BarChart\n title=\"Jobs per day, by status\"\n description=\"Orazaka · all workspaces\"\n data={days}\n x=\"day\"\n xFormat=\"day\"\n series={[\n { key: \"completed\", label: \"Completed\", color: \"success\" },\n { key: \"failed\", label: \"Failed\", color: \"danger\" },\n { key: \"queued\", label: \"Queued\", color: \"neutral\" },\n ]}\n format=\"integer\"\n stacked\n exportable={[\"csv\", \"png\"]}\n />\n );\n}\n"
336
+ },
337
+ {
338
+ "name": "top-supporters",
339
+ "title": "Ranking",
340
+ "description": "Horizontal bars: a creator's top supporters, the value at each tip.",
341
+ "path": "examples/bar-chart/top-supporters.tsx",
342
+ "module": "@krizaka/charts/registry/examples/bar-chart/top-supporters",
343
+ "code": "import { BarChart } from \"@krizaka/charts/bar\";\n\n// Cents, sorted by amount: a ranking reads top to bottom.\nconst supporters = [\n { name: \"Léa Fontaine\", total: 48_500 },\n { name: \"Marcus Oyelaran\", total: 36_200 },\n { name: \"Hana Watanabe\", total: 29_900 },\n { name: \"Tomás Ferreira-Lindqvist\", total: 21_400 },\n { name: \"Eric Dubois\", total: 17_800 },\n { name: \"Amira Haddad\", total: 12_050 },\n];\n\nexport default function TopSupporters() {\n return (\n <BarChart\n title=\"Top supporters this quarter\"\n data={supporters}\n x=\"name\"\n xLabel=\"Supporter\"\n y=\"total\"\n yLabel=\"Total\"\n format={{ style: \"money\", currency: \"EUR\" }}\n horizontal\n height={260}\n />\n );\n}\n"
344
+ },
345
+ {
346
+ "name": "plans-by-quarter",
347
+ "title": "Grouped",
348
+ "description": "Revenue per plan, grouped by quarter.",
349
+ "path": "examples/bar-chart/plans-by-quarter.tsx",
350
+ "module": "@krizaka/charts/registry/examples/bar-chart/plans-by-quarter",
351
+ "code": "import { BarChart } from \"@krizaka/charts/bar\";\n\n// Thousands of euros per quarter.\nconst quarters = [\n { quarter: \"Q4 2025\", starter: 18, pro: 42, studio: 26 },\n { quarter: \"Q1 2026\", starter: 21, pro: 51, studio: 34 },\n { quarter: \"Q2 2026\", starter: 24, pro: 58, studio: 47 },\n { quarter: \"Q3 2026\", starter: 22, pro: 66, studio: 61 },\n];\n\nexport default function PlansByQuarter() {\n return (\n <BarChart\n title=\"Revenue per plan (k€)\"\n data={quarters}\n x=\"quarter\"\n xLabel=\"Quarter\"\n series={[\n { key: \"starter\", label: \"Starter\" },\n { key: \"pro\", label: \"Pro\" },\n { key: \"studio\", label: \"Studio\" },\n ]}\n format=\"integer\"\n />\n );\n}\n"
352
+ }
353
+ ]
354
+ },
355
+ "native": {
356
+ "entry": "@krizaka/charts/native",
357
+ "import": "import { BarChart } from \"@krizaka/charts/native\";",
358
+ "differences": [
359
+ "Vertical bars only (no `horizontal`), no value labels at the tips.",
360
+ "No data table or export: swipe up and down on the chart to hear each category."
361
+ ],
362
+ "props": [
363
+ {
364
+ "component": "BarChart",
365
+ "description": "Amounts across categories (React Native): grouped or `stacked` bars.",
366
+ "props": [
367
+ {
368
+ "name": "data",
369
+ "type": "readonly T[]",
370
+ "default": null,
371
+ "description": "The rows, in the order of the x axis.",
372
+ "required": true
373
+ },
374
+ {
375
+ "name": "title",
376
+ "type": "string",
377
+ "default": null,
378
+ "description": "What the chart shows: its heading and accessible name.",
379
+ "required": true
380
+ },
381
+ {
382
+ "name": "brand",
383
+ "type": "BrandId",
384
+ "default": null,
385
+ "description": "The brand whose palette leads. Default Krizaka.",
386
+ "required": false
387
+ },
388
+ {
389
+ "name": "empty",
390
+ "type": "ReactNode",
391
+ "default": null,
392
+ "description": "Shown instead of the plot when there is nothing to draw. Default: the `empty` label.",
393
+ "required": false
394
+ },
395
+ {
396
+ "name": "format",
397
+ "type": "ValueFormat",
398
+ "default": null,
399
+ "description": "How the values are written.",
400
+ "required": false
401
+ },
402
+ {
403
+ "name": "height",
404
+ "type": "number",
405
+ "default": null,
406
+ "description": "The plot's height.",
407
+ "required": false
408
+ },
409
+ {
410
+ "name": "hideTitle",
411
+ "type": "boolean",
412
+ "default": null,
413
+ "description": "Hide the heading (it stays the accessible name).",
414
+ "required": false
415
+ },
416
+ {
417
+ "name": "labels",
418
+ "type": "ChartLabelsInput",
419
+ "default": null,
420
+ "description": "The words: the readout, the summary.",
421
+ "required": false
422
+ },
423
+ {
424
+ "name": "loading",
425
+ "type": "boolean",
426
+ "default": null,
427
+ "description": "The data is on its way.",
428
+ "required": false
429
+ },
430
+ {
431
+ "name": "locale",
432
+ "type": "Locale",
433
+ "default": null,
434
+ "description": "The locale of every figure and date. Default `\"en-US\"`.",
435
+ "required": false
436
+ },
437
+ {
438
+ "name": "scheme",
439
+ "type": "Mode",
440
+ "default": null,
441
+ "description": "Dark or light. Default: the device's (pass `useTheme().scheme` of\n@krizaka /ui/native to follow the app).",
442
+ "required": false
443
+ },
444
+ {
445
+ "name": "series",
446
+ "type": "readonly SeriesSpec<T>[]",
447
+ "default": null,
448
+ "description": "The series, each with its field and name.",
449
+ "required": false
450
+ },
451
+ {
452
+ "name": "stacked",
453
+ "type": "boolean",
454
+ "default": null,
455
+ "description": "Stack the series in one bar per category; default: grouped side by side.",
456
+ "required": false
457
+ },
458
+ {
459
+ "name": "style",
460
+ "type": "ViewStyle",
461
+ "default": null,
462
+ "description": "The style of the chart's container (layout only: colours come from the theme).",
463
+ "required": false
464
+ },
465
+ {
466
+ "name": "theme",
467
+ "type": "Partial<ChartTheme>",
468
+ "default": null,
469
+ "description": "The app's colour roles (`useTheme().theme` of\n@krizaka /ui/native): a product's brand overrides apply.",
470
+ "required": false
471
+ },
472
+ {
473
+ "name": "thresholds",
474
+ "type": "readonly Threshold[]",
475
+ "default": null,
476
+ "description": "Horizontal lines at a value.",
477
+ "required": false
478
+ },
479
+ {
480
+ "name": "x",
481
+ "type": "string | ((datum: T, index: number) => unknown)",
482
+ "default": null,
483
+ "description": "The field (or function) of the category.",
484
+ "required": false
485
+ },
486
+ {
487
+ "name": "xFormat",
488
+ "type": "CategoryFormat",
489
+ "default": null,
490
+ "description": "How the categories are written.",
491
+ "required": false
492
+ },
493
+ {
494
+ "name": "y",
495
+ "type": "string | ((datum: T, index: number) => number | null)",
496
+ "default": null,
497
+ "description": "A single series: its field.",
498
+ "required": false
499
+ },
500
+ {
501
+ "name": "yLabel",
502
+ "type": "string",
503
+ "default": null,
504
+ "description": "The name of the single `y` series.",
505
+ "required": false
506
+ }
507
+ ]
508
+ }
509
+ ],
510
+ "examples": [
511
+ {
512
+ "name": "jobs-by-status",
513
+ "title": "Jobs by status",
514
+ "description": "A week of jobs, stacked by status.",
515
+ "path": "examples/bar-chart/native/jobs-by-status.tsx",
516
+ "module": "@krizaka/charts/registry/examples/bar-chart/native/jobs-by-status",
517
+ "code": "import { BarChart } from \"@krizaka/charts/native\";\n\nconst days = [\n { day: \"2026-10-07\", completed: 1_505, failed: 95 },\n { day: \"2026-10-08\", completed: 1_788, failed: 27 },\n { day: \"2026-10-09\", completed: 1_934, failed: 33 },\n { day: \"2026-10-10\", completed: 1_102, failed: 19 },\n { day: \"2026-10-11\", completed: 986, failed: 12 },\n];\n\nexport default function JobsByStatus() {\n return (\n <BarChart\n title=\"Jobs per day\"\n data={days}\n x=\"day\"\n xFormat=\"day\"\n series={[\n { key: \"completed\", label: \"Completed\", color: \"success\" },\n { key: \"failed\", label: \"Failed\", color: \"danger\" },\n ]}\n format=\"compact\"\n stacked\n />\n );\n}\n",
518
+ "screenshots": {
519
+ "dark": "examples/bar-chart/native/jobs-by-status.dark.png",
520
+ "light": "examples/bar-chart/native/jobs-by-status.light.png"
521
+ }
522
+ }
523
+ ]
524
+ },
525
+ "files": [],
526
+ "dependencies": [
527
+ "@krizaka/intl@workspace:^",
528
+ "d3-geo@^3.1.1",
529
+ "echarts@^6.1.0",
530
+ "topojson-client@^3.1.0"
531
+ ],
532
+ "registryDependencies": [],
533
+ "demo": {
534
+ "path": "examples/bar-chart/jobs-by-status.tsx",
535
+ "content": "import { BarChart } from \"@krizaka/charts/bar\";\n\nconst days = [\n { day: \"2026-10-05\", completed: 1_240, failed: 38, queued: 12 },\n { day: \"2026-10-06\", completed: 1_612, failed: 41, queued: 20 },\n { day: \"2026-10-07\", completed: 1_505, failed: 95, queued: 31 },\n { day: \"2026-10-08\", completed: 1_788, failed: 27, queued: 18 },\n { day: \"2026-10-09\", completed: 1_934, failed: 33, queued: 44 },\n { day: \"2026-10-10\", completed: 1_102, failed: 19, queued: 9 },\n { day: \"2026-10-11\", completed: 986, failed: 12, queued: 63 },\n];\n\nexport default function JobsByStatus() {\n return (\n <BarChart\n title=\"Jobs per day, by status\"\n description=\"Orazaka · all workspaces\"\n data={days}\n x=\"day\"\n xFormat=\"day\"\n series={[\n { key: \"completed\", label: \"Completed\", color: \"success\" },\n { key: \"failed\", label: \"Failed\", color: \"danger\" },\n { key: \"queued\", label: \"Queued\", color: \"neutral\" },\n ]}\n format=\"integer\"\n stacked\n exportable={[\"csv\", \"png\"]}\n />\n );\n}\n"
536
+ },
537
+ "props": [
538
+ {
539
+ "component": "BarChart",
540
+ "description": "Compare amounts across categories: grouped, stacked or horizontal bars, each value at its tip.",
541
+ "props": [
542
+ {
543
+ "name": "data",
544
+ "type": "readonly T[]",
545
+ "default": null,
546
+ "description": "The rows, in the order of the x axis.",
547
+ "required": true
548
+ },
549
+ {
550
+ "name": "title",
551
+ "type": "string",
552
+ "default": null,
553
+ "description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
554
+ "required": true
555
+ },
556
+ {
557
+ "name": "brand",
558
+ "type": "BrandId",
559
+ "default": null,
560
+ "description": "The brand whose palette the charts use. Without it, a chart follows a `.brand-<id>` ancestor, else Krizaka. Set it\nwhen the app loads a brand stylesheet on `:root` (`@krizaka/tokens/brands/orazaka.css`).",
561
+ "required": false
562
+ },
563
+ {
564
+ "name": "className",
565
+ "type": "string",
566
+ "default": null,
567
+ "description": "A class on the figure (layout: margins, grid placement).",
568
+ "required": false
569
+ },
570
+ {
571
+ "name": "dataTable",
572
+ "type": "boolean",
573
+ "default": null,
574
+ "description": "The \"Show data\" button (the table is in the page for screen readers either way). Default true.",
575
+ "required": false
576
+ },
577
+ {
578
+ "name": "description",
579
+ "type": "ReactNode",
580
+ "default": null,
581
+ "description": "A sentence under the title: the period, the unit, the source.",
582
+ "required": false
583
+ },
584
+ {
585
+ "name": "empty",
586
+ "type": "ReactNode",
587
+ "default": null,
588
+ "description": "What to show when there is nothing to draw (default: the `empty` label). An `EmptyState` of\n@krizaka /ui fits.",
589
+ "required": false
590
+ },
591
+ {
592
+ "name": "error",
593
+ "type": "ReactNode",
594
+ "default": null,
595
+ "description": "The data could not be loaded: `true` says the default words, a node says yours (a retry button…).",
596
+ "required": false
597
+ },
598
+ {
599
+ "name": "exportable",
600
+ "type": "boolean | readonly ExportFormat[]",
601
+ "default": null,
602
+ "description": "Export buttons: `true` for PNG, SVG and CSV, or the formats you want.",
603
+ "required": false
604
+ },
605
+ {
606
+ "name": "format",
607
+ "type": "ValueFormat",
608
+ "default": null,
609
+ "description": "How the values are written (axis, tooltip, table, summary). Default `\"number\"`.",
610
+ "required": false
611
+ },
612
+ {
613
+ "name": "height",
614
+ "type": "number",
615
+ "default": null,
616
+ "description": "The height of the plot in pixels. Default 280 (a sparkline: 32).",
617
+ "required": false
618
+ },
619
+ {
620
+ "name": "hideTitle",
621
+ "type": "boolean",
622
+ "default": null,
623
+ "description": "Visually hide the title (it stays the chart's accessible name): a card that already has its heading.",
624
+ "required": false
625
+ },
626
+ {
627
+ "name": "horizontal",
628
+ "type": "boolean",
629
+ "default": null,
630
+ "description": "Bars grow to the right, the categories down the side: long labels, rankings.",
631
+ "required": false
632
+ },
633
+ {
634
+ "name": "id",
635
+ "type": "string",
636
+ "default": null,
637
+ "description": "The id of the figure.",
638
+ "required": false
639
+ },
640
+ {
641
+ "name": "labels",
642
+ "type": "ChartLabelsInput",
643
+ "default": null,
644
+ "description": "The words, translated: the buttons, the states, the written summary.",
645
+ "required": false
646
+ },
647
+ {
648
+ "name": "legend",
649
+ "type": "boolean",
650
+ "default": null,
651
+ "description": "Show the legend (from two series). Default true.",
652
+ "required": false
653
+ },
654
+ {
655
+ "name": "live",
656
+ "type": "boolean",
657
+ "default": null,
658
+ "description": "Streaming data (a job queue, an auction): no entrance on updates, no announcement of every new point.",
659
+ "required": false
660
+ },
661
+ {
662
+ "name": "loading",
663
+ "type": "boolean",
664
+ "default": null,
665
+ "description": "The data is on its way: a skeleton of the chart, announced once.",
666
+ "required": false
667
+ },
668
+ {
669
+ "name": "locale",
670
+ "type": "Locale",
671
+ "default": null,
672
+ "description": "The locale of every figure and date (`\"fr-FR\"`). Default `\"en-US\"`.",
673
+ "required": false
674
+ },
675
+ {
676
+ "name": "markers",
677
+ "type": "readonly Marker[]",
678
+ "default": null,
679
+ "description": "Vertical markers at a category: a launch, an incident.",
680
+ "required": false
681
+ },
682
+ {
683
+ "name": "onSelect",
684
+ "type": "((datum: T, index: number) => void)",
685
+ "default": null,
686
+ "description": "Called with the row when a point or a bar is clicked (or Enter is pressed on it).",
687
+ "required": false
688
+ },
689
+ {
690
+ "name": "series",
691
+ "type": "readonly SeriesSpec<T>[]",
692
+ "default": null,
693
+ "description": "The series to draw, each with its field and its name; the palette follows their order.",
694
+ "required": false
695
+ },
696
+ {
697
+ "name": "stacked",
698
+ "type": "boolean",
699
+ "default": null,
700
+ "description": "Stack the series in one bar per category (a total and its parts); default: grouped side by side.",
701
+ "required": false
702
+ },
703
+ {
704
+ "name": "style",
705
+ "type": "CSSProperties",
706
+ "default": null,
707
+ "description": "Inline style on the figure (layout only: colours come from the tokens).",
708
+ "required": false
709
+ },
710
+ {
711
+ "name": "summary",
712
+ "type": "\"hidden\" | \"visible\"",
713
+ "default": null,
714
+ "description": "The written summary: read by screen readers only (`\"hidden\"`, default), or shown under the chart (`\"visible\"`).",
715
+ "required": false
716
+ },
717
+ {
718
+ "name": "summaryText",
719
+ "type": "string",
720
+ "default": null,
721
+ "description": "Your own summary instead of the generated one (still read first by screen readers).",
722
+ "required": false
723
+ },
724
+ {
725
+ "name": "thresholds",
726
+ "type": "readonly Threshold[]",
727
+ "default": null,
728
+ "description": "Horizontal lines at a value: a goal, a payout threshold.",
729
+ "required": false
730
+ },
731
+ {
732
+ "name": "valueLabels",
733
+ "type": "boolean",
734
+ "default": "true",
735
+ "description": "Write each value at the tip of its bar (one series, up to 16 bars). Default true.",
736
+ "required": false
737
+ },
738
+ {
739
+ "name": "x",
740
+ "type": "string | ((datum: T, index: number) => unknown)",
741
+ "default": null,
742
+ "description": "The field (or function) of the category: a month (`\"2026-04\"`), a day, a label. Default: the row's position.",
743
+ "required": false
744
+ },
745
+ {
746
+ "name": "xFormat",
747
+ "type": "CategoryFormat",
748
+ "default": null,
749
+ "description": "How the categories are written. Default: dates by their precision (`2026-04` → `Apr 2026`), text as is.",
750
+ "required": false
751
+ },
752
+ {
753
+ "name": "xLabel",
754
+ "type": "string",
755
+ "default": null,
756
+ "description": "The header of the categories in the data table (`Month`).",
757
+ "required": false
758
+ },
759
+ {
760
+ "name": "y",
761
+ "type": "string | ((datum: T, index: number) => number | null)",
762
+ "default": null,
763
+ "description": "A single series: its field. Use `series` for several.",
764
+ "required": false
765
+ },
766
+ {
767
+ "name": "yLabel",
768
+ "type": "string",
769
+ "default": null,
770
+ "description": "The name of the single `y` series (legend, tooltip, table). Default: the field's name.",
771
+ "required": false
772
+ },
773
+ {
774
+ "name": "zero",
775
+ "type": "boolean",
776
+ "default": null,
777
+ "description": "Start the value axis at zero. Default: true for bars and areas; for lines, unless the values sit far from zero.",
778
+ "required": false
779
+ }
780
+ ]
781
+ }
782
+ ]
783
+ }