@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,38 @@
1
+ "use client";
2
+
3
+ // registry/examples/area-chart/credits-usage.tsx
4
+ import { AreaChart } from "@krizaka/charts/line";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var weeks = [
7
+ { week: "2026-08-03", chat: 9400, image: 4100, video: 1200 },
8
+ { week: "2026-08-10", chat: 10200, image: 4600, video: 1900 },
9
+ { week: "2026-08-17", chat: 9800, image: 5300, video: 2400 },
10
+ { week: "2026-08-24", chat: 11600, image: 5100, video: 3100 },
11
+ { week: "2026-08-31", chat: 12300, image: 6200, video: 3600 },
12
+ { week: "2026-09-07", chat: 12900, image: 6e3, video: 4800 },
13
+ { week: "2026-09-14", chat: 13400, image: 6900, video: 5200 },
14
+ { week: "2026-09-21", chat: 14100, image: 7400, video: 6100 }
15
+ ];
16
+ function CreditsUsage() {
17
+ return /* @__PURE__ */ jsx(
18
+ AreaChart,
19
+ {
20
+ title: "Credits used per week, by model",
21
+ description: "Workspace \u201CAtelier Nord\u201D, Pro plan",
22
+ data: weeks,
23
+ x: "week",
24
+ xFormat: "day",
25
+ series: [
26
+ { key: "chat", label: "Chat" },
27
+ { key: "image", label: "Image" },
28
+ { key: "video", label: "Video" }
29
+ ],
30
+ format: "integer",
31
+ stacked: true,
32
+ thresholds: [{ value: 25e3, label: "Weekly allowance", tone: "warning" }]
33
+ }
34
+ );
35
+ }
36
+ export {
37
+ CreditsUsage as default
38
+ };
@@ -0,0 +1,32 @@
1
+ import { AreaChart } from "@krizaka/charts/line";
2
+
3
+ const weeks = [
4
+ { week: "2026-08-03", chat: 9_400, image: 4_100, video: 1_200 },
5
+ { week: "2026-08-10", chat: 10_200, image: 4_600, video: 1_900 },
6
+ { week: "2026-08-17", chat: 9_800, image: 5_300, video: 2_400 },
7
+ { week: "2026-08-24", chat: 11_600, image: 5_100, video: 3_100 },
8
+ { week: "2026-08-31", chat: 12_300, image: 6_200, video: 3_600 },
9
+ { week: "2026-09-07", chat: 12_900, image: 6_000, video: 4_800 },
10
+ { week: "2026-09-14", chat: 13_400, image: 6_900, video: 5_200 },
11
+ { week: "2026-09-21", chat: 14_100, image: 7_400, video: 6_100 },
12
+ ];
13
+
14
+ export default function CreditsUsage() {
15
+ return (
16
+ <AreaChart
17
+ title="Credits used per week, by model"
18
+ description="Workspace “Atelier Nord”, Pro plan"
19
+ data={weeks}
20
+ x="week"
21
+ xFormat="day"
22
+ series={[
23
+ { key: "chat", label: "Chat" },
24
+ { key: "image", label: "Image" },
25
+ { key: "video", label: "Video" },
26
+ ]}
27
+ format="integer"
28
+ stacked
29
+ thresholds={[{ value: 25_000, label: "Weekly allowance", tone: "warning" }]}
30
+ />
31
+ );
32
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,33 @@
1
+ "use client";
2
+
3
+ // registry/examples/area-chart/native/credits-usage.tsx
4
+ import { AreaChart } from "@krizaka/charts/native";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var weeks = [
7
+ { week: "2026-08-03", chat: 9400, image: 4100 },
8
+ { week: "2026-08-10", chat: 10200, image: 4600 },
9
+ { week: "2026-08-17", chat: 9800, image: 5300 },
10
+ { week: "2026-08-24", chat: 11600, image: 5100 },
11
+ { week: "2026-08-31", chat: 12300, image: 6200 },
12
+ { week: "2026-09-07", chat: 12900, image: 6e3 }
13
+ ];
14
+ function CreditsUsage() {
15
+ return /* @__PURE__ */ jsx(
16
+ AreaChart,
17
+ {
18
+ title: "Credits used per week",
19
+ data: weeks,
20
+ x: "week",
21
+ xFormat: "day",
22
+ series: [
23
+ { key: "chat", label: "Chat" },
24
+ { key: "image", label: "Image" }
25
+ ],
26
+ format: "compact",
27
+ stacked: true
28
+ }
29
+ );
30
+ }
31
+ export {
32
+ CreditsUsage as default
33
+ };
@@ -0,0 +1,27 @@
1
+ import { AreaChart } from "@krizaka/charts/native";
2
+
3
+ const weeks = [
4
+ { week: "2026-08-03", chat: 9_400, image: 4_100 },
5
+ { week: "2026-08-10", chat: 10_200, image: 4_600 },
6
+ { week: "2026-08-17", chat: 9_800, image: 5_300 },
7
+ { week: "2026-08-24", chat: 11_600, image: 5_100 },
8
+ { week: "2026-08-31", chat: 12_300, image: 6_200 },
9
+ { week: "2026-09-07", chat: 12_900, image: 6_000 },
10
+ ];
11
+
12
+ export default function CreditsUsage() {
13
+ return (
14
+ <AreaChart
15
+ title="Credits used per week"
16
+ data={weeks}
17
+ x="week"
18
+ xFormat="day"
19
+ series={[
20
+ { key: "chat", label: "Chat" },
21
+ { key: "image", label: "Image" },
22
+ ]}
23
+ format="compact"
24
+ stacked
25
+ />
26
+ );
27
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,27 @@
1
+ "use client";
2
+
3
+ // registry/examples/area-chart/storage.tsx
4
+ import { AreaChart } from "@krizaka/charts/line";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var days = [12.4, 12.9, 13.1, 13.8, 14.6, 14.9, 15.7, 16.2, 16.4, 17.3, 18.1, 18.6, 19.4, 20.2].map((gb, i) => ({
7
+ day: `2026-09-${String(i + 1).padStart(2, "0")}`,
8
+ gb
9
+ }));
10
+ function Storage() {
11
+ return /* @__PURE__ */ jsx(
12
+ AreaChart,
13
+ {
14
+ title: "Storage used",
15
+ data: days,
16
+ x: "day",
17
+ xFormat: "day",
18
+ y: "gb",
19
+ yLabel: "Storage",
20
+ format: { style: "unit", unit: "gigabyte" },
21
+ height: 220
22
+ }
23
+ );
24
+ }
25
+ export {
26
+ Storage as default
27
+ };
@@ -0,0 +1,21 @@
1
+ import { AreaChart } from "@krizaka/charts/line";
2
+
3
+ const days = [12.4, 12.9, 13.1, 13.8, 14.6, 14.9, 15.7, 16.2, 16.4, 17.3, 18.1, 18.6, 19.4, 20.2].map((gb, i) => ({
4
+ day: `2026-09-${String(i + 1).padStart(2, "0")}`,
5
+ gb,
6
+ }));
7
+
8
+ export default function Storage() {
9
+ return (
10
+ <AreaChart
11
+ title="Storage used"
12
+ data={days}
13
+ x="day"
14
+ xFormat="day"
15
+ y="gb"
16
+ yLabel="Storage"
17
+ format={{ style: "unit", unit: "gigabyte" }}
18
+ height={220}
19
+ />
20
+ );
21
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,37 @@
1
+ "use client";
2
+
3
+ // registry/examples/bar-chart/jobs-by-status.tsx
4
+ import { BarChart } from "@krizaka/charts/bar";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var days = [
7
+ { day: "2026-10-05", completed: 1240, failed: 38, queued: 12 },
8
+ { day: "2026-10-06", completed: 1612, failed: 41, queued: 20 },
9
+ { day: "2026-10-07", completed: 1505, failed: 95, queued: 31 },
10
+ { day: "2026-10-08", completed: 1788, failed: 27, queued: 18 },
11
+ { day: "2026-10-09", completed: 1934, failed: 33, queued: 44 },
12
+ { day: "2026-10-10", completed: 1102, failed: 19, queued: 9 },
13
+ { day: "2026-10-11", completed: 986, failed: 12, queued: 63 }
14
+ ];
15
+ function JobsByStatus() {
16
+ return /* @__PURE__ */ jsx(
17
+ BarChart,
18
+ {
19
+ title: "Jobs per day, by status",
20
+ description: "Orazaka \xB7 all workspaces",
21
+ data: days,
22
+ x: "day",
23
+ xFormat: "day",
24
+ series: [
25
+ { key: "completed", label: "Completed", color: "success" },
26
+ { key: "failed", label: "Failed", color: "danger" },
27
+ { key: "queued", label: "Queued", color: "neutral" }
28
+ ],
29
+ format: "integer",
30
+ stacked: true,
31
+ exportable: ["csv", "png"]
32
+ }
33
+ );
34
+ }
35
+ export {
36
+ JobsByStatus as default
37
+ };
@@ -0,0 +1,31 @@
1
+ import { BarChart } from "@krizaka/charts/bar";
2
+
3
+ const days = [
4
+ { day: "2026-10-05", completed: 1_240, failed: 38, queued: 12 },
5
+ { day: "2026-10-06", completed: 1_612, failed: 41, queued: 20 },
6
+ { day: "2026-10-07", completed: 1_505, failed: 95, queued: 31 },
7
+ { day: "2026-10-08", completed: 1_788, failed: 27, queued: 18 },
8
+ { day: "2026-10-09", completed: 1_934, failed: 33, queued: 44 },
9
+ { day: "2026-10-10", completed: 1_102, failed: 19, queued: 9 },
10
+ { day: "2026-10-11", completed: 986, failed: 12, queued: 63 },
11
+ ];
12
+
13
+ export default function JobsByStatus() {
14
+ return (
15
+ <BarChart
16
+ title="Jobs per day, by status"
17
+ description="Orazaka · all workspaces"
18
+ data={days}
19
+ x="day"
20
+ xFormat="day"
21
+ series={[
22
+ { key: "completed", label: "Completed", color: "success" },
23
+ { key: "failed", label: "Failed", color: "danger" },
24
+ { key: "queued", label: "Queued", color: "neutral" },
25
+ ]}
26
+ format="integer"
27
+ stacked
28
+ exportable={["csv", "png"]}
29
+ />
30
+ );
31
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,32 @@
1
+ "use client";
2
+
3
+ // registry/examples/bar-chart/native/jobs-by-status.tsx
4
+ import { BarChart } from "@krizaka/charts/native";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var days = [
7
+ { day: "2026-10-07", completed: 1505, failed: 95 },
8
+ { day: "2026-10-08", completed: 1788, failed: 27 },
9
+ { day: "2026-10-09", completed: 1934, failed: 33 },
10
+ { day: "2026-10-10", completed: 1102, failed: 19 },
11
+ { day: "2026-10-11", completed: 986, failed: 12 }
12
+ ];
13
+ function JobsByStatus() {
14
+ return /* @__PURE__ */ jsx(
15
+ BarChart,
16
+ {
17
+ title: "Jobs per day",
18
+ data: days,
19
+ x: "day",
20
+ xFormat: "day",
21
+ series: [
22
+ { key: "completed", label: "Completed", color: "success" },
23
+ { key: "failed", label: "Failed", color: "danger" }
24
+ ],
25
+ format: "compact",
26
+ stacked: true
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ JobsByStatus as default
32
+ };
@@ -0,0 +1,26 @@
1
+ import { BarChart } from "@krizaka/charts/native";
2
+
3
+ const days = [
4
+ { day: "2026-10-07", completed: 1_505, failed: 95 },
5
+ { day: "2026-10-08", completed: 1_788, failed: 27 },
6
+ { day: "2026-10-09", completed: 1_934, failed: 33 },
7
+ { day: "2026-10-10", completed: 1_102, failed: 19 },
8
+ { day: "2026-10-11", completed: 986, failed: 12 },
9
+ ];
10
+
11
+ export default function JobsByStatus() {
12
+ return (
13
+ <BarChart
14
+ title="Jobs per day"
15
+ data={days}
16
+ x="day"
17
+ xFormat="day"
18
+ series={[
19
+ { key: "completed", label: "Completed", color: "success" },
20
+ { key: "failed", label: "Failed", color: "danger" },
21
+ ]}
22
+ format="compact"
23
+ stacked
24
+ />
25
+ );
26
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,31 @@
1
+ "use client";
2
+
3
+ // registry/examples/bar-chart/plans-by-quarter.tsx
4
+ import { BarChart } from "@krizaka/charts/bar";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var quarters = [
7
+ { quarter: "Q4 2025", starter: 18, pro: 42, studio: 26 },
8
+ { quarter: "Q1 2026", starter: 21, pro: 51, studio: 34 },
9
+ { quarter: "Q2 2026", starter: 24, pro: 58, studio: 47 },
10
+ { quarter: "Q3 2026", starter: 22, pro: 66, studio: 61 }
11
+ ];
12
+ function PlansByQuarter() {
13
+ return /* @__PURE__ */ jsx(
14
+ BarChart,
15
+ {
16
+ title: "Revenue per plan (k\u20AC)",
17
+ data: quarters,
18
+ x: "quarter",
19
+ xLabel: "Quarter",
20
+ series: [
21
+ { key: "starter", label: "Starter" },
22
+ { key: "pro", label: "Pro" },
23
+ { key: "studio", label: "Studio" }
24
+ ],
25
+ format: "integer"
26
+ }
27
+ );
28
+ }
29
+ export {
30
+ PlansByQuarter as default
31
+ };
@@ -0,0 +1,26 @@
1
+ import { BarChart } from "@krizaka/charts/bar";
2
+
3
+ // Thousands of euros per quarter.
4
+ const quarters = [
5
+ { quarter: "Q4 2025", starter: 18, pro: 42, studio: 26 },
6
+ { quarter: "Q1 2026", starter: 21, pro: 51, studio: 34 },
7
+ { quarter: "Q2 2026", starter: 24, pro: 58, studio: 47 },
8
+ { quarter: "Q3 2026", starter: 22, pro: 66, studio: 61 },
9
+ ];
10
+
11
+ export default function PlansByQuarter() {
12
+ return (
13
+ <BarChart
14
+ title="Revenue per plan (k€)"
15
+ data={quarters}
16
+ x="quarter"
17
+ xLabel="Quarter"
18
+ series={[
19
+ { key: "starter", label: "Starter" },
20
+ { key: "pro", label: "Pro" },
21
+ { key: "studio", label: "Studio" },
22
+ ]}
23
+ format="integer"
24
+ />
25
+ );
26
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,32 @@
1
+ "use client";
2
+
3
+ // registry/examples/bar-chart/top-supporters.tsx
4
+ import { BarChart } from "@krizaka/charts/bar";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var supporters = [
7
+ { name: "L\xE9a Fontaine", total: 48500 },
8
+ { name: "Marcus Oyelaran", total: 36200 },
9
+ { name: "Hana Watanabe", total: 29900 },
10
+ { name: "Tom\xE1s Ferreira-Lindqvist", total: 21400 },
11
+ { name: "Eric Dubois", total: 17800 },
12
+ { name: "Amira Haddad", total: 12050 }
13
+ ];
14
+ function TopSupporters() {
15
+ return /* @__PURE__ */ jsx(
16
+ BarChart,
17
+ {
18
+ title: "Top supporters this quarter",
19
+ data: supporters,
20
+ x: "name",
21
+ xLabel: "Supporter",
22
+ y: "total",
23
+ yLabel: "Total",
24
+ format: { style: "money", currency: "EUR" },
25
+ horizontal: true,
26
+ height: 260
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ TopSupporters as default
32
+ };
@@ -0,0 +1,27 @@
1
+ import { BarChart } from "@krizaka/charts/bar";
2
+
3
+ // Cents, sorted by amount: a ranking reads top to bottom.
4
+ const supporters = [
5
+ { name: "Léa Fontaine", total: 48_500 },
6
+ { name: "Marcus Oyelaran", total: 36_200 },
7
+ { name: "Hana Watanabe", total: 29_900 },
8
+ { name: "Tomás Ferreira-Lindqvist", total: 21_400 },
9
+ { name: "Eric Dubois", total: 17_800 },
10
+ { name: "Amira Haddad", total: 12_050 },
11
+ ];
12
+
13
+ export default function TopSupporters() {
14
+ return (
15
+ <BarChart
16
+ title="Top supporters this quarter"
17
+ data={supporters}
18
+ x="name"
19
+ xLabel="Supporter"
20
+ y="total"
21
+ yLabel="Total"
22
+ format={{ style: "money", currency: "EUR" }}
23
+ horizontal
24
+ height={260}
25
+ />
26
+ );
27
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,28 @@
1
+ "use client";
2
+
3
+ // registry/examples/calendar-heatmap/publishing.tsx
4
+ import { CalendarHeatmap } from "@krizaka/charts/heatmap";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var days = Array.from({ length: 365 }, (_, i) => {
7
+ const date = new Date(Date.UTC(2025, 9, 12 + i));
8
+ const weekday = date.getUTCDay();
9
+ const summer = date.getUTCMonth() === 6;
10
+ const videos = summer ? 0 : [1, 3, 5].includes(weekday) ? 1 + i * 7 % 3 : i * 13 % 9 === 0 ? 1 : 0;
11
+ return { date: date.toISOString().slice(0, 10), videos };
12
+ }).filter((d) => d.videos > 0);
13
+ function Publishing() {
14
+ return /* @__PURE__ */ jsx(
15
+ CalendarHeatmap,
16
+ {
17
+ title: "Videos published, last 12 months",
18
+ data: days,
19
+ date: "date",
20
+ value: "videos",
21
+ format: "integer",
22
+ valueLabel: "Videos"
23
+ }
24
+ );
25
+ }
26
+ export {
27
+ Publishing as default
28
+ };
@@ -0,0 +1,23 @@
1
+ import { CalendarHeatmap } from "@krizaka/charts/heatmap";
2
+
3
+ // A deterministic year: a rhythm of three videos a week, a summer break, a busy autumn.
4
+ const days = Array.from({ length: 365 }, (_, i) => {
5
+ const date = new Date(Date.UTC(2025, 9, 12 + i));
6
+ const weekday = date.getUTCDay();
7
+ const summer = date.getUTCMonth() === 6;
8
+ const videos = summer ? 0 : [1, 3, 5].includes(weekday) ? 1 + ((i * 7) % 3) : (i * 13) % 9 === 0 ? 1 : 0;
9
+ return { date: date.toISOString().slice(0, 10), videos };
10
+ }).filter((d) => d.videos > 0);
11
+
12
+ export default function Publishing() {
13
+ return (
14
+ <CalendarHeatmap
15
+ title="Videos published, last 12 months"
16
+ data={days}
17
+ date="date"
18
+ value="videos"
19
+ format="integer"
20
+ valueLabel="Videos"
21
+ />
22
+ );
23
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,37 @@
1
+ "use client";
2
+
3
+ // registry/examples/candlestick/auction-bids.tsx
4
+ import { Candlestick } from "@krizaka/charts/candlestick";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var price = 12e3;
7
+ var hours = Array.from({ length: 24 }, (_, i) => {
8
+ const open = price;
9
+ const close = open + i * 37 % 23 * 60 - 480 + (i > 15 ? 900 : 0);
10
+ const high = Math.max(open, close) + i * 11 % 7 * 90;
11
+ const low = Math.min(open, close) - i * 5 % 6 * 70;
12
+ price = close;
13
+ return { at: `2026-10-11T${String(i).padStart(2, "0")}:00Z`, open, high, low, close, bids: 4 + i * 17 % 13 };
14
+ });
15
+ function AuctionBids() {
16
+ return /* @__PURE__ */ jsx(
17
+ Candlestick,
18
+ {
19
+ title: "\u201CNorthern lights over Tadoussac\u201D \u2014 bids per hour",
20
+ data: hours,
21
+ x: "at",
22
+ xFormat: "time",
23
+ open: "open",
24
+ high: "high",
25
+ low: "low",
26
+ close: "close",
27
+ volume: "bids",
28
+ volumeFormat: "integer",
29
+ format: { style: "money", currency: "CAD" },
30
+ thresholds: [{ value: 15e3, label: "Reserve price", tone: "warning" }],
31
+ columnLabels: { open: "Open", high: "High", low: "Low", close: "Close", volume: "Bids" }
32
+ }
33
+ );
34
+ }
35
+ export {
36
+ AuctionBids as default
37
+ };
@@ -0,0 +1,32 @@
1
+ import { Candlestick } from "@krizaka/charts/candlestick";
2
+
3
+ // Bids in cents per hour on an auctioned video; a deterministic walk.
4
+ let price = 12_000;
5
+ const hours = Array.from({ length: 24 }, (_, i) => {
6
+ const open = price;
7
+ const close = open + ((i * 37) % 23) * 60 - 480 + (i > 15 ? 900 : 0);
8
+ const high = Math.max(open, close) + ((i * 11) % 7) * 90;
9
+ const low = Math.min(open, close) - ((i * 5) % 6) * 70;
10
+ price = close;
11
+ return { at: `2026-10-11T${String(i).padStart(2, "0")}:00Z`, open, high, low, close, bids: 4 + ((i * 17) % 13) };
12
+ });
13
+
14
+ export default function AuctionBids() {
15
+ return (
16
+ <Candlestick
17
+ title="“Northern lights over Tadoussac” — bids per hour"
18
+ data={hours}
19
+ x="at"
20
+ xFormat="time"
21
+ open="open"
22
+ high="high"
23
+ low="low"
24
+ close="close"
25
+ volume="bids"
26
+ volumeFormat="integer"
27
+ format={{ style: "money", currency: "CAD" }}
28
+ thresholds={[{ value: 15_000, label: "Reserve price", tone: "warning" }]}
29
+ columnLabels={{ open: "Open", high: "High", low: "Low", close: "Close", volume: "Bids" }}
30
+ />
31
+ );
32
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/charts registry. */
3
+ declare const Example: ComponentType;
4
+ export default Example;
@@ -0,0 +1,34 @@
1
+ "use client";
2
+
3
+ // registry/examples/chart/polar-uploads.tsx
4
+ import { Chart } from "@krizaka/charts/chart";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var uploads = [3, 2, 1, 1, 2, 4, 9, 18, 26, 31, 34, 37, 41, 39, 36, 38, 44, 52, 58, 61, 49, 33, 17, 8];
7
+ var hours = uploads.map((_, h) => `${String(h).padStart(2, "0")}:00`);
8
+ var modules = async () => {
9
+ const [{ use: register }, { BarChart }, { PolarComponent, TooltipComponent }] = await Promise.all([import("echarts/core"), import("echarts/charts"), import("echarts/components")]);
10
+ register([BarChart, PolarComponent, TooltipComponent]);
11
+ };
12
+ function PolarUploads() {
13
+ return /* @__PURE__ */ jsx(
14
+ Chart,
15
+ {
16
+ title: "Uploads by hour of the day",
17
+ modules,
18
+ option: (theme) => ({
19
+ polar: { radius: ["18%", "80%"] },
20
+ angleAxis: { type: "category", data: hours, axisLabel: { color: theme.text2, interval: 2 }, axisLine: { lineStyle: { color: theme.axis } } },
21
+ radiusAxis: { axisLabel: { show: false }, splitLine: { lineStyle: { color: theme.grid } }, axisLine: { show: false } },
22
+ tooltip: { trigger: "item" },
23
+ series: [{ type: "bar", coordinateSystem: "polar", data: uploads, itemStyle: { color: theme.palette[0], borderRadius: 3 } }]
24
+ }),
25
+ summaryText: `Uploads by hour: quietest at 02:00 (1), busiest at 19:00 (61).`,
26
+ table: { columns: ["Hour", "Uploads"], rows: hours.map((h, i) => [h, String(uploads[i])]) },
27
+ items: uploads.map((u, i) => ({ seriesIndex: 0, dataIndex: i, text: `${hours[i]}: ${u}` })),
28
+ height: 340
29
+ }
30
+ );
31
+ }
32
+ export {
33
+ PolarUploads as default
34
+ };