@krizaka/charts 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +59 -2
- package/dist/bar.d.ts +17 -0
- package/dist/bar.js +17 -0
- package/dist/bar.js.map +1 -0
- package/dist/candlestick-IG626XL4.js +13 -0
- package/dist/candlestick-IG626XL4.js.map +1 -0
- package/dist/candlestick.d.ts +42 -0
- package/dist/candlestick.js +13 -0
- package/dist/candlestick.js.map +1 -0
- package/dist/canvas-4MSYDVFO.js +14 -0
- package/dist/canvas-4MSYDVFO.js.map +1 -0
- package/dist/cartesian-BRhNQ3ib.d.ts +34 -0
- package/dist/chart.d.ts +58 -0
- package/dist/chart.js +11 -0
- package/dist/chart.js.map +1 -0
- package/dist/chunk-3CJHBJXA.js +186 -0
- package/dist/chunk-3CJHBJXA.js.map +1 -0
- package/dist/chunk-4LBXEAGC.js +133 -0
- package/dist/chunk-4LBXEAGC.js.map +1 -0
- package/dist/chunk-6FINSUOS.js +49 -0
- package/dist/chunk-6FINSUOS.js.map +1 -0
- package/dist/chunk-AA5EWWYV.js +38 -0
- package/dist/chunk-AA5EWWYV.js.map +1 -0
- package/dist/chunk-ANUCSRUN.js +43 -0
- package/dist/chunk-ANUCSRUN.js.map +1 -0
- package/dist/chunk-ARARFMNE.js +88 -0
- package/dist/chunk-ARARFMNE.js.map +1 -0
- package/dist/chunk-BISL7DYW.js +66 -0
- package/dist/chunk-BISL7DYW.js.map +1 -0
- package/dist/chunk-BV4DBGN7.js +178 -0
- package/dist/chunk-BV4DBGN7.js.map +1 -0
- package/dist/chunk-C4MFZLJM.js +19 -0
- package/dist/chunk-C4MFZLJM.js.map +1 -0
- package/dist/chunk-CSSZLFLO.js +116 -0
- package/dist/chunk-CSSZLFLO.js.map +1 -0
- package/dist/chunk-CVWSMUUB.js +378 -0
- package/dist/chunk-CVWSMUUB.js.map +1 -0
- package/dist/chunk-E5DKBSWX.js +2 -0
- package/dist/chunk-E5DKBSWX.js.map +1 -0
- package/dist/chunk-EEP7PS2L.js +54 -0
- package/dist/chunk-EEP7PS2L.js.map +1 -0
- package/dist/chunk-EQLC2QVN.js +73 -0
- package/dist/chunk-EQLC2QVN.js.map +1 -0
- package/dist/chunk-FINOPIDN.js +2 -0
- package/dist/chunk-FINOPIDN.js.map +1 -0
- package/dist/chunk-G2KF2WL4.js +2 -0
- package/dist/chunk-G2KF2WL4.js.map +1 -0
- package/dist/chunk-I3D7KUGN.js +205 -0
- package/dist/chunk-I3D7KUGN.js.map +1 -0
- package/dist/chunk-IKQV3NSL.js +76 -0
- package/dist/chunk-IKQV3NSL.js.map +1 -0
- package/dist/chunk-JTKR7ZWP.js +468 -0
- package/dist/chunk-JTKR7ZWP.js.map +1 -0
- package/dist/chunk-KNDHO67X.js +78 -0
- package/dist/chunk-KNDHO67X.js.map +1 -0
- package/dist/chunk-L2EKYWVI.js +94 -0
- package/dist/chunk-L2EKYWVI.js.map +1 -0
- package/dist/chunk-MXLITIGU.js +92 -0
- package/dist/chunk-MXLITIGU.js.map +1 -0
- package/dist/chunk-NCIQMRV3.js +155 -0
- package/dist/chunk-NCIQMRV3.js.map +1 -0
- package/dist/chunk-OB5EFDDH.js +118 -0
- package/dist/chunk-OB5EFDDH.js.map +1 -0
- package/dist/chunk-OIRHLJBC.js +83 -0
- package/dist/chunk-OIRHLJBC.js.map +1 -0
- package/dist/chunk-PBQV3B6O.js +145 -0
- package/dist/chunk-PBQV3B6O.js.map +1 -0
- package/dist/chunk-POQIHFAZ.js +2 -0
- package/dist/chunk-POQIHFAZ.js.map +1 -0
- package/dist/chunk-PWMMXRMC.js +234 -0
- package/dist/chunk-PWMMXRMC.js.map +1 -0
- package/dist/chunk-SLEJDQ3A.js +81 -0
- package/dist/chunk-SLEJDQ3A.js.map +1 -0
- package/dist/chunk-TPJDOB7R.js +15 -0
- package/dist/chunk-TPJDOB7R.js.map +1 -0
- package/dist/chunk-VKZZY2QD.js +103 -0
- package/dist/chunk-VKZZY2QD.js.map +1 -0
- package/dist/chunk-W5FX4TU3.js +102 -0
- package/dist/chunk-W5FX4TU3.js.map +1 -0
- package/dist/chunk-W5ILLSPK.js +107 -0
- package/dist/chunk-W5ILLSPK.js.map +1 -0
- package/dist/chunk-WBHFVBSK.js +25 -0
- package/dist/chunk-WBHFVBSK.js.map +1 -0
- package/dist/chunk-WNUFGMS7.js +113 -0
- package/dist/chunk-WNUFGMS7.js.map +1 -0
- package/dist/chunk-WVTIKOII.js +15 -0
- package/dist/chunk-WVTIKOII.js.map +1 -0
- package/dist/chunk-XDDALY4C.js +166 -0
- package/dist/chunk-XDDALY4C.js.map +1 -0
- package/dist/chunk-XLLYNNC6.js +89 -0
- package/dist/chunk-XLLYNNC6.js.map +1 -0
- package/dist/context-BgYUymEO.d.ts +163 -0
- package/dist/credits.d.ts +42 -0
- package/dist/credits.js +21 -0
- package/dist/credits.js.map +1 -0
- package/dist/earnings.d.ts +29 -0
- package/dist/earnings.js +22 -0
- package/dist/earnings.js.map +1 -0
- package/dist/frame-I7_xYGy5.d.ts +45 -0
- package/dist/full-S2MBPEEP.js +11 -0
- package/dist/full-S2MBPEEP.js.map +1 -0
- package/dist/funnel-QU5ZPC52.js +13 -0
- package/dist/funnel-QU5ZPC52.js.map +1 -0
- package/dist/funnel.d.ts +26 -0
- package/dist/funnel.js +13 -0
- package/dist/funnel.js.map +1 -0
- package/dist/gauge.d.ts +38 -0
- package/dist/gauge.js +13 -0
- package/dist/gauge.js.map +1 -0
- package/dist/geo.d.ts +37 -0
- package/dist/geo.js +13 -0
- package/dist/geo.js.map +1 -0
- package/dist/globe.d.ts +36 -0
- package/dist/globe.js +12 -0
- package/dist/globe.js.map +1 -0
- package/dist/goal.d.ts +26 -0
- package/dist/goal.js +17 -0
- package/dist/goal.js.map +1 -0
- package/dist/heatmap-JWQOKUGM.js +13 -0
- package/dist/heatmap-JWQOKUGM.js.map +1 -0
- package/dist/heatmap.d.ts +47 -0
- package/dist/heatmap.js +15 -0
- package/dist/heatmap.js.map +1 -0
- package/dist/host-_F8RgiIz.d.ts +15 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +148 -0
- package/dist/index.js.map +1 -0
- package/dist/labels-DE_743fQ.d.ts +72 -0
- package/dist/latency.d.ts +33 -0
- package/dist/latency.js +24 -0
- package/dist/latency.js.map +1 -0
- package/dist/line.d.ts +25 -0
- package/dist/line.js +19 -0
- package/dist/line.js.map +1 -0
- package/dist/native.d.ts +494 -0
- package/dist/native.js +1244 -0
- package/dist/native.js.map +1 -0
- package/dist/pie.d.ts +37 -0
- package/dist/pie.js +16 -0
- package/dist/pie.js.map +1 -0
- package/dist/provider.d.ts +73 -0
- package/dist/provider.js +24 -0
- package/dist/provider.js.map +1 -0
- package/dist/radar-75GRJ2IK.js +13 -0
- package/dist/radar-75GRJ2IK.js.map +1 -0
- package/dist/radar.d.ts +22 -0
- package/dist/radar.js +13 -0
- package/dist/radar.js.map +1 -0
- package/dist/sankey-XQTX2EG6.js +13 -0
- package/dist/sankey-XQTX2EG6.js.map +1 -0
- package/dist/sankey.d.ts +28 -0
- package/dist/sankey.js +13 -0
- package/dist/sankey.js.map +1 -0
- package/dist/scatter-XSNG4OKD.js +13 -0
- package/dist/scatter-XSNG4OKD.js.map +1 -0
- package/dist/scatter.d.ts +41 -0
- package/dist/scatter.js +15 -0
- package/dist/scatter.js.map +1 -0
- package/dist/sparkline.d.ts +26 -0
- package/dist/sparkline.js +16 -0
- package/dist/sparkline.js.map +1 -0
- package/dist/svg-BJUHYX3B.js +14 -0
- package/dist/svg-BJUHYX3B.js.map +1 -0
- package/dist/throughput.d.ts +37 -0
- package/dist/throughput.js +24 -0
- package/dist/throughput.js.map +1 -0
- package/dist/ticker.d.ts +38 -0
- package/dist/ticker.js +22 -0
- package/dist/ticker.js.map +1 -0
- package/dist/treemap-OMGGGB5U.js +13 -0
- package/dist/treemap-OMGGGB5U.js.map +1 -0
- package/dist/treemap.d.ts +24 -0
- package/dist/treemap.js +14 -0
- package/dist/treemap.js.map +1 -0
- package/dist/world-110m-DVFWXS42.js +18 -0
- package/dist/world-110m-DVFWXS42.js.map +1 -0
- package/package.json +614 -3
- package/registry/area-chart.json +785 -0
- package/registry/bar-chart.json +784 -0
- package/registry/calendar-heatmap.json +460 -0
- package/registry/candlestick.json +553 -0
- package/registry/chart.json +441 -0
- package/registry/charts-provider.json +191 -0
- package/registry/credit-usage.json +473 -0
- package/registry/earnings-chart.json +703 -0
- package/registry/examples/area-chart/credits-usage.d.ts +4 -0
- package/registry/examples/area-chart/credits-usage.js +38 -0
- package/registry/examples/area-chart/credits-usage.tsx +32 -0
- package/registry/examples/area-chart/native/credits-usage.d.ts +4 -0
- package/registry/examples/area-chart/native/credits-usage.dark.png +0 -0
- package/registry/examples/area-chart/native/credits-usage.js +33 -0
- package/registry/examples/area-chart/native/credits-usage.light.png +0 -0
- package/registry/examples/area-chart/native/credits-usage.tsx +27 -0
- package/registry/examples/area-chart/storage.d.ts +4 -0
- package/registry/examples/area-chart/storage.js +27 -0
- package/registry/examples/area-chart/storage.tsx +21 -0
- package/registry/examples/bar-chart/jobs-by-status.d.ts +4 -0
- package/registry/examples/bar-chart/jobs-by-status.js +37 -0
- package/registry/examples/bar-chart/jobs-by-status.tsx +31 -0
- package/registry/examples/bar-chart/native/jobs-by-status.d.ts +4 -0
- package/registry/examples/bar-chart/native/jobs-by-status.dark.png +0 -0
- package/registry/examples/bar-chart/native/jobs-by-status.js +32 -0
- package/registry/examples/bar-chart/native/jobs-by-status.light.png +0 -0
- package/registry/examples/bar-chart/native/jobs-by-status.tsx +26 -0
- package/registry/examples/bar-chart/plans-by-quarter.d.ts +4 -0
- package/registry/examples/bar-chart/plans-by-quarter.js +31 -0
- package/registry/examples/bar-chart/plans-by-quarter.tsx +26 -0
- package/registry/examples/bar-chart/top-supporters.d.ts +4 -0
- package/registry/examples/bar-chart/top-supporters.js +32 -0
- package/registry/examples/bar-chart/top-supporters.tsx +27 -0
- package/registry/examples/calendar-heatmap/publishing.d.ts +4 -0
- package/registry/examples/calendar-heatmap/publishing.js +28 -0
- package/registry/examples/calendar-heatmap/publishing.tsx +23 -0
- package/registry/examples/candlestick/auction-bids.d.ts +4 -0
- package/registry/examples/candlestick/auction-bids.js +37 -0
- package/registry/examples/candlestick/auction-bids.tsx +32 -0
- package/registry/examples/chart/polar-uploads.d.ts +4 -0
- package/registry/examples/chart/polar-uploads.js +34 -0
- package/registry/examples/chart/polar-uploads.tsx +30 -0
- package/registry/examples/charts-provider/french-orazaka.d.ts +4 -0
- package/registry/examples/charts-provider/french-orazaka.js +26 -0
- package/registry/examples/charts-provider/french-orazaka.tsx +22 -0
- package/registry/examples/charts-provider/native/french-orazaka.d.ts +4 -0
- package/registry/examples/charts-provider/native/french-orazaka.dark.png +0 -0
- package/registry/examples/charts-provider/native/french-orazaka.js +17 -0
- package/registry/examples/charts-provider/native/french-orazaka.light.png +0 -0
- package/registry/examples/charts-provider/native/french-orazaka.tsx +17 -0
- package/registry/examples/credit-usage/monthly-credits.d.ts +4 -0
- package/registry/examples/credit-usage/monthly-credits.js +24 -0
- package/registry/examples/credit-usage/monthly-credits.tsx +19 -0
- package/registry/examples/credit-usage/native/monthly-credits.d.ts +4 -0
- package/registry/examples/credit-usage/native/monthly-credits.dark.png +0 -0
- package/registry/examples/credit-usage/native/monthly-credits.js +23 -0
- package/registry/examples/credit-usage/native/monthly-credits.light.png +0 -0
- package/registry/examples/credit-usage/native/monthly-credits.tsx +18 -0
- package/registry/examples/credit-usage/storage-plan.d.ts +4 -0
- package/registry/examples/credit-usage/storage-plan.js +21 -0
- package/registry/examples/credit-usage/storage-plan.tsx +15 -0
- package/registry/examples/earnings-chart/creator-month.d.ts +4 -0
- package/registry/examples/earnings-chart/creator-month.js +29 -0
- package/registry/examples/earnings-chart/creator-month.tsx +24 -0
- package/registry/examples/earnings-chart/gross-and-net.d.ts +4 -0
- package/registry/examples/earnings-chart/gross-and-net.js +29 -0
- package/registry/examples/earnings-chart/gross-and-net.tsx +24 -0
- package/registry/examples/earnings-chart/native/creator-month.d.ts +4 -0
- package/registry/examples/earnings-chart/native/creator-month.dark.png +0 -0
- package/registry/examples/earnings-chart/native/creator-month.js +29 -0
- package/registry/examples/earnings-chart/native/creator-month.light.png +0 -0
- package/registry/examples/earnings-chart/native/creator-month.tsx +24 -0
- package/registry/examples/funnel/signup.d.ts +4 -0
- package/registry/examples/funnel/signup.js +30 -0
- package/registry/examples/funnel/signup.tsx +24 -0
- package/registry/examples/gauge/challenge-goal.d.ts +4 -0
- package/registry/examples/gauge/challenge-goal.js +24 -0
- package/registry/examples/gauge/challenge-goal.tsx +18 -0
- package/registry/examples/gauge/credits-quota.d.ts +4 -0
- package/registry/examples/gauge/credits-quota.js +26 -0
- package/registry/examples/gauge/credits-quota.tsx +19 -0
- package/registry/examples/gauge/native/credits-quota.d.ts +4 -0
- package/registry/examples/gauge/native/credits-quota.dark.png +0 -0
- package/registry/examples/gauge/native/credits-quota.js +25 -0
- package/registry/examples/gauge/native/credits-quota.light.png +0 -0
- package/registry/examples/gauge/native/credits-quota.tsx +18 -0
- package/registry/examples/geo-map/viewers.d.ts +4 -0
- package/registry/examples/geo-map/viewers.js +43 -0
- package/registry/examples/geo-map/viewers.tsx +29 -0
- package/registry/examples/globe/deployment-regions.d.ts +4 -0
- package/registry/examples/globe/deployment-regions.js +36 -0
- package/registry/examples/globe/deployment-regions.tsx +30 -0
- package/registry/examples/goal-progress/challenge-pot.d.ts +4 -0
- package/registry/examples/goal-progress/challenge-pot.js +22 -0
- package/registry/examples/goal-progress/challenge-pot.tsx +16 -0
- package/registry/examples/goal-progress/goal-reached.d.ts +4 -0
- package/registry/examples/goal-progress/goal-reached.js +11 -0
- package/registry/examples/goal-progress/goal-reached.tsx +6 -0
- package/registry/examples/goal-progress/native/challenge-pot.d.ts +4 -0
- package/registry/examples/goal-progress/native/challenge-pot.dark.png +0 -0
- package/registry/examples/goal-progress/native/challenge-pot.js +11 -0
- package/registry/examples/goal-progress/native/challenge-pot.light.png +0 -0
- package/registry/examples/goal-progress/native/challenge-pot.tsx +6 -0
- package/registry/examples/heatmap/upload-activity.d.ts +4 -0
- package/registry/examples/heatmap/upload-activity.js +30 -0
- package/registry/examples/heatmap/upload-activity.tsx +25 -0
- package/registry/examples/job-throughput/live-hours.d.ts +4 -0
- package/registry/examples/job-throughput/live-hours.js +33 -0
- package/registry/examples/job-throughput/live-hours.tsx +28 -0
- package/registry/examples/job-throughput/native/week-of-jobs.d.ts +4 -0
- package/registry/examples/job-throughput/native/week-of-jobs.dark.png +0 -0
- package/registry/examples/job-throughput/native/week-of-jobs.js +20 -0
- package/registry/examples/job-throughput/native/week-of-jobs.light.png +0 -0
- package/registry/examples/job-throughput/native/week-of-jobs.tsx +16 -0
- package/registry/examples/job-throughput/week-of-jobs.d.ts +4 -0
- package/registry/examples/job-throughput/week-of-jobs.js +20 -0
- package/registry/examples/job-throughput/week-of-jobs.tsx +16 -0
- package/registry/examples/latency-chart/by-capability.d.ts +4 -0
- package/registry/examples/latency-chart/by-capability.js +26 -0
- package/registry/examples/latency-chart/by-capability.tsx +21 -0
- package/registry/examples/latency-chart/native/by-capability.d.ts +4 -0
- package/registry/examples/latency-chart/native/by-capability.dark.png +0 -0
- package/registry/examples/latency-chart/native/by-capability.js +17 -0
- package/registry/examples/latency-chart/native/by-capability.light.png +0 -0
- package/registry/examples/latency-chart/native/by-capability.tsx +13 -0
- package/registry/examples/latency-chart/time-to-result.d.ts +4 -0
- package/registry/examples/latency-chart/time-to-result.js +27 -0
- package/registry/examples/latency-chart/time-to-result.tsx +22 -0
- package/registry/examples/line-chart/creator-earnings.d.ts +4 -0
- package/registry/examples/line-chart/creator-earnings.js +35 -0
- package/registry/examples/line-chart/creator-earnings.tsx +30 -0
- package/registry/examples/line-chart/forecast.d.ts +4 -0
- package/registry/examples/line-chart/forecast.js +36 -0
- package/registry/examples/line-chart/forecast.tsx +30 -0
- package/registry/examples/line-chart/live-jobs.d.ts +4 -0
- package/registry/examples/line-chart/live-jobs.js +21 -0
- package/registry/examples/line-chart/live-jobs.tsx +23 -0
- package/registry/examples/line-chart/native/creator-earnings.d.ts +4 -0
- package/registry/examples/line-chart/native/creator-earnings.dark.png +0 -0
- package/registry/examples/line-chart/native/creator-earnings.js +32 -0
- package/registry/examples/line-chart/native/creator-earnings.light.png +0 -0
- package/registry/examples/line-chart/native/creator-earnings.tsx +26 -0
- package/registry/examples/line-chart/states.d.ts +4 -0
- package/registry/examples/line-chart/states.js +16 -0
- package/registry/examples/line-chart/states.tsx +13 -0
- package/registry/examples/pie-chart/credit-spend.d.ts +4 -0
- package/registry/examples/pie-chart/credit-spend.js +30 -0
- package/registry/examples/pie-chart/credit-spend.tsx +24 -0
- package/registry/examples/pie-chart/native/credit-spend.d.ts +4 -0
- package/registry/examples/pie-chart/native/credit-spend.dark.png +0 -0
- package/registry/examples/pie-chart/native/credit-spend.js +17 -0
- package/registry/examples/pie-chart/native/credit-spend.light.png +0 -0
- package/registry/examples/pie-chart/native/credit-spend.tsx +12 -0
- package/registry/examples/pie-chart/storage-by-kind.d.ts +4 -0
- package/registry/examples/pie-chart/storage-by-kind.js +31 -0
- package/registry/examples/pie-chart/storage-by-kind.tsx +26 -0
- package/registry/examples/price-ticker/auction-room.d.ts +4 -0
- package/registry/examples/price-ticker/auction-room.js +21 -0
- package/registry/examples/price-ticker/auction-room.tsx +17 -0
- package/registry/examples/price-ticker/native/auction-room.d.ts +4 -0
- package/registry/examples/price-ticker/native/auction-room.dark.png +0 -0
- package/registry/examples/price-ticker/native/auction-room.js +19 -0
- package/registry/examples/price-ticker/native/auction-room.light.png +0 -0
- package/registry/examples/price-ticker/native/auction-room.tsx +15 -0
- package/registry/examples/price-ticker/no-bid-yet.d.ts +4 -0
- package/registry/examples/price-ticker/no-bid-yet.js +11 -0
- package/registry/examples/price-ticker/no-bid-yet.tsx +6 -0
- package/registry/examples/radar-chart/model-comparison.d.ts +4 -0
- package/registry/examples/radar-chart/model-comparison.js +33 -0
- package/registry/examples/radar-chart/model-comparison.tsx +28 -0
- package/registry/examples/sankey/credit-flow.d.ts +4 -0
- package/registry/examples/sankey/credit-flow.js +37 -0
- package/registry/examples/sankey/credit-flow.tsx +32 -0
- package/registry/examples/scatter-chart/watch-time.d.ts +4 -0
- package/registry/examples/scatter-chart/watch-time.js +36 -0
- package/registry/examples/scatter-chart/watch-time.tsx +31 -0
- package/registry/examples/sparkline/bars.d.ts +4 -0
- package/registry/examples/sparkline/bars.js +12 -0
- package/registry/examples/sparkline/bars.tsx +7 -0
- package/registry/examples/sparkline/native/stat-trend.d.ts +4 -0
- package/registry/examples/sparkline/native/stat-trend.dark.png +0 -0
- package/registry/examples/sparkline/native/stat-trend.js +12 -0
- package/registry/examples/sparkline/native/stat-trend.light.png +0 -0
- package/registry/examples/sparkline/native/stat-trend.tsx +7 -0
- package/registry/examples/sparkline/stat-trend.d.ts +4 -0
- package/registry/examples/sparkline/stat-trend.js +18 -0
- package/registry/examples/sparkline/stat-trend.tsx +15 -0
- package/registry/examples/sparkline/table-rows.d.ts +4 -0
- package/registry/examples/sparkline/table-rows.js +23 -0
- package/registry/examples/sparkline/table-rows.tsx +26 -0
- package/registry/examples/treemap/storage.d.ts +4 -0
- package/registry/examples/treemap/storage.js +17 -0
- package/registry/examples/treemap/storage.tsx +13 -0
- package/registry/funnel.json +487 -0
- package/registry/gauge.json +600 -0
- package/registry/geo-map.json +484 -0
- package/registry/globe.json +469 -0
- package/registry/goal-progress.json +520 -0
- package/registry/heatmap.json +531 -0
- package/registry/index.json +582 -0
- package/registry/job-throughput.json +654 -0
- package/registry/latency-chart.json +671 -0
- package/registry/line-chart.json +793 -0
- package/registry/pie-chart.json +1288 -0
- package/registry/price-ticker.json +684 -0
- package/registry/radar-chart.json +459 -0
- package/registry/sankey.json +503 -0
- package/registry/scatter-chart.json +559 -0
- package/registry/sparkline.json +563 -0
- package/registry/treemap.json +432 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/latency-chart/time-to-result.tsx
|
|
4
|
+
import { LatencyChart } from "@krizaka/charts/latency";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var kinds = [
|
|
7
|
+
{ kind: "Summary", median: 8400 },
|
|
8
|
+
{ kind: "Transcript", median: 46e3 },
|
|
9
|
+
{ kind: "Dubbing", median: 312e3 },
|
|
10
|
+
{ kind: "Video clip", median: 54e4 }
|
|
11
|
+
];
|
|
12
|
+
function TimeToResult() {
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
LatencyChart,
|
|
15
|
+
{
|
|
16
|
+
title: "Time to result",
|
|
17
|
+
data: kinds,
|
|
18
|
+
x: "kind",
|
|
19
|
+
p50: "median",
|
|
20
|
+
p95: null,
|
|
21
|
+
labels: { p50: "Median", slowest: "median of {name}, the slowest" }
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
TimeToResult as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LatencyChart } from "@krizaka/charts/latency";
|
|
2
|
+
|
|
3
|
+
// Orazaka: how long a job takes to give its result, per kind — seconds turn into minutes.
|
|
4
|
+
const kinds = [
|
|
5
|
+
{ kind: "Summary", median: 8_400 },
|
|
6
|
+
{ kind: "Transcript", median: 46_000 },
|
|
7
|
+
{ kind: "Dubbing", median: 312_000 },
|
|
8
|
+
{ kind: "Video clip", median: 540_000 },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export default function TimeToResult() {
|
|
12
|
+
return (
|
|
13
|
+
<LatencyChart
|
|
14
|
+
title="Time to result"
|
|
15
|
+
data={kinds}
|
|
16
|
+
x="kind"
|
|
17
|
+
p50="median"
|
|
18
|
+
p95={null}
|
|
19
|
+
labels={{ p50: "Median", slowest: "median of {name}, the slowest" }}
|
|
20
|
+
/>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/line-chart/creator-earnings.tsx
|
|
4
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var earnings = [
|
|
7
|
+
{ month: "2026-04", earnings: 182e3, tips: 21e3 },
|
|
8
|
+
{ month: "2026-05", earnings: 164e3, tips: 18500 },
|
|
9
|
+
{ month: "2026-06", earnings: 231e3, tips: 26e3 },
|
|
10
|
+
{ month: "2026-07", earnings: 298e3, tips: 31e3 },
|
|
11
|
+
{ month: "2026-08", earnings: 276e3, tips: 35500 },
|
|
12
|
+
{ month: "2026-09", earnings: 342e3, tips: 41e3 }
|
|
13
|
+
];
|
|
14
|
+
function CreatorEarnings() {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
LineChart,
|
|
17
|
+
{
|
|
18
|
+
title: "Earnings, last 6 months",
|
|
19
|
+
description: "Video sales and tips, before fees",
|
|
20
|
+
data: earnings,
|
|
21
|
+
x: "month",
|
|
22
|
+
xLabel: "Month",
|
|
23
|
+
series: [
|
|
24
|
+
{ key: "earnings", label: "Video sales" },
|
|
25
|
+
{ key: "tips", label: "Tips" }
|
|
26
|
+
],
|
|
27
|
+
format: { style: "money", currency: "EUR" },
|
|
28
|
+
thresholds: [{ value: 25e4, label: "Payout threshold", tone: "success" }],
|
|
29
|
+
exportable: true
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
CreatorEarnings as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
2
|
+
|
|
3
|
+
// Amounts in cents, as the ledger stores them.
|
|
4
|
+
const earnings = [
|
|
5
|
+
{ month: "2026-04", earnings: 182_000, tips: 21_000 },
|
|
6
|
+
{ month: "2026-05", earnings: 164_000, tips: 18_500 },
|
|
7
|
+
{ month: "2026-06", earnings: 231_000, tips: 26_000 },
|
|
8
|
+
{ month: "2026-07", earnings: 298_000, tips: 31_000 },
|
|
9
|
+
{ month: "2026-08", earnings: 276_000, tips: 35_500 },
|
|
10
|
+
{ month: "2026-09", earnings: 342_000, tips: 41_000 },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export default function CreatorEarnings() {
|
|
14
|
+
return (
|
|
15
|
+
<LineChart
|
|
16
|
+
title="Earnings, last 6 months"
|
|
17
|
+
description="Video sales and tips, before fees"
|
|
18
|
+
data={earnings}
|
|
19
|
+
x="month"
|
|
20
|
+
xLabel="Month"
|
|
21
|
+
series={[
|
|
22
|
+
{ key: "earnings", label: "Video sales" },
|
|
23
|
+
{ key: "tips", label: "Tips" },
|
|
24
|
+
]}
|
|
25
|
+
format={{ style: "money", currency: "EUR" }}
|
|
26
|
+
thresholds={[{ value: 250_000, label: "Payout threshold", tone: "success" }]}
|
|
27
|
+
exportable
|
|
28
|
+
/>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/line-chart/forecast.tsx
|
|
4
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var requests = [
|
|
7
|
+
{ week: "2026-07-06", actual: 41200 },
|
|
8
|
+
{ week: "2026-07-13", actual: 43900 },
|
|
9
|
+
{ week: "2026-07-20", actual: 47100 },
|
|
10
|
+
{ week: "2026-07-27", actual: 52800, forecast: 52800 },
|
|
11
|
+
{ week: "2026-08-03", forecast: 57400 },
|
|
12
|
+
{ week: "2026-08-10", forecast: 61e3 },
|
|
13
|
+
{ week: "2026-08-17", forecast: 66300 }
|
|
14
|
+
];
|
|
15
|
+
function Forecast() {
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
LineChart,
|
|
18
|
+
{
|
|
19
|
+
title: "Inference requests per week",
|
|
20
|
+
description: "Actual, then forecast",
|
|
21
|
+
data: requests,
|
|
22
|
+
x: "week",
|
|
23
|
+
xFormat: "day",
|
|
24
|
+
series: [
|
|
25
|
+
{ key: "actual", label: "Actual" },
|
|
26
|
+
{ key: "forecast", label: "Forecast", color: 1, dashed: true }
|
|
27
|
+
],
|
|
28
|
+
format: "compact",
|
|
29
|
+
markers: [{ x: "2026-07-27", label: "Studio launch", tone: "accent" }],
|
|
30
|
+
dots: true
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
Forecast as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
2
|
+
|
|
3
|
+
const requests = [
|
|
4
|
+
{ week: "2026-07-06", actual: 41_200 },
|
|
5
|
+
{ week: "2026-07-13", actual: 43_900 },
|
|
6
|
+
{ week: "2026-07-20", actual: 47_100 },
|
|
7
|
+
{ week: "2026-07-27", actual: 52_800, forecast: 52_800 },
|
|
8
|
+
{ week: "2026-08-03", forecast: 57_400 },
|
|
9
|
+
{ week: "2026-08-10", forecast: 61_000 },
|
|
10
|
+
{ week: "2026-08-17", forecast: 66_300 },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export default function Forecast() {
|
|
14
|
+
return (
|
|
15
|
+
<LineChart
|
|
16
|
+
title="Inference requests per week"
|
|
17
|
+
description="Actual, then forecast"
|
|
18
|
+
data={requests}
|
|
19
|
+
x="week"
|
|
20
|
+
xFormat="day"
|
|
21
|
+
series={[
|
|
22
|
+
{ key: "actual", label: "Actual" },
|
|
23
|
+
{ key: "forecast", label: "Forecast", color: 1, dashed: true },
|
|
24
|
+
]}
|
|
25
|
+
format="compact"
|
|
26
|
+
markers={[{ x: "2026-07-27", label: "Studio launch", tone: "accent" }]}
|
|
27
|
+
dots
|
|
28
|
+
/>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/line-chart/live-jobs.tsx
|
|
4
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
5
|
+
import { useSlidingWindow } from "@krizaka/charts/provider";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
var start = [18, 22, 19, 25, 31, 28, 26, 33, 37, 35].map((completed, i) => ({ at: `2026-10-11T14:${String(20 + i).padStart(2, "0")}Z`, completed }));
|
|
8
|
+
function LiveJobs() {
|
|
9
|
+
const { data, push } = useSlidingWindow(10, start);
|
|
10
|
+
const next = () => {
|
|
11
|
+
const last = new Date(data[data.length - 1].at);
|
|
12
|
+
push({ at: new Date(last.getTime() + 6e4).toISOString(), completed: 20 + data.length * 7 % 19 });
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", { style: { display: "grid", gap: 8 }, children: [
|
|
15
|
+
/* @__PURE__ */ jsx(LineChart, { title: "Jobs completed per minute", data, x: "at", xFormat: "time", y: "completed", yLabel: "Jobs", format: "integer", live: true, dots: true }),
|
|
16
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: next, style: { justifySelf: "start", padding: "4px 10px", borderRadius: 8, border: "1px solid var(--kz-border-default)", background: "var(--kz-surface-2)", color: "var(--kz-text-primary)" }, children: "Next minute" })
|
|
17
|
+
] });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
LiveJobs as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
3
|
+
import { useSlidingWindow } from "@krizaka/charts/provider";
|
|
4
|
+
|
|
5
|
+
type Minute = { at: string; completed: number };
|
|
6
|
+
const start: Minute[] = [18, 22, 19, 25, 31, 28, 26, 33, 37, 35].map((completed, i) => ({ at: `2026-10-11T14:${String(20 + i).padStart(2, "0")}Z`, completed }));
|
|
7
|
+
|
|
8
|
+
export default function LiveJobs() {
|
|
9
|
+
// The last 10 minutes; in an app, `push` is called by a server-sent event.
|
|
10
|
+
const { data, push } = useSlidingWindow<Minute>(10, start);
|
|
11
|
+
const next = () => {
|
|
12
|
+
const last = new Date(data[data.length - 1]!.at);
|
|
13
|
+
push({ at: new Date(last.getTime() + 60_000).toISOString(), completed: 20 + ((data.length * 7) % 19) });
|
|
14
|
+
};
|
|
15
|
+
return (
|
|
16
|
+
<div style={{ display: "grid", gap: 8 }}>
|
|
17
|
+
<LineChart title="Jobs completed per minute" data={data} x="at" xFormat="time" y="completed" yLabel="Jobs" format="integer" live dots />
|
|
18
|
+
<button type="button" onClick={next} style={{ justifySelf: "start", padding: "4px 10px", borderRadius: 8, border: "1px solid var(--kz-border-default)", background: "var(--kz-surface-2)", color: "var(--kz-text-primary)" }}>
|
|
19
|
+
Next minute
|
|
20
|
+
</button>
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/line-chart/native/creator-earnings.tsx
|
|
4
|
+
import { LineChart } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var earnings = [
|
|
7
|
+
{ month: "2026-04", earnings: 182e3, tips: 21e3 },
|
|
8
|
+
{ month: "2026-05", earnings: 164e3, tips: 18500 },
|
|
9
|
+
{ month: "2026-06", earnings: 231e3, tips: 26e3 },
|
|
10
|
+
{ month: "2026-07", earnings: 298e3, tips: 31e3 },
|
|
11
|
+
{ month: "2026-08", earnings: 276e3, tips: 35500 },
|
|
12
|
+
{ month: "2026-09", earnings: 342e3, tips: 41e3 }
|
|
13
|
+
];
|
|
14
|
+
function CreatorEarnings() {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
LineChart,
|
|
17
|
+
{
|
|
18
|
+
title: "Earnings, last 6 months",
|
|
19
|
+
data: earnings,
|
|
20
|
+
x: "month",
|
|
21
|
+
series: [
|
|
22
|
+
{ key: "earnings", label: "Video sales" },
|
|
23
|
+
{ key: "tips", label: "Tips" }
|
|
24
|
+
],
|
|
25
|
+
format: { style: "money", currency: "EUR" },
|
|
26
|
+
thresholds: [{ value: 25e4, label: "Payout threshold", tone: "success" }]
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
CreatorEarnings as default
|
|
32
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LineChart } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const earnings = [
|
|
4
|
+
{ month: "2026-04", earnings: 182_000, tips: 21_000 },
|
|
5
|
+
{ month: "2026-05", earnings: 164_000, tips: 18_500 },
|
|
6
|
+
{ month: "2026-06", earnings: 231_000, tips: 26_000 },
|
|
7
|
+
{ month: "2026-07", earnings: 298_000, tips: 31_000 },
|
|
8
|
+
{ month: "2026-08", earnings: 276_000, tips: 35_500 },
|
|
9
|
+
{ month: "2026-09", earnings: 342_000, tips: 41_000 },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export default function CreatorEarnings() {
|
|
13
|
+
return (
|
|
14
|
+
<LineChart
|
|
15
|
+
title="Earnings, last 6 months"
|
|
16
|
+
data={earnings}
|
|
17
|
+
x="month"
|
|
18
|
+
series={[
|
|
19
|
+
{ key: "earnings", label: "Video sales" },
|
|
20
|
+
{ key: "tips", label: "Tips" },
|
|
21
|
+
]}
|
|
22
|
+
format={{ style: "money", currency: "EUR" }}
|
|
23
|
+
thresholds={[{ value: 250_000, label: "Payout threshold", tone: "success" }]}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/line-chart/states.tsx
|
|
4
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var series = [{ key: "views", label: "Views" }];
|
|
7
|
+
function States() {
|
|
8
|
+
return /* @__PURE__ */ jsxs("div", { style: { display: "grid", gap: 24 }, children: [
|
|
9
|
+
/* @__PURE__ */ jsx(LineChart, { title: "Views (loading)", data: [], x: "day", series, height: 140, loading: true }),
|
|
10
|
+
/* @__PURE__ */ jsx(LineChart, { title: "Views (no data yet)", data: [], x: "day", series, height: 140 }),
|
|
11
|
+
/* @__PURE__ */ jsx(LineChart, { title: "Views (failed)", data: [], x: "day", series, height: 140, error: true })
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
States as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
2
|
+
|
|
3
|
+
const series = [{ key: "views", label: "Views" }] as const;
|
|
4
|
+
|
|
5
|
+
export default function States() {
|
|
6
|
+
return (
|
|
7
|
+
<div style={{ display: "grid", gap: 24 }}>
|
|
8
|
+
<LineChart title="Views (loading)" data={[]} x="day" series={series} height={140} loading />
|
|
9
|
+
<LineChart title="Views (no data yet)" data={[]} x="day" series={series} height={140} />
|
|
10
|
+
<LineChart title="Views (failed)" data={[]} x="day" series={series} height={140} error />
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/pie-chart/credit-spend.tsx
|
|
4
|
+
import { DonutChart } from "@krizaka/charts/pie";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var spend = [
|
|
7
|
+
{ model: "Chat \xB7 Mistral Large", credits: 18400 },
|
|
8
|
+
{ model: "Image \xB7 Flux", credits: 9650 },
|
|
9
|
+
{ model: "Video \xB7 Wan 2.2", credits: 7200 },
|
|
10
|
+
{ model: "Speech \xB7 Whisper", credits: 2100 },
|
|
11
|
+
{ model: "Embeddings", credits: 640 }
|
|
12
|
+
];
|
|
13
|
+
function CreditSpend() {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
DonutChart,
|
|
16
|
+
{
|
|
17
|
+
title: "Credits spent in September",
|
|
18
|
+
data: spend,
|
|
19
|
+
label: "model",
|
|
20
|
+
value: "credits",
|
|
21
|
+
labelHeader: "Model",
|
|
22
|
+
valueHeader: "Credits",
|
|
23
|
+
format: "integer",
|
|
24
|
+
centerLabel: "credits"
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
CreditSpend as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DonutChart } from "@krizaka/charts/pie";
|
|
2
|
+
|
|
3
|
+
const spend = [
|
|
4
|
+
{ model: "Chat · Mistral Large", credits: 18_400 },
|
|
5
|
+
{ model: "Image · Flux", credits: 9_650 },
|
|
6
|
+
{ model: "Video · Wan 2.2", credits: 7_200 },
|
|
7
|
+
{ model: "Speech · Whisper", credits: 2_100 },
|
|
8
|
+
{ model: "Embeddings", credits: 640 },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export default function CreditSpend() {
|
|
12
|
+
return (
|
|
13
|
+
<DonutChart
|
|
14
|
+
title="Credits spent in September"
|
|
15
|
+
data={spend}
|
|
16
|
+
label="model"
|
|
17
|
+
value="credits"
|
|
18
|
+
labelHeader="Model"
|
|
19
|
+
valueHeader="Credits"
|
|
20
|
+
format="integer"
|
|
21
|
+
centerLabel="credits"
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/pie-chart/native/credit-spend.tsx
|
|
4
|
+
import { DonutChart } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var spend = [
|
|
7
|
+
{ model: "Chat", credits: 18400 },
|
|
8
|
+
{ model: "Image", credits: 9650 },
|
|
9
|
+
{ model: "Video", credits: 7200 },
|
|
10
|
+
{ model: "Speech", credits: 2100 }
|
|
11
|
+
];
|
|
12
|
+
function CreditSpend() {
|
|
13
|
+
return /* @__PURE__ */ jsx(DonutChart, { title: "Credits spent in September", data: spend, label: "model", value: "credits", format: "compact", centerLabel: "credits" });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
CreditSpend as default
|
|
17
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DonutChart } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const spend = [
|
|
4
|
+
{ model: "Chat", credits: 18_400 },
|
|
5
|
+
{ model: "Image", credits: 9_650 },
|
|
6
|
+
{ model: "Video", credits: 7_200 },
|
|
7
|
+
{ model: "Speech", credits: 2_100 },
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export default function CreditSpend() {
|
|
11
|
+
return <DonutChart title="Credits spent in September" data={spend} label="model" value="credits" format="compact" centerLabel="credits" />;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/pie-chart/storage-by-kind.tsx
|
|
4
|
+
import { PieChart } from "@krizaka/charts/pie";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var kinds = [
|
|
7
|
+
{ kind: "Videos", gb: 812 },
|
|
8
|
+
{ kind: "Thumbnails", gb: 64 },
|
|
9
|
+
{ kind: "Audio", gb: 121 },
|
|
10
|
+
{ kind: "Subtitles", gb: 3 },
|
|
11
|
+
{ kind: "Project files", gb: 96 },
|
|
12
|
+
{ kind: "Exports", gb: 210 },
|
|
13
|
+
{ kind: "Fonts", gb: 1 },
|
|
14
|
+
{ kind: "Logs", gb: 2 }
|
|
15
|
+
];
|
|
16
|
+
function StorageByKind() {
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
PieChart,
|
|
19
|
+
{
|
|
20
|
+
title: "Storage by kind",
|
|
21
|
+
data: kinds,
|
|
22
|
+
label: "kind",
|
|
23
|
+
value: "gb",
|
|
24
|
+
format: { style: "unit", unit: "gigabyte" },
|
|
25
|
+
otherLabel: "Other"
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
StorageByKind as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PieChart } from "@krizaka/charts/pie";
|
|
2
|
+
|
|
3
|
+
// Gigabytes; past six slices the smallest fold into “Other”.
|
|
4
|
+
const kinds = [
|
|
5
|
+
{ kind: "Videos", gb: 812 },
|
|
6
|
+
{ kind: "Thumbnails", gb: 64 },
|
|
7
|
+
{ kind: "Audio", gb: 121 },
|
|
8
|
+
{ kind: "Subtitles", gb: 3 },
|
|
9
|
+
{ kind: "Project files", gb: 96 },
|
|
10
|
+
{ kind: "Exports", gb: 210 },
|
|
11
|
+
{ kind: "Fonts", gb: 1 },
|
|
12
|
+
{ kind: "Logs", gb: 2 },
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
export default function StorageByKind() {
|
|
16
|
+
return (
|
|
17
|
+
<PieChart
|
|
18
|
+
title="Storage by kind"
|
|
19
|
+
data={kinds}
|
|
20
|
+
label="kind"
|
|
21
|
+
value="gb"
|
|
22
|
+
format={{ style: "unit", unit: "gigabyte" }}
|
|
23
|
+
otherLabel="Other"
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/price-ticker/auction-room.tsx
|
|
4
|
+
import { PriceTicker } from "@krizaka/charts/ticker";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var bids = [
|
|
7
|
+
{ at: "2026-10-11T18:02:00Z", amount: 2500 },
|
|
8
|
+
{ at: "2026-10-11T18:05:00Z", amount: 3e3 },
|
|
9
|
+
{ at: "2026-10-11T18:11:00Z", amount: 3500 },
|
|
10
|
+
{ at: "2026-10-11T18:12:00Z", amount: 4200 },
|
|
11
|
+
{ at: "2026-10-11T18:20:00Z", amount: 5e3 },
|
|
12
|
+
{ at: "2026-10-11T18:26:00Z", amount: 5500 },
|
|
13
|
+
{ at: "2026-10-11T18:31:00Z", amount: 6500 },
|
|
14
|
+
{ at: "2026-10-11T18:33:00Z", amount: 7200 }
|
|
15
|
+
];
|
|
16
|
+
function AuctionRoom() {
|
|
17
|
+
return /* @__PURE__ */ jsx(PriceTicker, { title: "Signed first take", bids, opening: 2e3, openedAt: "2026-10-11T18:00:00Z", currency: "USD", reserve: 6e3, height: 220 });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
AuctionRoom as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PriceTicker } from "@krizaka/charts/ticker";
|
|
2
|
+
|
|
3
|
+
// An Orochia auction: the bids in cents, as they arrived.
|
|
4
|
+
const bids = [
|
|
5
|
+
{ at: "2026-10-11T18:02:00Z", amount: 25_00 },
|
|
6
|
+
{ at: "2026-10-11T18:05:00Z", amount: 30_00 },
|
|
7
|
+
{ at: "2026-10-11T18:11:00Z", amount: 35_00 },
|
|
8
|
+
{ at: "2026-10-11T18:12:00Z", amount: 42_00 },
|
|
9
|
+
{ at: "2026-10-11T18:20:00Z", amount: 50_00 },
|
|
10
|
+
{ at: "2026-10-11T18:26:00Z", amount: 55_00 },
|
|
11
|
+
{ at: "2026-10-11T18:31:00Z", amount: 65_00 },
|
|
12
|
+
{ at: "2026-10-11T18:33:00Z", amount: 72_00 },
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
export default function AuctionRoom() {
|
|
16
|
+
return <PriceTicker title="Signed first take" bids={bids} opening={20_00} openedAt="2026-10-11T18:00:00Z" currency="USD" reserve={60_00} height={220} />;
|
|
17
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/price-ticker/native/auction-room.tsx
|
|
4
|
+
import { PriceTicker } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var bids = [
|
|
7
|
+
{ at: "2026-10-11T18:02:00Z", amount: 2500 },
|
|
8
|
+
{ at: "2026-10-11T18:05:00Z", amount: 3e3 },
|
|
9
|
+
{ at: "2026-10-11T18:11:00Z", amount: 3500 },
|
|
10
|
+
{ at: "2026-10-11T18:20:00Z", amount: 5e3 },
|
|
11
|
+
{ at: "2026-10-11T18:31:00Z", amount: 6500 },
|
|
12
|
+
{ at: "2026-10-11T18:33:00Z", amount: 7200 }
|
|
13
|
+
];
|
|
14
|
+
function NativeAuctionRoom() {
|
|
15
|
+
return /* @__PURE__ */ jsx(PriceTicker, { title: "Signed first take", bids, opening: 2e3, openedAt: "2026-10-11T18:00:00Z", currency: "USD", reserve: 6e3, height: 160 });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
NativeAuctionRoom as default
|
|
19
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PriceTicker } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const bids = [
|
|
4
|
+
{ at: "2026-10-11T18:02:00Z", amount: 25_00 },
|
|
5
|
+
{ at: "2026-10-11T18:05:00Z", amount: 30_00 },
|
|
6
|
+
{ at: "2026-10-11T18:11:00Z", amount: 35_00 },
|
|
7
|
+
{ at: "2026-10-11T18:20:00Z", amount: 50_00 },
|
|
8
|
+
{ at: "2026-10-11T18:31:00Z", amount: 65_00 },
|
|
9
|
+
{ at: "2026-10-11T18:33:00Z", amount: 72_00 },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
// The auction screen of the app: the current bid first.
|
|
13
|
+
export default function NativeAuctionRoom() {
|
|
14
|
+
return <PriceTicker title="Signed first take" bids={bids} opening={20_00} openedAt="2026-10-11T18:00:00Z" currency="USD" reserve={60_00} height={160} />;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/price-ticker/no-bid-yet.tsx
|
|
4
|
+
import { PriceTicker } from "@krizaka/charts/ticker";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function NoBidYet() {
|
|
7
|
+
return /* @__PURE__ */ jsx(PriceTicker, { title: "Studio session, one hour", bids: [], opening: 4e3, openedAt: "2026-10-11T18:00:00Z", currency: "USD", reserve: 9e3, height: 180 });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
NoBidYet as default
|
|
11
|
+
};
|