@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,72 @@
|
|
|
1
|
+
interface EarningsLabels {
|
|
2
|
+
/** Under the total: `earned over {count} months`. `{count}` is the number of periods. */
|
|
3
|
+
total: string;
|
|
4
|
+
/** The change of the last period: `{change} vs the previous month`. */
|
|
5
|
+
change: string;
|
|
6
|
+
/** The gross series' name. */
|
|
7
|
+
gross: string;
|
|
8
|
+
/** The net series' name. */
|
|
9
|
+
net: string;
|
|
10
|
+
}
|
|
11
|
+
declare const EARNINGS_LABELS: EarningsLabels;
|
|
12
|
+
interface ThroughputLabels {
|
|
13
|
+
/** Under the total: `jobs over {count} days`. */
|
|
14
|
+
total: string;
|
|
15
|
+
/** The success rate of the finished jobs: `{rate} succeeded`. */
|
|
16
|
+
success: string;
|
|
17
|
+
}
|
|
18
|
+
declare const THROUGHPUT_LABELS: ThroughputLabels;
|
|
19
|
+
interface LatencyLabels {
|
|
20
|
+
/** The median series. */
|
|
21
|
+
p50: string;
|
|
22
|
+
/** The 95th percentile series. */
|
|
23
|
+
p95: string;
|
|
24
|
+
/** The slowest p95: `slowest: {name}`. */
|
|
25
|
+
slowest: string;
|
|
26
|
+
/** How many go past the objective: `{count} over the objective`. */
|
|
27
|
+
over: string;
|
|
28
|
+
/** All within the objective. */
|
|
29
|
+
within: string;
|
|
30
|
+
}
|
|
31
|
+
declare const LATENCY_LABELS: LatencyLabels;
|
|
32
|
+
interface CreditLabels {
|
|
33
|
+
/** Under the remaining amount: `left of {limit}`. */
|
|
34
|
+
remaining: string;
|
|
35
|
+
/** The used part: `{used} used ({percent})`. */
|
|
36
|
+
used: string;
|
|
37
|
+
/** The projection: `at this pace, runs out on {date}`. */
|
|
38
|
+
runsOut: string;
|
|
39
|
+
/** No use lately: it does not run out. */
|
|
40
|
+
steady: string;
|
|
41
|
+
/** The renewal: `renews on {date}`. */
|
|
42
|
+
renews: string;
|
|
43
|
+
/** The daily use sparkline's title. */
|
|
44
|
+
daily: string;
|
|
45
|
+
}
|
|
46
|
+
declare const CREDIT_LABELS: CreditLabels;
|
|
47
|
+
interface GoalLabels {
|
|
48
|
+
/** Under the amount: `raised of {goal}`. */
|
|
49
|
+
raised: string;
|
|
50
|
+
/** Reached: `goal reached`. */
|
|
51
|
+
reached: string;
|
|
52
|
+
/** The supporters: `{count} supporters`. */
|
|
53
|
+
supporters: string;
|
|
54
|
+
/** The time left: `{time} left`. */
|
|
55
|
+
left: string;
|
|
56
|
+
}
|
|
57
|
+
declare const GOAL_LABELS: GoalLabels;
|
|
58
|
+
interface TickerLabels {
|
|
59
|
+
/** Under the price: `current bid`. */
|
|
60
|
+
current: string;
|
|
61
|
+
/** The change since the opening: `{change} since the opening ({count} bids)`. */
|
|
62
|
+
change: string;
|
|
63
|
+
/** No bid yet: `opening price`. */
|
|
64
|
+
opening: string;
|
|
65
|
+
/** The reserve line. */
|
|
66
|
+
reserve: string;
|
|
67
|
+
/** The series' name. */
|
|
68
|
+
price: string;
|
|
69
|
+
}
|
|
70
|
+
declare const TICKER_LABELS: TickerLabels;
|
|
71
|
+
|
|
72
|
+
export { CREDIT_LABELS as C, EARNINGS_LABELS as E, GOAL_LABELS as G, LATENCY_LABELS as L, THROUGHPUT_LABELS as T, type CreditLabels as a, type EarningsLabels as b, type GoalLabels as c, type LatencyLabels as d, TICKER_LABELS as e, type ThroughputLabels as f, type TickerLabels as g };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { d as LatencyLabels } from './labels-DE_743fQ.js';
|
|
2
|
+
export { L as LATENCY_LABELS } from './labels-DE_743fQ.js';
|
|
3
|
+
import { L as Locale, g as Datum, A as Accessor } from './context-BgYUymEO.js';
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import { C as CartesianProps } from './cartesian-BRhNQ3ib.js';
|
|
6
|
+
import './frame-I7_xYGy5.js';
|
|
7
|
+
|
|
8
|
+
/** Milliseconds as a duration: `840 ms`, `1.2 s`, `2.5 min` — the unit follows the size, through Intl. */
|
|
9
|
+
declare function formatDuration(ms: number, locale: Locale): string;
|
|
10
|
+
|
|
11
|
+
interface LatencyChartProps<T extends Datum> extends Omit<CartesianProps<T>, "y" | "yLabel" | "series" | "format" | "x" | "xFormat" | "thresholds" | "labels"> {
|
|
12
|
+
/** The field (or function) naming what is measured (a capability, a model). Default `"name"`. */
|
|
13
|
+
x?: Accessor<T, unknown>;
|
|
14
|
+
/** The median, in milliseconds. Default `"p50"`. */
|
|
15
|
+
p50?: Accessor<T, number | null | undefined>;
|
|
16
|
+
/** The 95th percentile, in milliseconds. Default `"p95"`; `null` to draw the median alone. */
|
|
17
|
+
p95?: Accessor<T, number | null | undefined> | null;
|
|
18
|
+
/** The service objective, in milliseconds: a line, and the count of what goes past it (by p95). */
|
|
19
|
+
objective?: {
|
|
20
|
+
readonly value: number;
|
|
21
|
+
readonly label: string;
|
|
22
|
+
};
|
|
23
|
+
/** Vertical bars instead of horizontal ones (few, short names). */
|
|
24
|
+
vertical?: boolean;
|
|
25
|
+
/** Hide the slowest p95 and the count over the objective. */
|
|
26
|
+
hideSummary?: boolean;
|
|
27
|
+
/** The words, passed translated; English by default. */
|
|
28
|
+
labels?: Partial<LatencyLabels>;
|
|
29
|
+
}
|
|
30
|
+
/** Median and p95 latency per item, durations in the unit that fits, against a service objective. */
|
|
31
|
+
declare function LatencyChart<T extends Datum>({ x, p50, p95, objective, vertical, hideSummary, labels: given, description, data, ...props }: LatencyChartProps<T>): react.JSX.Element;
|
|
32
|
+
|
|
33
|
+
export { LatencyChart, type LatencyChartProps, LatencyLabels, formatDuration };
|
package/dist/latency.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
LatencyChart
|
|
4
|
+
} from "./chunk-IKQV3NSL.js";
|
|
5
|
+
import "./chunk-WVTIKOII.js";
|
|
6
|
+
import "./chunk-CVWSMUUB.js";
|
|
7
|
+
import "./chunk-WBHFVBSK.js";
|
|
8
|
+
import "./chunk-BISL7DYW.js";
|
|
9
|
+
import "./chunk-ANUCSRUN.js";
|
|
10
|
+
import "./chunk-W5FX4TU3.js";
|
|
11
|
+
import {
|
|
12
|
+
LATENCY_LABELS,
|
|
13
|
+
formatDuration
|
|
14
|
+
} from "./chunk-WNUFGMS7.js";
|
|
15
|
+
import "./chunk-OB5EFDDH.js";
|
|
16
|
+
import "./chunk-XLLYNNC6.js";
|
|
17
|
+
import "./chunk-JTKR7ZWP.js";
|
|
18
|
+
import "./chunk-3CJHBJXA.js";
|
|
19
|
+
export {
|
|
20
|
+
LATENCY_LABELS,
|
|
21
|
+
LatencyChart,
|
|
22
|
+
formatDuration
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=latency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/line.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { C as CartesianProps } from './cartesian-BRhNQ3ib.js';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { g as Datum } from './context-BgYUymEO.js';
|
|
4
|
+
import './frame-I7_xYGy5.js';
|
|
5
|
+
|
|
6
|
+
type Curve = "linear" | "monotone" | "step";
|
|
7
|
+
|
|
8
|
+
interface LineChartProps<T extends Datum> extends CartesianProps<T> {
|
|
9
|
+
/** The shape between points: `monotone` (default, never overshoots), `linear`, `step` (a value that holds). */
|
|
10
|
+
curve?: Curve;
|
|
11
|
+
/** A dot on every point (short series). Default false: the end of each line carries one. */
|
|
12
|
+
dots?: boolean;
|
|
13
|
+
/** Write the last value at the end of each line (up to three series). Default true. */
|
|
14
|
+
endLabels?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Change over time: one line per series, the last value written at its end, a crosshair tooltip, the keyboard. */
|
|
17
|
+
declare function LineChart<T extends Datum>({ curve, dots, endLabels, ...props }: LineChartProps<T>): react.JSX.Element;
|
|
18
|
+
interface AreaChartProps<T extends Datum> extends LineChartProps<T> {
|
|
19
|
+
/** Stack the series: a total and its parts over time. */
|
|
20
|
+
stacked?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** A volume over time: a line over a soft wash (stacked: the parts of a total). */
|
|
23
|
+
declare function AreaChart<T extends Datum>({ curve, dots, endLabels, stacked, ...props }: AreaChartProps<T>): react.JSX.Element;
|
|
24
|
+
|
|
25
|
+
export { AreaChart, type AreaChartProps, CartesianProps, LineChart, type LineChartProps };
|
package/dist/line.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunk-E5DKBSWX.js";
|
|
3
|
+
import {
|
|
4
|
+
AreaChart,
|
|
5
|
+
LineChart
|
|
6
|
+
} from "./chunk-C4MFZLJM.js";
|
|
7
|
+
import "./chunk-CVWSMUUB.js";
|
|
8
|
+
import "./chunk-BISL7DYW.js";
|
|
9
|
+
import "./chunk-ANUCSRUN.js";
|
|
10
|
+
import "./chunk-W5FX4TU3.js";
|
|
11
|
+
import "./chunk-OB5EFDDH.js";
|
|
12
|
+
import "./chunk-XLLYNNC6.js";
|
|
13
|
+
import "./chunk-JTKR7ZWP.js";
|
|
14
|
+
import "./chunk-3CJHBJXA.js";
|
|
15
|
+
export {
|
|
16
|
+
AreaChart,
|
|
17
|
+
LineChart
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=line.js.map
|
package/dist/line.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/native.d.ts
ADDED
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ViewStyle } from 'react-native';
|
|
4
|
+
|
|
5
|
+
interface ChartLabels {
|
|
6
|
+
/** The button that shows the data table. */
|
|
7
|
+
showData: string;
|
|
8
|
+
/** The button that hides it. */
|
|
9
|
+
hideData: string;
|
|
10
|
+
/** The caption of the data table: `{title}`. */
|
|
11
|
+
tableCaption: string;
|
|
12
|
+
/** The export buttons. */
|
|
13
|
+
exportPng: string;
|
|
14
|
+
exportSvg: string;
|
|
15
|
+
exportCsv: string;
|
|
16
|
+
/** Announced while the data loads. */
|
|
17
|
+
loading: string;
|
|
18
|
+
/** Shown when there is nothing to draw. */
|
|
19
|
+
empty: string;
|
|
20
|
+
/** Shown when the data could not be loaded. */
|
|
21
|
+
error: string;
|
|
22
|
+
/** The keyboard hint, read once when the plot takes the focus. */
|
|
23
|
+
keyboardHint: string;
|
|
24
|
+
/** The role description of the plot (`chart`). */
|
|
25
|
+
roleDescription: string;
|
|
26
|
+
/** Summary pieces. `{kind}` is the chart's name (`Line chart`), `{count}` a number of points or series. */
|
|
27
|
+
summaryIntro: string;
|
|
28
|
+
summarySeries: string;
|
|
29
|
+
summaryRange: string;
|
|
30
|
+
summaryTrendUp: string;
|
|
31
|
+
summaryTrendDown: string;
|
|
32
|
+
summaryTrendFlat: string;
|
|
33
|
+
summaryTotal: string;
|
|
34
|
+
summaryThreshold: string;
|
|
35
|
+
summaryShare: string;
|
|
36
|
+
/** Scatter: the correlation of x and y (Pearson's r). */
|
|
37
|
+
summaryCorrelation: string;
|
|
38
|
+
/** Funnel: from one stage to the next, and from the first to the last. */
|
|
39
|
+
summaryConversion: string;
|
|
40
|
+
summaryOverall: string;
|
|
41
|
+
/** Heatmap, calendar: the largest cell and the number of cells with a value. */
|
|
42
|
+
summaryPeak: string;
|
|
43
|
+
summaryActive: string;
|
|
44
|
+
/** Candlestick: the period's range. */
|
|
45
|
+
summaryOhlc: string;
|
|
46
|
+
/** The names of the charts, read first in the summary. */
|
|
47
|
+
kinds: Record<ChartKind, string>;
|
|
48
|
+
/** The column of the values, when the chart has no value label. */
|
|
49
|
+
value: string;
|
|
50
|
+
/** The column of the categories in the data table, when the chart has no x label. */
|
|
51
|
+
category: string;
|
|
52
|
+
/** The total row of a stacked chart, a pie, a funnel. */
|
|
53
|
+
total: string;
|
|
54
|
+
/** What a missing value reads as. */
|
|
55
|
+
noValue: string;
|
|
56
|
+
}
|
|
57
|
+
type ChartKind = "line" | "area" | "bar" | "pie" | "donut" | "gauge" | "sparkline" | "radar" | "heatmap" | "calendar" | "sankey" | "funnel" | "candlestick" | "treemap" | "scatter" | "map" | "globe" | "chart";
|
|
58
|
+
declare const DEFAULT_LABELS: ChartLabels;
|
|
59
|
+
/** The words an app or a chart passes: any of them, and any of the chart names. */
|
|
60
|
+
type ChartLabelsInput = Partial<Omit<ChartLabels, "kinds">> & {
|
|
61
|
+
kinds?: Partial<Record<ChartKind, string>>;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** A row of data: any object; the chart reads the fields its `x`, `y` and `series` name. */
|
|
65
|
+
type Datum = object;
|
|
66
|
+
/** A field of a row (`"month"`) or a function that reads it. */
|
|
67
|
+
type Accessor<T, V> = (keyof T & string) | ((datum: T, index: number) => V);
|
|
68
|
+
/** A Krizaka brand: its palette leads with the brand's own hue (Krizaka blue, Orazaka orange, Orochia violet). */
|
|
69
|
+
type BrandId = "krizaka" | "orazaka" | "orochia";
|
|
70
|
+
/** A BCP 47 locale (`"en-US"`, `"fr-FR"`), always explicit: server and client write the same figures. */
|
|
71
|
+
type Locale = string | readonly string[];
|
|
72
|
+
/**
|
|
73
|
+
* How a value is written, through `@krizaka/intl`:
|
|
74
|
+
* - `"number"` (default) `12,345.6`, `"integer"` `12,346`, `"compact"` `12.3K`, `"percent"` (a ratio: `0.42` → `42%`);
|
|
75
|
+
* - `{ style: "money", currency }`: the values are **integer minor units** (cents), as the ledger stores them;
|
|
76
|
+
* - `{ style: "unit", unit }`: an `Intl` unit (`"second"`, `"megabyte"`);
|
|
77
|
+
* - a function, for anything else.
|
|
78
|
+
*/
|
|
79
|
+
type ValueFormat = "number" | "integer" | "compact" | "percent" | {
|
|
80
|
+
readonly style: "money";
|
|
81
|
+
readonly currency: string;
|
|
82
|
+
readonly compact?: boolean;
|
|
83
|
+
} | {
|
|
84
|
+
readonly style: "unit";
|
|
85
|
+
readonly unit: string;
|
|
86
|
+
readonly compact?: boolean;
|
|
87
|
+
} | {
|
|
88
|
+
readonly style: "number";
|
|
89
|
+
readonly options: Intl.NumberFormatOptions;
|
|
90
|
+
} | ((value: number, locale: Locale) => string);
|
|
91
|
+
/**
|
|
92
|
+
* How a category of the x axis is written. A category that is a `Date`, an epoch or an ISO date (`"2026-04"`,
|
|
93
|
+
* `"2026-04-12"`) is a date: `"month"` (`Apr 2026`), `"day"` (`Apr 12`), `"date"` (`Apr 12, 2026`), `"time"`
|
|
94
|
+
* (`14:30`), `"datetime"`, `"year"`. `"text"` writes it as is (the default for anything that is not a date).
|
|
95
|
+
*/
|
|
96
|
+
type CategoryFormat = "text" | "year" | "month" | "day" | "date" | "time" | "datetime" | ((category: unknown, locale: Locale) => string);
|
|
97
|
+
/** A series to draw: the field holding its values and the words that name it. */
|
|
98
|
+
interface SeriesSpec<T extends Datum = Datum> {
|
|
99
|
+
/** The field (or a function) holding the series' value in each row. */
|
|
100
|
+
readonly key: Accessor<T, number | null | undefined>;
|
|
101
|
+
/** Its name: in the legend, the tooltip, the data table and the summary. */
|
|
102
|
+
readonly label: string;
|
|
103
|
+
/** A colour role instead of the next palette slot: `"accent"`, a status (`"success"`…) or a `var(--…)`. */
|
|
104
|
+
readonly color?: SeriesColor;
|
|
105
|
+
/** Draw it dashed (a forecast, a previous period). Lines and areas only. */
|
|
106
|
+
readonly dashed?: boolean;
|
|
107
|
+
}
|
|
108
|
+
/** A status or brand role a series, a threshold or a marker may wear instead of a palette slot. */
|
|
109
|
+
type Tone = "neutral" | "accent" | "success" | "warning" | "danger" | "info";
|
|
110
|
+
/** A palette slot (1–8), a tone, or any CSS colour (`var(--kz-…)` preferred). */
|
|
111
|
+
type SeriesColor = Tone | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | (string & {});
|
|
112
|
+
/** A horizontal line at a value: a goal, a payout threshold, a quota. */
|
|
113
|
+
interface Threshold {
|
|
114
|
+
readonly value: number;
|
|
115
|
+
/** What it means, written beside the line and in the summary: “Payout threshold”. */
|
|
116
|
+
readonly label: string;
|
|
117
|
+
/** Default `"neutral"`; a goal reads well in `"success"`, a limit in `"danger"`. */
|
|
118
|
+
readonly tone?: Tone;
|
|
119
|
+
}
|
|
120
|
+
/** A vertical marker at a category: an event worth pointing at (“Campaign launch”). */
|
|
121
|
+
interface Marker {
|
|
122
|
+
/** The category it marks, as in the data (`"2026-04"`). */
|
|
123
|
+
readonly x: unknown;
|
|
124
|
+
readonly label: string;
|
|
125
|
+
readonly tone?: Tone;
|
|
126
|
+
}
|
|
127
|
+
/** What a series says about itself, for the written summary. */
|
|
128
|
+
interface SeriesSummary {
|
|
129
|
+
readonly label: string;
|
|
130
|
+
readonly count: number;
|
|
131
|
+
readonly min: {
|
|
132
|
+
readonly value: number;
|
|
133
|
+
readonly category: string;
|
|
134
|
+
} | null;
|
|
135
|
+
readonly max: {
|
|
136
|
+
readonly value: number;
|
|
137
|
+
readonly category: string;
|
|
138
|
+
} | null;
|
|
139
|
+
readonly first: number | null;
|
|
140
|
+
readonly last: number | null;
|
|
141
|
+
readonly total: number;
|
|
142
|
+
/** `last / first − 1`, or null when it cannot be said (no first value, a first value of 0). */
|
|
143
|
+
readonly change: number | null;
|
|
144
|
+
readonly trend: "up" | "down" | "flat" | "none";
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** A status of a job: the field holding its count per period, its name, its tone, and its part in the success rate. */
|
|
148
|
+
interface JobStatus {
|
|
149
|
+
/** The field of the row holding the count (`"completed"`). */
|
|
150
|
+
readonly key: string;
|
|
151
|
+
/** Its name, passed translated (`"Completed"`). */
|
|
152
|
+
readonly label: string;
|
|
153
|
+
/** Its tone: the status colours (`success`, `danger`, `info`, `neutral`). */
|
|
154
|
+
readonly tone: Tone;
|
|
155
|
+
/** `succeeded` or `failed`: counted in the success rate. Absent: still running or waiting. */
|
|
156
|
+
readonly outcome?: "succeeded" | "failed";
|
|
157
|
+
}
|
|
158
|
+
/** The four statuses of an Orazaka job, in English: pass your own (translated) `statuses`. */
|
|
159
|
+
declare const DEFAULT_STATUSES: readonly JobStatus[];
|
|
160
|
+
|
|
161
|
+
/** A bid: when (an ISO date-time or a `Date`) and how much, in money minor units. */
|
|
162
|
+
interface Bid {
|
|
163
|
+
readonly at: string | Date;
|
|
164
|
+
readonly amount: number;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
type Curve = "linear" | "monotone" | "step";
|
|
168
|
+
|
|
169
|
+
type Mode = "dark" | "light";
|
|
170
|
+
|
|
171
|
+
/** The colour roles a chart reads (a subset of @krizaka/tokens/native's `Theme`; `useTheme().theme` of @krizaka/ui/native fits). */
|
|
172
|
+
type ChartTheme = {
|
|
173
|
+
readonly surface1: string;
|
|
174
|
+
readonly surface2: string;
|
|
175
|
+
readonly surface3: string;
|
|
176
|
+
readonly borderSubtle: string;
|
|
177
|
+
readonly borderDefault: string;
|
|
178
|
+
readonly textPrimary: string;
|
|
179
|
+
readonly textSecondary: string;
|
|
180
|
+
readonly textMuted: string;
|
|
181
|
+
readonly accent: string;
|
|
182
|
+
readonly success: string;
|
|
183
|
+
readonly warning: string;
|
|
184
|
+
readonly danger: string;
|
|
185
|
+
readonly info: string;
|
|
186
|
+
};
|
|
187
|
+
interface NativeChartsSettings {
|
|
188
|
+
/** The locale of every figure and date. Default `"en-US"`. */
|
|
189
|
+
locale?: Locale;
|
|
190
|
+
/** The brand whose palette leads. Default Krizaka. */
|
|
191
|
+
brand?: BrandId;
|
|
192
|
+
/** The words: the readout, the summary. */
|
|
193
|
+
labels?: ChartLabelsInput;
|
|
194
|
+
/** Dark or light. Default: the device's (pass `useTheme().scheme` of @krizaka/ui/native to follow the app). */
|
|
195
|
+
scheme?: Mode;
|
|
196
|
+
/** The app's colour roles (`useTheme().theme` of @krizaka/ui/native): a product's brand overrides apply. */
|
|
197
|
+
theme?: Partial<ChartTheme>;
|
|
198
|
+
}
|
|
199
|
+
/** Sets the locale, brand, words, scheme and theme of every chart below it. */
|
|
200
|
+
declare function ChartsProvider({ children, ...settings }: NativeChartsSettings & {
|
|
201
|
+
children: ReactNode;
|
|
202
|
+
}): react.JSX.Element;
|
|
203
|
+
interface NativeFrameProps extends NativeChartsSettings {
|
|
204
|
+
/** What the chart shows: its heading and accessible name. */
|
|
205
|
+
title: string;
|
|
206
|
+
/** Hide the heading (it stays the accessible name). */
|
|
207
|
+
hideTitle?: boolean;
|
|
208
|
+
/** The plot's height. */
|
|
209
|
+
height?: number;
|
|
210
|
+
/** The data is on its way. */
|
|
211
|
+
loading?: boolean;
|
|
212
|
+
/** Shown instead of the plot when there is nothing to draw. Default: the `empty` label. */
|
|
213
|
+
empty?: ReactNode;
|
|
214
|
+
/** The style of the chart's container (layout only: colours come from the theme). */
|
|
215
|
+
style?: ViewStyle;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface NativeCartesianProps<T extends Datum> extends NativeFrameProps {
|
|
219
|
+
/** The rows, in the order of the x axis. */
|
|
220
|
+
data: readonly T[];
|
|
221
|
+
/** The field (or function) of the category. */
|
|
222
|
+
x?: Accessor<T, unknown>;
|
|
223
|
+
/** A single series: its field. */
|
|
224
|
+
y?: Accessor<T, number | null | undefined>;
|
|
225
|
+
/** The name of the single `y` series. */
|
|
226
|
+
yLabel?: string;
|
|
227
|
+
/** The series, each with its field and name. */
|
|
228
|
+
series?: readonly SeriesSpec<T>[];
|
|
229
|
+
/** How the values are written. */
|
|
230
|
+
format?: ValueFormat;
|
|
231
|
+
/** How the categories are written. */
|
|
232
|
+
xFormat?: CategoryFormat;
|
|
233
|
+
/** Horizontal lines at a value. */
|
|
234
|
+
thresholds?: readonly Threshold[];
|
|
235
|
+
}
|
|
236
|
+
interface NativeLineChartProps<T extends Datum> extends NativeCartesianProps<T> {
|
|
237
|
+
/** `monotone` (default), `linear` or `step`. */
|
|
238
|
+
curve?: Curve;
|
|
239
|
+
}
|
|
240
|
+
/** Change over time (React Native): one line per series. */
|
|
241
|
+
declare function LineChart<T extends Datum>({ curve, ...props }: NativeLineChartProps<T>): react.JSX.Element;
|
|
242
|
+
interface NativeAreaChartProps<T extends Datum> extends NativeLineChartProps<T> {
|
|
243
|
+
/** Stack the series: the parts of a total over time. */
|
|
244
|
+
stacked?: boolean;
|
|
245
|
+
}
|
|
246
|
+
interface NativeBarChartProps<T extends Datum> extends NativeCartesianProps<T> {
|
|
247
|
+
/** Stack the series in one bar per category; default: grouped side by side. */
|
|
248
|
+
stacked?: boolean;
|
|
249
|
+
}
|
|
250
|
+
/** A volume over time (React Native): a line over a wash; `stacked` for the parts of a total. */
|
|
251
|
+
declare function AreaChart<T extends Datum>({ curve, stacked, ...props }: NativeAreaChartProps<T>): react.JSX.Element;
|
|
252
|
+
/** Amounts across categories (React Native): grouped or `stacked` bars. */
|
|
253
|
+
declare function BarChart<T extends Datum>({ stacked, ...props }: NativeBarChartProps<T>): react.JSX.Element;
|
|
254
|
+
|
|
255
|
+
interface EarningsLabels {
|
|
256
|
+
/** Under the total: `earned over {count} months`. `{count}` is the number of periods. */
|
|
257
|
+
total: string;
|
|
258
|
+
/** The change of the last period: `{change} vs the previous month`. */
|
|
259
|
+
change: string;
|
|
260
|
+
/** The gross series' name. */
|
|
261
|
+
gross: string;
|
|
262
|
+
/** The net series' name. */
|
|
263
|
+
net: string;
|
|
264
|
+
}
|
|
265
|
+
interface ThroughputLabels {
|
|
266
|
+
/** Under the total: `jobs over {count} days`. */
|
|
267
|
+
total: string;
|
|
268
|
+
/** The success rate of the finished jobs: `{rate} succeeded`. */
|
|
269
|
+
success: string;
|
|
270
|
+
}
|
|
271
|
+
interface LatencyLabels {
|
|
272
|
+
/** The median series. */
|
|
273
|
+
p50: string;
|
|
274
|
+
/** The 95th percentile series. */
|
|
275
|
+
p95: string;
|
|
276
|
+
/** The slowest p95: `slowest: {name}`. */
|
|
277
|
+
slowest: string;
|
|
278
|
+
/** How many go past the objective: `{count} over the objective`. */
|
|
279
|
+
over: string;
|
|
280
|
+
/** All within the objective. */
|
|
281
|
+
within: string;
|
|
282
|
+
}
|
|
283
|
+
interface CreditLabels {
|
|
284
|
+
/** Under the remaining amount: `left of {limit}`. */
|
|
285
|
+
remaining: string;
|
|
286
|
+
/** The used part: `{used} used ({percent})`. */
|
|
287
|
+
used: string;
|
|
288
|
+
/** The projection: `at this pace, runs out on {date}`. */
|
|
289
|
+
runsOut: string;
|
|
290
|
+
/** No use lately: it does not run out. */
|
|
291
|
+
steady: string;
|
|
292
|
+
/** The renewal: `renews on {date}`. */
|
|
293
|
+
renews: string;
|
|
294
|
+
/** The daily use sparkline's title. */
|
|
295
|
+
daily: string;
|
|
296
|
+
}
|
|
297
|
+
interface GoalLabels {
|
|
298
|
+
/** Under the amount: `raised of {goal}`. */
|
|
299
|
+
raised: string;
|
|
300
|
+
/** Reached: `goal reached`. */
|
|
301
|
+
reached: string;
|
|
302
|
+
/** The supporters: `{count} supporters`. */
|
|
303
|
+
supporters: string;
|
|
304
|
+
/** The time left: `{time} left`. */
|
|
305
|
+
left: string;
|
|
306
|
+
}
|
|
307
|
+
interface TickerLabels {
|
|
308
|
+
/** Under the price: `current bid`. */
|
|
309
|
+
current: string;
|
|
310
|
+
/** The change since the opening: `{change} since the opening ({count} bids)`. */
|
|
311
|
+
change: string;
|
|
312
|
+
/** No bid yet: `opening price`. */
|
|
313
|
+
opening: string;
|
|
314
|
+
/** The reserve line. */
|
|
315
|
+
reserve: string;
|
|
316
|
+
/** The series' name. */
|
|
317
|
+
price: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
type Base<T extends Datum> = Omit<NativeCartesianProps<T>, "y" | "yLabel" | "series" | "format" | "x" | "xFormat" | "thresholds" | "labels">;
|
|
321
|
+
interface NativeEarningsChartProps<T extends Datum> extends Base<T> {
|
|
322
|
+
/** The field (or function) of the period. Default `"month"`. */
|
|
323
|
+
x?: Accessor<T, unknown>;
|
|
324
|
+
/** The net amount of each period, in minor units. */
|
|
325
|
+
net: Accessor<T, number | null | undefined>;
|
|
326
|
+
/** The gross amount, drawn beside the net. */
|
|
327
|
+
gross?: Accessor<T, number | null | undefined>;
|
|
328
|
+
/** The ISO 4217 currency. */
|
|
329
|
+
currency: string;
|
|
330
|
+
/** How the periods are written. Default `"month"`. */
|
|
331
|
+
period?: CategoryFormat;
|
|
332
|
+
/** The payout threshold, drawn as a line. */
|
|
333
|
+
payoutThreshold?: Threshold;
|
|
334
|
+
/** The words, passed translated. */
|
|
335
|
+
labels?: Partial<EarningsLabels>;
|
|
336
|
+
}
|
|
337
|
+
/** Earnings per period in money (React Native): the total and the change first, the bars under them. */
|
|
338
|
+
declare function EarningsChart<T extends Datum>({ x, net, gross, currency, period, payoutThreshold, labels: given, title, hideTitle, data, ...props }: NativeEarningsChartProps<T>): react.JSX.Element;
|
|
339
|
+
interface NativeJobThroughputProps<T extends Datum> extends Base<T> {
|
|
340
|
+
/** The field of the period. Default `"day"`. */
|
|
341
|
+
x?: Accessor<T, unknown>;
|
|
342
|
+
/** How the periods are written. Default `"day"`. */
|
|
343
|
+
period?: CategoryFormat;
|
|
344
|
+
/** The statuses, in stacking order. Default: completed, failed, running, queued. */
|
|
345
|
+
statuses?: readonly JobStatus[];
|
|
346
|
+
/** The words, passed translated. */
|
|
347
|
+
labels?: Partial<ThroughputLabels>;
|
|
348
|
+
}
|
|
349
|
+
/** Jobs per period stacked by status (React Native): the total and the success rate first. */
|
|
350
|
+
declare function JobThroughput<T extends Datum>({ x, period, statuses, labels: given, title, hideTitle, data, ...props }: NativeJobThroughputProps<T>): react.JSX.Element;
|
|
351
|
+
interface NativeLatencyChartProps<T extends Datum> extends Base<T> {
|
|
352
|
+
/** The field naming what is measured. Default `"name"`. */
|
|
353
|
+
x?: Accessor<T, unknown>;
|
|
354
|
+
/** The median, in milliseconds. Default `"p50"`. */
|
|
355
|
+
p50?: Accessor<T, number | null | undefined>;
|
|
356
|
+
/** The 95th percentile, in milliseconds. Default `"p95"`; `null` for the median alone. */
|
|
357
|
+
p95?: Accessor<T, number | null | undefined> | null;
|
|
358
|
+
/** The service objective, in milliseconds. */
|
|
359
|
+
objective?: {
|
|
360
|
+
readonly value: number;
|
|
361
|
+
readonly label: string;
|
|
362
|
+
};
|
|
363
|
+
/** The words, passed translated. */
|
|
364
|
+
labels?: Partial<LatencyLabels>;
|
|
365
|
+
}
|
|
366
|
+
/** Median and p95 latency per item (React Native, vertical bars): the slowest p95 first. */
|
|
367
|
+
declare function LatencyChart<T extends Datum>({ x, p50, p95, objective, labels: given, title, hideTitle, data, ...props }: NativeLatencyChartProps<T>): react.JSX.Element;
|
|
368
|
+
interface NativeCreditUsageProps extends Omit<NativeChartsSettings, "labels"> {
|
|
369
|
+
/** What the allowance is: the heading and the meter's name. */
|
|
370
|
+
title: string;
|
|
371
|
+
/** Hide the heading (it stays the accessible name). */
|
|
372
|
+
hideTitle?: boolean;
|
|
373
|
+
/** How much is used. */
|
|
374
|
+
used: number;
|
|
375
|
+
/** The allowance. */
|
|
376
|
+
limit: number;
|
|
377
|
+
/** How the amounts are written. Default `"integer"`. */
|
|
378
|
+
format?: ValueFormat;
|
|
379
|
+
/** The use of each recent day, oldest first. */
|
|
380
|
+
daily?: readonly (number | null)[];
|
|
381
|
+
/** When the allowance renews. */
|
|
382
|
+
renewsAt?: string | Date;
|
|
383
|
+
/** Today, for the projection. Default: now. */
|
|
384
|
+
now?: Date;
|
|
385
|
+
/** The shares where the meter turns to warning, then danger. Default `[0.8, 0.95]`. */
|
|
386
|
+
levels?: readonly [number, number];
|
|
387
|
+
/** The words, passed translated. */
|
|
388
|
+
labels?: Partial<CreditLabels>;
|
|
389
|
+
/** The style of the container (layout only). */
|
|
390
|
+
style?: ViewStyle;
|
|
391
|
+
}
|
|
392
|
+
/** What is left of an allowance (React Native): the remaining amount, a meter in tones, the use per day, the run-out date. */
|
|
393
|
+
declare function CreditUsage({ title, hideTitle, used, limit, format, daily, renewsAt, now, levels, labels: given, style, ...settings }: NativeCreditUsageProps): react.JSX.Element;
|
|
394
|
+
interface NativeGoalProgressProps extends Omit<NativeFrameProps, "loading" | "empty" | "labels"> {
|
|
395
|
+
/** The amount raised, in minor units. */
|
|
396
|
+
raised: number;
|
|
397
|
+
/** The goal, in minor units. */
|
|
398
|
+
goal: number;
|
|
399
|
+
/** The ISO 4217 currency. */
|
|
400
|
+
currency: string;
|
|
401
|
+
/** How many people chipped in. */
|
|
402
|
+
supporters?: number;
|
|
403
|
+
/** The time left, written by the app (“2 days”). */
|
|
404
|
+
timeLeft?: string;
|
|
405
|
+
/** The words, passed translated. */
|
|
406
|
+
labels?: Partial<GoalLabels>;
|
|
407
|
+
}
|
|
408
|
+
/** A pot towards its goal, in money (React Native): the arc fills, the words say how much of what. */
|
|
409
|
+
declare function GoalProgress({ raised, goal, currency, supporters, timeLeft, labels: given, ...props }: NativeGoalProgressProps): react.JSX.Element;
|
|
410
|
+
interface NativePriceTickerProps extends Omit<NativeFrameProps, "loading" | "labels"> {
|
|
411
|
+
/** The bids, in any order. */
|
|
412
|
+
bids: readonly Bid[];
|
|
413
|
+
/** The opening price, in minor units. */
|
|
414
|
+
opening: number;
|
|
415
|
+
/** When the auction opened. */
|
|
416
|
+
openedAt?: string | Date;
|
|
417
|
+
/** The ISO 4217 currency. */
|
|
418
|
+
currency: string;
|
|
419
|
+
/** The reserve price, drawn as a line until it is met. */
|
|
420
|
+
reserve?: number;
|
|
421
|
+
/** How the times are written. Default `"time"`. */
|
|
422
|
+
timeFormat?: CategoryFormat;
|
|
423
|
+
/** The words, passed translated. */
|
|
424
|
+
labels?: Partial<TickerLabels>;
|
|
425
|
+
}
|
|
426
|
+
/** A live auction's price (React Native): the current bid in large, the change since the opening, the steps of the bids. */
|
|
427
|
+
declare function PriceTicker({ bids, opening, openedAt, currency, reserve, timeFormat, labels: given, title, hideTitle, ...props }: NativePriceTickerProps): react.JSX.Element;
|
|
428
|
+
|
|
429
|
+
interface NativePieChartProps<T extends Datum> extends NativeFrameProps {
|
|
430
|
+
/** One row per part. */
|
|
431
|
+
data: readonly T[];
|
|
432
|
+
/** The field naming the part. */
|
|
433
|
+
label: Accessor<T, string>;
|
|
434
|
+
/** The field of its amount. */
|
|
435
|
+
value: Accessor<T, number>;
|
|
436
|
+
/** How the amounts are written. */
|
|
437
|
+
format?: ValueFormat;
|
|
438
|
+
/** A ring with the total in its hole. */
|
|
439
|
+
donut?: boolean;
|
|
440
|
+
/** The words under the total of a donut. */
|
|
441
|
+
centerLabel?: string;
|
|
442
|
+
/** At most this many slices; the rest fold into `otherLabel`. Default 6. */
|
|
443
|
+
maxSlices?: number;
|
|
444
|
+
/** The name of the folded slice. Default “Other”. */
|
|
445
|
+
otherLabel?: string;
|
|
446
|
+
}
|
|
447
|
+
/** Part of a whole (React Native). */
|
|
448
|
+
declare function PieChart<T extends Datum>(props: NativePieChartProps<T>): react.JSX.Element;
|
|
449
|
+
/** A pie with a hole (React Native). */
|
|
450
|
+
declare function DonutChart<T extends Datum>(props: Omit<NativePieChartProps<T>, "donut">): react.JSX.Element;
|
|
451
|
+
interface NativeGaugeProps extends NativeFrameProps {
|
|
452
|
+
/** The value. */
|
|
453
|
+
value: number;
|
|
454
|
+
/** The start of the range. Default 0. */
|
|
455
|
+
min?: number;
|
|
456
|
+
/** The end of the range. Default 100. */
|
|
457
|
+
max?: number;
|
|
458
|
+
/** How the value is written. */
|
|
459
|
+
format?: ValueFormat;
|
|
460
|
+
/** The words under the value. */
|
|
461
|
+
caption?: string;
|
|
462
|
+
/** A tick on the arc: the objective. */
|
|
463
|
+
target?: Threshold;
|
|
464
|
+
/** Zones: the value takes the tone of the zone it is in. */
|
|
465
|
+
zones?: readonly {
|
|
466
|
+
readonly to: number;
|
|
467
|
+
readonly tone: Tone;
|
|
468
|
+
readonly label?: string;
|
|
469
|
+
}[];
|
|
470
|
+
/** The tone of the value without zones. Default `"accent"`. */
|
|
471
|
+
tone?: Tone;
|
|
472
|
+
}
|
|
473
|
+
/** One figure against its range (React Native). */
|
|
474
|
+
declare function Gauge(props: NativeGaugeProps): react.JSX.Element;
|
|
475
|
+
interface NativeSparklineProps extends Omit<NativeFrameProps, "hideTitle"> {
|
|
476
|
+
/** The values, oldest first (`null` for a gap). */
|
|
477
|
+
data: readonly (number | null)[];
|
|
478
|
+
/** The labels of the values (dates), for the summary. */
|
|
479
|
+
categories?: readonly unknown[];
|
|
480
|
+
/** `line` (default), `area` or `bar`. */
|
|
481
|
+
variant?: "line" | "area" | "bar";
|
|
482
|
+
/** A palette slot, a tone or a colour. */
|
|
483
|
+
color?: SeriesColor;
|
|
484
|
+
/** Colour by the trend (success up, danger down; `"inverse"` for costs). */
|
|
485
|
+
trendTone?: boolean | "inverse";
|
|
486
|
+
/** How the values are written in the summary. */
|
|
487
|
+
format?: ValueFormat;
|
|
488
|
+
/** A fixed width. Default: the container's. */
|
|
489
|
+
width?: number;
|
|
490
|
+
}
|
|
491
|
+
/** A word-sized trend (React Native). */
|
|
492
|
+
declare function Sparkline(props: NativeSparklineProps): react.JSX.Element;
|
|
493
|
+
|
|
494
|
+
export { type Accessor, AreaChart, BarChart, type Bid, type BrandId, type CategoryFormat, type ChartLabels, type ChartLabelsInput, type ChartTheme, ChartsProvider, CreditUsage, DEFAULT_LABELS, DEFAULT_STATUSES, type Datum, DonutChart, EarningsChart, Gauge, GoalProgress, type JobStatus, JobThroughput, LatencyChart, LineChart, type Locale, type Marker, type NativeAreaChartProps, type NativeBarChartProps, type NativeCartesianProps, type NativeChartsSettings, type NativeCreditUsageProps, type NativeEarningsChartProps, type NativeFrameProps, type NativeGaugeProps, type NativeGoalProgressProps, type NativeJobThroughputProps, type NativeLatencyChartProps, type NativeLineChartProps, type NativePieChartProps, type NativePriceTickerProps, type NativeSparklineProps, PieChart, PriceTicker, type SeriesColor, type SeriesSpec, type SeriesSummary, Sparkline, type Threshold, type Tone, type ValueFormat };
|