@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,30 @@
|
|
|
1
|
+
import { Chart } from "@krizaka/charts/chart";
|
|
2
|
+
|
|
3
|
+
const 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];
|
|
4
|
+
const hours = uploads.map((_, h) => `${String(h).padStart(2, "0")}:00`);
|
|
5
|
+
|
|
6
|
+
// Only what the option needs: polar bars and the tooltip (not all of ECharts).
|
|
7
|
+
const modules = async () => {
|
|
8
|
+
const [{ use: register }, { BarChart }, { PolarComponent, TooltipComponent }] = await Promise.all([import("echarts/core"), import("echarts/charts"), import("echarts/components")]);
|
|
9
|
+
register([BarChart, PolarComponent, TooltipComponent]);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default function PolarUploads() {
|
|
13
|
+
return (
|
|
14
|
+
<Chart
|
|
15
|
+
title="Uploads by hour of the day"
|
|
16
|
+
modules={modules}
|
|
17
|
+
option={(theme) => ({
|
|
18
|
+
polar: { radius: ["18%", "80%"] },
|
|
19
|
+
angleAxis: { type: "category", data: hours, axisLabel: { color: theme.text2, interval: 2 }, axisLine: { lineStyle: { color: theme.axis } } },
|
|
20
|
+
radiusAxis: { axisLabel: { show: false }, splitLine: { lineStyle: { color: theme.grid } }, axisLine: { show: false } },
|
|
21
|
+
tooltip: { trigger: "item" },
|
|
22
|
+
series: [{ type: "bar", coordinateSystem: "polar", data: uploads, itemStyle: { color: theme.palette[0], borderRadius: 3 } }],
|
|
23
|
+
})}
|
|
24
|
+
summaryText={`Uploads by hour: quietest at 02:00 (1), busiest at 19:00 (61).`}
|
|
25
|
+
table={{ columns: ["Hour", "Uploads"], rows: hours.map((h, i) => [h, String(uploads[i])]) }}
|
|
26
|
+
items={uploads.map((u, i) => ({ seriesIndex: 0, dataIndex: i, text: `${hours[i]}: ${u}` }))}
|
|
27
|
+
height={340}
|
|
28
|
+
/>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/charts-provider/french-orazaka.tsx
|
|
4
|
+
import { BarChart } from "@krizaka/charts/bar";
|
|
5
|
+
import { ChartsProvider } from "@krizaka/charts/provider";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var months = [
|
|
8
|
+
{ month: "2026-06", credits: 412e3 },
|
|
9
|
+
{ month: "2026-07", credits: 468500 },
|
|
10
|
+
{ month: "2026-08", credits: 391200 },
|
|
11
|
+
{ month: "2026-09", credits: 523900 }
|
|
12
|
+
];
|
|
13
|
+
function FrenchOrazaka() {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
ChartsProvider,
|
|
16
|
+
{
|
|
17
|
+
locale: "fr-FR",
|
|
18
|
+
brand: "orazaka",
|
|
19
|
+
labels: { showData: "Voir les donn\xE9es", hideData: "Masquer les donn\xE9es", empty: "Pas encore de donn\xE9es.", kinds: { bar: "Histogramme" } },
|
|
20
|
+
children: /* @__PURE__ */ jsx(BarChart, { title: "Cr\xE9dits consomm\xE9s par mois", data: months, x: "month", xLabel: "Mois", y: "credits", yLabel: "Cr\xE9dits", format: "compact" })
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
FrenchOrazaka as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BarChart } from "@krizaka/charts/bar";
|
|
2
|
+
import { ChartsProvider } from "@krizaka/charts/provider";
|
|
3
|
+
|
|
4
|
+
const months = [
|
|
5
|
+
{ month: "2026-06", credits: 412_000 },
|
|
6
|
+
{ month: "2026-07", credits: 468_500 },
|
|
7
|
+
{ month: "2026-08", credits: 391_200 },
|
|
8
|
+
{ month: "2026-09", credits: 523_900 },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
// Once near the app's root: the locale, the brand's palette, the words from the app's catalogue.
|
|
12
|
+
export default function FrenchOrazaka() {
|
|
13
|
+
return (
|
|
14
|
+
<ChartsProvider
|
|
15
|
+
locale="fr-FR"
|
|
16
|
+
brand="orazaka"
|
|
17
|
+
labels={{ showData: "Voir les données", hideData: "Masquer les données", empty: "Pas encore de données.", kinds: { bar: "Histogramme" } }}
|
|
18
|
+
>
|
|
19
|
+
<BarChart title="Crédits consommés par mois" data={months} x="month" xLabel="Mois" y="credits" yLabel="Crédits" format="compact" />
|
|
20
|
+
</ChartsProvider>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/charts-provider/native/french-orazaka.tsx
|
|
4
|
+
import { BarChart, ChartsProvider } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var months = [
|
|
7
|
+
{ month: "2026-06", credits: 412e3 },
|
|
8
|
+
{ month: "2026-07", credits: 468500 },
|
|
9
|
+
{ month: "2026-08", credits: 391200 },
|
|
10
|
+
{ month: "2026-09", credits: 523900 }
|
|
11
|
+
];
|
|
12
|
+
function FrenchOrazaka() {
|
|
13
|
+
return /* @__PURE__ */ jsx(ChartsProvider, { locale: "fr-FR", brand: "orazaka", children: /* @__PURE__ */ jsx(BarChart, { title: "Cr\xE9dits consomm\xE9s par mois", data: months, x: "month", y: "credits", yLabel: "Cr\xE9dits", format: "compact" }) });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
FrenchOrazaka as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BarChart, ChartsProvider } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const months = [
|
|
4
|
+
{ month: "2026-06", credits: 412_000 },
|
|
5
|
+
{ month: "2026-07", credits: 468_500 },
|
|
6
|
+
{ month: "2026-08", credits: 391_200 },
|
|
7
|
+
{ month: "2026-09", credits: 523_900 },
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
// In an app: scheme and theme from @krizaka/ui/native's useTheme(), so the charts follow its mode and brand.
|
|
11
|
+
export default function FrenchOrazaka() {
|
|
12
|
+
return (
|
|
13
|
+
<ChartsProvider locale="fr-FR" brand="orazaka">
|
|
14
|
+
<BarChart title="Crédits consommés par mois" data={months} x="month" y="credits" yLabel="Crédits" format="compact" />
|
|
15
|
+
</ChartsProvider>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/credit-usage/monthly-credits.tsx
|
|
4
|
+
import { CreditUsage } from "@krizaka/charts/credits";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var daily = [120, 180, 95, 210, 260, 140, 60, 75, 230, 310, 280, 190, 240, 300];
|
|
7
|
+
function MonthlyCredits() {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
CreditUsage,
|
|
10
|
+
{
|
|
11
|
+
title: "Credits this month",
|
|
12
|
+
description: "Pro plan",
|
|
13
|
+
used: 3120,
|
|
14
|
+
limit: 5e3,
|
|
15
|
+
daily,
|
|
16
|
+
renewsAt: "2026-11-01",
|
|
17
|
+
now: /* @__PURE__ */ new Date("2026-10-11T09:00:00Z"),
|
|
18
|
+
labels: { remaining: "credits left of {limit}" }
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
MonthlyCredits as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CreditUsage } from "@krizaka/charts/credits";
|
|
2
|
+
|
|
3
|
+
// The credits used each day of the last two weeks (an Orazaka Pro plan of 5,000 credits).
|
|
4
|
+
const daily = [120, 180, 95, 210, 260, 140, 60, 75, 230, 310, 280, 190, 240, 300];
|
|
5
|
+
|
|
6
|
+
export default function MonthlyCredits() {
|
|
7
|
+
return (
|
|
8
|
+
<CreditUsage
|
|
9
|
+
title="Credits this month"
|
|
10
|
+
description="Pro plan"
|
|
11
|
+
used={3_120}
|
|
12
|
+
limit={5_000}
|
|
13
|
+
daily={daily}
|
|
14
|
+
renewsAt="2026-11-01"
|
|
15
|
+
now={new Date("2026-10-11T09:00:00Z")}
|
|
16
|
+
labels={{ remaining: "credits left of {limit}" }}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/credit-usage/native/monthly-credits.tsx
|
|
4
|
+
import { CreditUsage } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var daily = [120, 180, 95, 210, 260, 140, 60, 75, 230, 310, 280, 190, 240, 300];
|
|
7
|
+
function NativeMonthlyCredits() {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
CreditUsage,
|
|
10
|
+
{
|
|
11
|
+
title: "Credits this month",
|
|
12
|
+
used: 3120,
|
|
13
|
+
limit: 5e3,
|
|
14
|
+
daily,
|
|
15
|
+
renewsAt: "2026-11-01",
|
|
16
|
+
now: /* @__PURE__ */ new Date("2026-10-11T09:00:00Z"),
|
|
17
|
+
labels: { remaining: "credits left of {limit}" }
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
NativeMonthlyCredits as default
|
|
23
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreditUsage } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const daily = [120, 180, 95, 210, 260, 140, 60, 75, 230, 310, 280, 190, 240, 300];
|
|
4
|
+
|
|
5
|
+
// The credits card of the mobile app.
|
|
6
|
+
export default function NativeMonthlyCredits() {
|
|
7
|
+
return (
|
|
8
|
+
<CreditUsage
|
|
9
|
+
title="Credits this month"
|
|
10
|
+
used={3_120}
|
|
11
|
+
limit={5_000}
|
|
12
|
+
daily={daily}
|
|
13
|
+
renewsAt="2026-11-01"
|
|
14
|
+
now={new Date("2026-10-11T09:00:00Z")}
|
|
15
|
+
labels={{ remaining: "credits left of {limit}" }}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/credit-usage/storage-plan.tsx
|
|
4
|
+
import { CreditUsage } from "@krizaka/charts/credits";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function StoragePlan() {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
CreditUsage,
|
|
9
|
+
{
|
|
10
|
+
title: "Platform storage",
|
|
11
|
+
description: "Bunny Stream \xB7 Growth plan",
|
|
12
|
+
used: 1742,
|
|
13
|
+
limit: 2e3,
|
|
14
|
+
format: { style: "unit", unit: "gigabyte" },
|
|
15
|
+
labels: { remaining: "free of {limit}" }
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
StoragePlan as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CreditUsage } from "@krizaka/charts/credits";
|
|
2
|
+
|
|
3
|
+
// Orochia's console: the platform's video storage, in gigabytes, past the warning level.
|
|
4
|
+
export default function StoragePlan() {
|
|
5
|
+
return (
|
|
6
|
+
<CreditUsage
|
|
7
|
+
title="Platform storage"
|
|
8
|
+
description="Bunny Stream · Growth plan"
|
|
9
|
+
used={1_742}
|
|
10
|
+
limit={2_000}
|
|
11
|
+
format={{ style: "unit", unit: "gigabyte" }}
|
|
12
|
+
labels={{ remaining: "free of {limit}" }}
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/earnings-chart/creator-month.tsx
|
|
4
|
+
import { EarningsChart } from "@krizaka/charts/earnings";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var months = [
|
|
7
|
+
{ month: "2026-05", net: 18240 },
|
|
8
|
+
{ month: "2026-06", net: 24510 },
|
|
9
|
+
{ month: "2026-07", net: 21075 },
|
|
10
|
+
{ month: "2026-08", net: 39820 },
|
|
11
|
+
{ month: "2026-09", net: 44105 },
|
|
12
|
+
{ month: "2026-10", net: 51290 }
|
|
13
|
+
];
|
|
14
|
+
function CreatorMonth() {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
EarningsChart,
|
|
17
|
+
{
|
|
18
|
+
title: "Your earnings",
|
|
19
|
+
data: months,
|
|
20
|
+
net: "net",
|
|
21
|
+
currency: "USD",
|
|
22
|
+
payoutThreshold: { value: 5e3, label: "Payout threshold" },
|
|
23
|
+
labels: { total: "earned over {count} months", change: "{change} vs September" }
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
CreatorMonth as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EarningsChart } from "@krizaka/charts/earnings";
|
|
2
|
+
|
|
3
|
+
// Net earnings in cents, as the ledger stores them (Orochia /earnings).
|
|
4
|
+
const months = [
|
|
5
|
+
{ month: "2026-05", net: 182_40 },
|
|
6
|
+
{ month: "2026-06", net: 245_10 },
|
|
7
|
+
{ month: "2026-07", net: 210_75 },
|
|
8
|
+
{ month: "2026-08", net: 398_20 },
|
|
9
|
+
{ month: "2026-09", net: 441_05 },
|
|
10
|
+
{ month: "2026-10", net: 512_90 },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export default function CreatorMonth() {
|
|
14
|
+
return (
|
|
15
|
+
<EarningsChart
|
|
16
|
+
title="Your earnings"
|
|
17
|
+
data={months}
|
|
18
|
+
net="net"
|
|
19
|
+
currency="USD"
|
|
20
|
+
payoutThreshold={{ value: 50_00, label: "Payout threshold" }}
|
|
21
|
+
labels={{ total: "earned over {count} months", change: "{change} vs September" }}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/earnings-chart/gross-and-net.tsx
|
|
4
|
+
import { EarningsChart } from "@krizaka/charts/earnings";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var months = [
|
|
7
|
+
{ month: "2026-07", gross: 1248e3, net: 1060800 },
|
|
8
|
+
{ month: "2026-08", gross: 1592e3, net: 1353200 },
|
|
9
|
+
{ month: "2026-09", gross: 1821e3, net: 1547850 },
|
|
10
|
+
{ month: "2026-10", gross: 2104500, net: 1788825 }
|
|
11
|
+
];
|
|
12
|
+
function GrossAndNet() {
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
EarningsChart,
|
|
15
|
+
{
|
|
16
|
+
title: "Creator earnings",
|
|
17
|
+
description: "Gross volume and what creators keep after fees",
|
|
18
|
+
data: months,
|
|
19
|
+
gross: "gross",
|
|
20
|
+
net: "net",
|
|
21
|
+
currency: "USD",
|
|
22
|
+
labels: { total: "paid to creators over {count} months", change: "{change} vs last month", gross: "Gross volume", net: "Creators' net" },
|
|
23
|
+
exportable: ["csv"]
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
GrossAndNet as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EarningsChart } from "@krizaka/charts/earnings";
|
|
2
|
+
|
|
3
|
+
// The platform's treasury: gross volume and creators' net, in cents.
|
|
4
|
+
const months = [
|
|
5
|
+
{ month: "2026-07", gross: 12_480_00, net: 10_608_00 },
|
|
6
|
+
{ month: "2026-08", gross: 15_920_00, net: 13_532_00 },
|
|
7
|
+
{ month: "2026-09", gross: 18_210_00, net: 15_478_50 },
|
|
8
|
+
{ month: "2026-10", gross: 21_045_00, net: 17_888_25 },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export default function GrossAndNet() {
|
|
12
|
+
return (
|
|
13
|
+
<EarningsChart
|
|
14
|
+
title="Creator earnings"
|
|
15
|
+
description="Gross volume and what creators keep after fees"
|
|
16
|
+
data={months}
|
|
17
|
+
gross="gross"
|
|
18
|
+
net="net"
|
|
19
|
+
currency="USD"
|
|
20
|
+
labels={{ total: "paid to creators over {count} months", change: "{change} vs last month", gross: "Gross volume", net: "Creators' net" }}
|
|
21
|
+
exportable={["csv"]}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/earnings-chart/native/creator-month.tsx
|
|
4
|
+
import { EarningsChart } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var months = [
|
|
7
|
+
{ month: "2026-05", net: 18240 },
|
|
8
|
+
{ month: "2026-06", net: 24510 },
|
|
9
|
+
{ month: "2026-07", net: 21075 },
|
|
10
|
+
{ month: "2026-08", net: 39820 },
|
|
11
|
+
{ month: "2026-09", net: 44105 },
|
|
12
|
+
{ month: "2026-10", net: 51290 }
|
|
13
|
+
];
|
|
14
|
+
function NativeCreatorMonth() {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
EarningsChart,
|
|
17
|
+
{
|
|
18
|
+
title: "Your earnings",
|
|
19
|
+
data: months,
|
|
20
|
+
net: "net",
|
|
21
|
+
currency: "USD",
|
|
22
|
+
height: 160,
|
|
23
|
+
labels: { total: "over {count} months", change: "{change} vs September" }
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
NativeCreatorMonth as default
|
|
29
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EarningsChart } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const months = [
|
|
4
|
+
{ month: "2026-05", net: 182_40 },
|
|
5
|
+
{ month: "2026-06", net: 245_10 },
|
|
6
|
+
{ month: "2026-07", net: 210_75 },
|
|
7
|
+
{ month: "2026-08", net: 398_20 },
|
|
8
|
+
{ month: "2026-09", net: 441_05 },
|
|
9
|
+
{ month: "2026-10", net: 512_90 },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
// The earnings card of the app: the total first, the bars under it.
|
|
13
|
+
export default function NativeCreatorMonth() {
|
|
14
|
+
return (
|
|
15
|
+
<EarningsChart
|
|
16
|
+
title="Your earnings"
|
|
17
|
+
data={months}
|
|
18
|
+
net="net"
|
|
19
|
+
currency="USD"
|
|
20
|
+
height={160}
|
|
21
|
+
labels={{ total: "over {count} months", change: "{change} vs September" }}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/funnel/signup.tsx
|
|
4
|
+
import { Funnel } from "@krizaka/charts/funnel";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var stages = [
|
|
7
|
+
{ stage: "Visited the creator page", people: 48200 },
|
|
8
|
+
{ stage: "Created an account", people: 9640 },
|
|
9
|
+
{ stage: "Verified their identity", people: 6170 },
|
|
10
|
+
{ stage: "Published a first video", people: 3210 },
|
|
11
|
+
{ stage: "Made a first sale", people: 1180 }
|
|
12
|
+
];
|
|
13
|
+
function Signup() {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
Funnel,
|
|
16
|
+
{
|
|
17
|
+
title: "Creator sign-up, September",
|
|
18
|
+
data: stages,
|
|
19
|
+
label: "stage",
|
|
20
|
+
value: "people",
|
|
21
|
+
stageLabel: "Stage",
|
|
22
|
+
valueLabel: "Creators",
|
|
23
|
+
fromFirstLabel: "% of visits",
|
|
24
|
+
fromPreviousLabel: "% of previous"
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
Signup as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Funnel } from "@krizaka/charts/funnel";
|
|
2
|
+
|
|
3
|
+
const stages = [
|
|
4
|
+
{ stage: "Visited the creator page", people: 48_200 },
|
|
5
|
+
{ stage: "Created an account", people: 9_640 },
|
|
6
|
+
{ stage: "Verified their identity", people: 6_170 },
|
|
7
|
+
{ stage: "Published a first video", people: 3_210 },
|
|
8
|
+
{ stage: "Made a first sale", people: 1_180 },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export default function Signup() {
|
|
12
|
+
return (
|
|
13
|
+
<Funnel
|
|
14
|
+
title="Creator sign-up, September"
|
|
15
|
+
data={stages}
|
|
16
|
+
label="stage"
|
|
17
|
+
value="people"
|
|
18
|
+
stageLabel="Stage"
|
|
19
|
+
valueLabel="Creators"
|
|
20
|
+
fromFirstLabel="% of visits"
|
|
21
|
+
fromPreviousLabel="% of previous"
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/gauge/challenge-goal.tsx
|
|
4
|
+
import { Gauge } from "@krizaka/charts/gauge";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function ChallengeGoal() {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Gauge,
|
|
9
|
+
{
|
|
10
|
+
title: "\u201CShoot the sunrise from the Mont-Royal\u201D",
|
|
11
|
+
description: "Challenge in escrow \xB7 6 days left",
|
|
12
|
+
value: 186e3,
|
|
13
|
+
max: 3e5,
|
|
14
|
+
format: { style: "money", currency: "CAD" },
|
|
15
|
+
caption: "raised",
|
|
16
|
+
target: { value: 25e4, label: "Objective" },
|
|
17
|
+
tone: "accent",
|
|
18
|
+
style: { maxWidth: 320 }
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
ChallengeGoal as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Gauge } from "@krizaka/charts/gauge";
|
|
2
|
+
|
|
3
|
+
// A challenge's escrow, in cents, against its objective.
|
|
4
|
+
export default function ChallengeGoal() {
|
|
5
|
+
return (
|
|
6
|
+
<Gauge
|
|
7
|
+
title="“Shoot the sunrise from the Mont-Royal”"
|
|
8
|
+
description="Challenge in escrow · 6 days left"
|
|
9
|
+
value={186_000}
|
|
10
|
+
max={300_000}
|
|
11
|
+
format={{ style: "money", currency: "CAD" }}
|
|
12
|
+
caption="raised"
|
|
13
|
+
target={{ value: 250_000, label: "Objective" }}
|
|
14
|
+
tone="accent"
|
|
15
|
+
style={{ maxWidth: 320 }}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/gauge/credits-quota.tsx
|
|
4
|
+
import { Gauge } from "@krizaka/charts/gauge";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function CreditsQuota() {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Gauge,
|
|
9
|
+
{
|
|
10
|
+
title: "Credits used this month",
|
|
11
|
+
value: 41250,
|
|
12
|
+
max: 5e4,
|
|
13
|
+
format: "compact",
|
|
14
|
+
caption: "of 50K credits",
|
|
15
|
+
zones: [
|
|
16
|
+
{ to: 4e4, tone: "success", label: "Within plan" },
|
|
17
|
+
{ to: 47500, tone: "warning", label: "Nearing the limit" },
|
|
18
|
+
{ to: 5e4, tone: "danger", label: "At the limit" }
|
|
19
|
+
],
|
|
20
|
+
style: { maxWidth: 320 }
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
CreditsQuota as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Gauge } from "@krizaka/charts/gauge";
|
|
2
|
+
|
|
3
|
+
export default function CreditsQuota() {
|
|
4
|
+
return (
|
|
5
|
+
<Gauge
|
|
6
|
+
title="Credits used this month"
|
|
7
|
+
value={41_250}
|
|
8
|
+
max={50_000}
|
|
9
|
+
format="compact"
|
|
10
|
+
caption="of 50K credits"
|
|
11
|
+
zones={[
|
|
12
|
+
{ to: 40_000, tone: "success", label: "Within plan" },
|
|
13
|
+
{ to: 47_500, tone: "warning", label: "Nearing the limit" },
|
|
14
|
+
{ to: 50_000, tone: "danger", label: "At the limit" },
|
|
15
|
+
]}
|
|
16
|
+
style={{ maxWidth: 320 }}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
Binary file
|