@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,600 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gauge",
|
|
3
|
+
"package": "@krizaka/charts",
|
|
4
|
+
"type": "chart",
|
|
5
|
+
"title": "Gauge",
|
|
6
|
+
"summary": "One value against its range on a 240° arc: zones that change its tone, a target tick, the value written in the middle.",
|
|
7
|
+
"description": "One value against its range on a 240° arc: zones that change its tone, a target tick, the value written in the middle.",
|
|
8
|
+
"status": "beta",
|
|
9
|
+
"category": "charts",
|
|
10
|
+
"platforms": "both",
|
|
11
|
+
"engine": "svg",
|
|
12
|
+
"tier": "core",
|
|
13
|
+
"whenToUse": [
|
|
14
|
+
"A quota: credits used of a plan, with a warning zone before the limit.",
|
|
15
|
+
"Progress towards a goal with a target: a challenge's escrow against its objective.",
|
|
16
|
+
"A load or a score that has a known range."
|
|
17
|
+
],
|
|
18
|
+
"whenNotToUse": [
|
|
19
|
+
{
|
|
20
|
+
"when": "Several values side by side (a gauge per item takes room and compares badly).",
|
|
21
|
+
"use": "bar-chart"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"when": "A value without a meaningful range.",
|
|
25
|
+
"use": "sparkline"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"bestPractices": [
|
|
29
|
+
"Say the range in `caption` (“of 50,000 credits”): the arc alone is not a number.",
|
|
30
|
+
"Give zones their meaning in `label` (“Over quota”): it is read in the summary.",
|
|
31
|
+
"Use one gauge per screen at most; a row of figures reads better as stats."
|
|
32
|
+
],
|
|
33
|
+
"accessibility": {
|
|
34
|
+
"keyboard": [],
|
|
35
|
+
"notes": [
|
|
36
|
+
"The gauge is a `meter`: its name is the title, its value, range and text (value and caption) are exposed.",
|
|
37
|
+
"The zone's tone is never the only signal: its label is in the summary.",
|
|
38
|
+
"The arc fills once, when the gauge comes on screen, and never under reduced motion."
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"related": [
|
|
42
|
+
"pie-chart",
|
|
43
|
+
"sparkline",
|
|
44
|
+
"bar-chart"
|
|
45
|
+
],
|
|
46
|
+
"source": "packages/charts/src/meta/gauge.ts",
|
|
47
|
+
"install": {
|
|
48
|
+
"web": "npm install @krizaka/charts",
|
|
49
|
+
"native": "npx expo install react-native-svg\nnpm install @krizaka/charts"
|
|
50
|
+
},
|
|
51
|
+
"web": {
|
|
52
|
+
"entry": "@krizaka/charts/gauge",
|
|
53
|
+
"import": "import { Gauge } from \"@krizaka/charts/gauge\";",
|
|
54
|
+
"props": [
|
|
55
|
+
{
|
|
56
|
+
"component": "Gauge",
|
|
57
|
+
"description": "One figure against its range — credits used of a plan, a challenge's progress, a load.",
|
|
58
|
+
"props": [
|
|
59
|
+
{
|
|
60
|
+
"name": "title",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"default": null,
|
|
63
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
|
|
64
|
+
"required": true
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "value",
|
|
68
|
+
"type": "number",
|
|
69
|
+
"default": null,
|
|
70
|
+
"description": "The value.",
|
|
71
|
+
"required": true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "brand",
|
|
75
|
+
"type": "BrandId",
|
|
76
|
+
"default": null,
|
|
77
|
+
"description": "The brand whose palette the charts use. Without it, a chart follows a `.brand-<id>` ancestor, else Krizaka. Set it\nwhen the app loads a brand stylesheet on `:root` (`@krizaka/tokens/brands/orazaka.css`).",
|
|
78
|
+
"required": false
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "caption",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"default": null,
|
|
84
|
+
"description": "The words under the value (“of 50 000 credits”).",
|
|
85
|
+
"required": false
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "className",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"default": null,
|
|
91
|
+
"description": "A class on the figure (layout: margins, grid placement).",
|
|
92
|
+
"required": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "description",
|
|
96
|
+
"type": "ReactNode",
|
|
97
|
+
"default": null,
|
|
98
|
+
"description": "A sentence under the title: the period, the unit, the source.",
|
|
99
|
+
"required": false
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "empty",
|
|
103
|
+
"type": "ReactNode",
|
|
104
|
+
"default": null,
|
|
105
|
+
"description": "What to show when there is nothing to draw (default: the `empty` label). An `EmptyState` of\n@krizaka /ui fits.",
|
|
106
|
+
"required": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "error",
|
|
110
|
+
"type": "ReactNode",
|
|
111
|
+
"default": null,
|
|
112
|
+
"description": "The data could not be loaded: `true` says the default words, a node says yours (a retry button…).",
|
|
113
|
+
"required": false
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "format",
|
|
117
|
+
"type": "ValueFormat",
|
|
118
|
+
"default": null,
|
|
119
|
+
"description": "How the value and the range are written.",
|
|
120
|
+
"required": false
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "height",
|
|
124
|
+
"type": "number",
|
|
125
|
+
"default": null,
|
|
126
|
+
"description": "The height of the plot in pixels. Default 280 (a sparkline: 32).",
|
|
127
|
+
"required": false
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "hideTitle",
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"default": null,
|
|
133
|
+
"description": "Visually hide the title (it stays the chart's accessible name): a card that already has its heading.",
|
|
134
|
+
"required": false
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "id",
|
|
138
|
+
"type": "string",
|
|
139
|
+
"default": null,
|
|
140
|
+
"description": "The id of the figure.",
|
|
141
|
+
"required": false
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "labels",
|
|
145
|
+
"type": "ChartLabelsInput",
|
|
146
|
+
"default": null,
|
|
147
|
+
"description": "The words, translated: the buttons, the states, the written summary.",
|
|
148
|
+
"required": false
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "live",
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"default": null,
|
|
154
|
+
"description": "Streaming data (a job queue, an auction): no entrance on updates, no announcement of every new point.",
|
|
155
|
+
"required": false
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "loading",
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"default": null,
|
|
161
|
+
"description": "The data is on its way: a skeleton of the chart, announced once.",
|
|
162
|
+
"required": false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "locale",
|
|
166
|
+
"type": "Locale",
|
|
167
|
+
"default": null,
|
|
168
|
+
"description": "The locale of every figure and date (`\"fr-FR\"`). Default `\"en-US\"`.",
|
|
169
|
+
"required": false
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "max",
|
|
173
|
+
"type": "number",
|
|
174
|
+
"default": null,
|
|
175
|
+
"description": "The end of the range. Default 100.",
|
|
176
|
+
"required": false
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "min",
|
|
180
|
+
"type": "number",
|
|
181
|
+
"default": null,
|
|
182
|
+
"description": "The start of the range. Default 0.",
|
|
183
|
+
"required": false
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "style",
|
|
187
|
+
"type": "CSSProperties",
|
|
188
|
+
"default": null,
|
|
189
|
+
"description": "Inline style on the figure (layout only: colours come from the tokens).",
|
|
190
|
+
"required": false
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "summary",
|
|
194
|
+
"type": "\"hidden\" | \"visible\"",
|
|
195
|
+
"default": null,
|
|
196
|
+
"description": "The written summary: read by screen readers only (`\"hidden\"`, default), or shown under the chart (`\"visible\"`).",
|
|
197
|
+
"required": false
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "summaryText",
|
|
201
|
+
"type": "string",
|
|
202
|
+
"default": null,
|
|
203
|
+
"description": "Your own summary instead of the generated one (still read first by screen readers).",
|
|
204
|
+
"required": false
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "target",
|
|
208
|
+
"type": "Threshold",
|
|
209
|
+
"default": null,
|
|
210
|
+
"description": "A tick on the arc: the objective.",
|
|
211
|
+
"required": false
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "tone",
|
|
215
|
+
"type": "Tone",
|
|
216
|
+
"default": null,
|
|
217
|
+
"description": "The tone of the value without zones. Default `\"accent\"`.",
|
|
218
|
+
"required": false
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "zones",
|
|
222
|
+
"type": "readonly GaugeZone[]",
|
|
223
|
+
"default": null,
|
|
224
|
+
"description": "Coloured zones along the arc: the value takes the tone of the zone it is in.",
|
|
225
|
+
"required": false
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"examples": [
|
|
231
|
+
{
|
|
232
|
+
"name": "credits-quota",
|
|
233
|
+
"title": "Quota",
|
|
234
|
+
"description": "Credits used of a plan: green, then warning past 80 %, danger past the plan.",
|
|
235
|
+
"path": "examples/gauge/credits-quota.tsx",
|
|
236
|
+
"module": "@krizaka/charts/registry/examples/gauge/credits-quota",
|
|
237
|
+
"code": "import { Gauge } from \"@krizaka/charts/gauge\";\n\nexport default function CreditsQuota() {\n return (\n <Gauge\n title=\"Credits used this month\"\n value={41_250}\n max={50_000}\n format=\"compact\"\n caption=\"of 50K credits\"\n zones={[\n { to: 40_000, tone: \"success\", label: \"Within plan\" },\n { to: 47_500, tone: \"warning\", label: \"Nearing the limit\" },\n { to: 50_000, tone: \"danger\", label: \"At the limit\" },\n ]}\n style={{ maxWidth: 320 }}\n />\n );\n}\n"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "challenge-goal",
|
|
241
|
+
"title": "Goal",
|
|
242
|
+
"description": "A challenge's escrowed amount against its objective, a target tick on the arc.",
|
|
243
|
+
"path": "examples/gauge/challenge-goal.tsx",
|
|
244
|
+
"module": "@krizaka/charts/registry/examples/gauge/challenge-goal",
|
|
245
|
+
"code": "import { Gauge } from \"@krizaka/charts/gauge\";\n\n// A challenge's escrow, in cents, against its objective.\nexport default function ChallengeGoal() {\n return (\n <Gauge\n title=\"“Shoot the sunrise from the Mont-Royal”\"\n description=\"Challenge in escrow · 6 days left\"\n value={186_000}\n max={300_000}\n format={{ style: \"money\", currency: \"CAD\" }}\n caption=\"raised\"\n target={{ value: 250_000, label: \"Objective\" }}\n tone=\"accent\"\n style={{ maxWidth: 320 }}\n />\n );\n}\n"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"native": {
|
|
250
|
+
"entry": "@krizaka/charts/native",
|
|
251
|
+
"import": "import { Gauge } from \"@krizaka/charts/native\";",
|
|
252
|
+
"differences": [
|
|
253
|
+
"No zone bands around the arc: the value takes the zone's tone.",
|
|
254
|
+
"The summary is the accessible label (no meter role in React Native)."
|
|
255
|
+
],
|
|
256
|
+
"props": [
|
|
257
|
+
{
|
|
258
|
+
"component": "Gauge",
|
|
259
|
+
"description": "One figure against its range (React Native).",
|
|
260
|
+
"props": [
|
|
261
|
+
{
|
|
262
|
+
"name": "title",
|
|
263
|
+
"type": "string",
|
|
264
|
+
"default": null,
|
|
265
|
+
"description": "What the chart shows: its heading and accessible name.",
|
|
266
|
+
"required": true
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "value",
|
|
270
|
+
"type": "number",
|
|
271
|
+
"default": null,
|
|
272
|
+
"description": "The value.",
|
|
273
|
+
"required": true
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "brand",
|
|
277
|
+
"type": "BrandId",
|
|
278
|
+
"default": null,
|
|
279
|
+
"description": "The brand whose palette leads. Default Krizaka.",
|
|
280
|
+
"required": false
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "caption",
|
|
284
|
+
"type": "string",
|
|
285
|
+
"default": null,
|
|
286
|
+
"description": "The words under the value.",
|
|
287
|
+
"required": false
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "empty",
|
|
291
|
+
"type": "ReactNode",
|
|
292
|
+
"default": null,
|
|
293
|
+
"description": "Shown instead of the plot when there is nothing to draw. Default: the `empty` label.",
|
|
294
|
+
"required": false
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "format",
|
|
298
|
+
"type": "ValueFormat",
|
|
299
|
+
"default": null,
|
|
300
|
+
"description": "How the value is written.",
|
|
301
|
+
"required": false
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "height",
|
|
305
|
+
"type": "number",
|
|
306
|
+
"default": null,
|
|
307
|
+
"description": "The plot's height.",
|
|
308
|
+
"required": false
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "hideTitle",
|
|
312
|
+
"type": "boolean",
|
|
313
|
+
"default": null,
|
|
314
|
+
"description": "Hide the heading (it stays the accessible name).",
|
|
315
|
+
"required": false
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "labels",
|
|
319
|
+
"type": "ChartLabelsInput",
|
|
320
|
+
"default": null,
|
|
321
|
+
"description": "The words: the readout, the summary.",
|
|
322
|
+
"required": false
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "loading",
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"default": null,
|
|
328
|
+
"description": "The data is on its way.",
|
|
329
|
+
"required": false
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "locale",
|
|
333
|
+
"type": "Locale",
|
|
334
|
+
"default": null,
|
|
335
|
+
"description": "The locale of every figure and date. Default `\"en-US\"`.",
|
|
336
|
+
"required": false
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"name": "max",
|
|
340
|
+
"type": "number",
|
|
341
|
+
"default": null,
|
|
342
|
+
"description": "The end of the range. Default 100.",
|
|
343
|
+
"required": false
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "min",
|
|
347
|
+
"type": "number",
|
|
348
|
+
"default": null,
|
|
349
|
+
"description": "The start of the range. Default 0.",
|
|
350
|
+
"required": false
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "scheme",
|
|
354
|
+
"type": "Mode",
|
|
355
|
+
"default": null,
|
|
356
|
+
"description": "Dark or light. Default: the device's (pass `useTheme().scheme` of\n@krizaka /ui/native to follow the app).",
|
|
357
|
+
"required": false
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "style",
|
|
361
|
+
"type": "ViewStyle",
|
|
362
|
+
"default": null,
|
|
363
|
+
"description": "The style of the chart's container (layout only: colours come from the theme).",
|
|
364
|
+
"required": false
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "target",
|
|
368
|
+
"type": "Threshold",
|
|
369
|
+
"default": null,
|
|
370
|
+
"description": "A tick on the arc: the objective.",
|
|
371
|
+
"required": false
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "theme",
|
|
375
|
+
"type": "Partial<ChartTheme>",
|
|
376
|
+
"default": null,
|
|
377
|
+
"description": "The app's colour roles (`useTheme().theme` of\n@krizaka /ui/native): a product's brand overrides apply.",
|
|
378
|
+
"required": false
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "tone",
|
|
382
|
+
"type": "Tone",
|
|
383
|
+
"default": null,
|
|
384
|
+
"description": "The tone of the value without zones. Default `\"accent\"`.",
|
|
385
|
+
"required": false
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "zones",
|
|
389
|
+
"type": "readonly { readonly to: number; readonly tone: Tone; readonly label?: string; }[]",
|
|
390
|
+
"default": null,
|
|
391
|
+
"description": "Zones: the value takes the tone of the zone it is in.",
|
|
392
|
+
"required": false
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
"examples": [
|
|
398
|
+
{
|
|
399
|
+
"name": "credits-quota",
|
|
400
|
+
"title": "Quota",
|
|
401
|
+
"description": "Credits used of a plan.",
|
|
402
|
+
"path": "examples/gauge/native/credits-quota.tsx",
|
|
403
|
+
"module": "@krizaka/charts/registry/examples/gauge/native/credits-quota",
|
|
404
|
+
"code": "import { Gauge } from \"@krizaka/charts/native\";\n\nexport default function CreditsQuota() {\n return (\n <Gauge\n title=\"Credits used this month\"\n value={41_250}\n max={50_000}\n format=\"compact\"\n caption=\"of 50K credits\"\n zones={[\n { to: 40_000, tone: \"success\" },\n { to: 47_500, tone: \"warning\" },\n { to: 50_000, tone: \"danger\" },\n ]}\n />\n );\n}\n",
|
|
405
|
+
"screenshots": {
|
|
406
|
+
"dark": "examples/gauge/native/credits-quota.dark.png",
|
|
407
|
+
"light": "examples/gauge/native/credits-quota.light.png"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
"files": [],
|
|
413
|
+
"dependencies": [
|
|
414
|
+
"@krizaka/intl@workspace:^",
|
|
415
|
+
"d3-geo@^3.1.1",
|
|
416
|
+
"echarts@^6.1.0",
|
|
417
|
+
"topojson-client@^3.1.0"
|
|
418
|
+
],
|
|
419
|
+
"registryDependencies": [],
|
|
420
|
+
"demo": {
|
|
421
|
+
"path": "examples/gauge/credits-quota.tsx",
|
|
422
|
+
"content": "import { Gauge } from \"@krizaka/charts/gauge\";\n\nexport default function CreditsQuota() {\n return (\n <Gauge\n title=\"Credits used this month\"\n value={41_250}\n max={50_000}\n format=\"compact\"\n caption=\"of 50K credits\"\n zones={[\n { to: 40_000, tone: \"success\", label: \"Within plan\" },\n { to: 47_500, tone: \"warning\", label: \"Nearing the limit\" },\n { to: 50_000, tone: \"danger\", label: \"At the limit\" },\n ]}\n style={{ maxWidth: 320 }}\n />\n );\n}\n"
|
|
423
|
+
},
|
|
424
|
+
"props": [
|
|
425
|
+
{
|
|
426
|
+
"component": "Gauge",
|
|
427
|
+
"description": "One figure against its range — credits used of a plan, a challenge's progress, a load.",
|
|
428
|
+
"props": [
|
|
429
|
+
{
|
|
430
|
+
"name": "title",
|
|
431
|
+
"type": "string",
|
|
432
|
+
"default": null,
|
|
433
|
+
"description": "What the chart shows, in a few words: its accessible name, and its heading unless `hideTitle`.",
|
|
434
|
+
"required": true
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "value",
|
|
438
|
+
"type": "number",
|
|
439
|
+
"default": null,
|
|
440
|
+
"description": "The value.",
|
|
441
|
+
"required": true
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "brand",
|
|
445
|
+
"type": "BrandId",
|
|
446
|
+
"default": null,
|
|
447
|
+
"description": "The brand whose palette the charts use. Without it, a chart follows a `.brand-<id>` ancestor, else Krizaka. Set it\nwhen the app loads a brand stylesheet on `:root` (`@krizaka/tokens/brands/orazaka.css`).",
|
|
448
|
+
"required": false
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "caption",
|
|
452
|
+
"type": "string",
|
|
453
|
+
"default": null,
|
|
454
|
+
"description": "The words under the value (“of 50 000 credits”).",
|
|
455
|
+
"required": false
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "className",
|
|
459
|
+
"type": "string",
|
|
460
|
+
"default": null,
|
|
461
|
+
"description": "A class on the figure (layout: margins, grid placement).",
|
|
462
|
+
"required": false
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "description",
|
|
466
|
+
"type": "ReactNode",
|
|
467
|
+
"default": null,
|
|
468
|
+
"description": "A sentence under the title: the period, the unit, the source.",
|
|
469
|
+
"required": false
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "empty",
|
|
473
|
+
"type": "ReactNode",
|
|
474
|
+
"default": null,
|
|
475
|
+
"description": "What to show when there is nothing to draw (default: the `empty` label). An `EmptyState` of\n@krizaka /ui fits.",
|
|
476
|
+
"required": false
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "error",
|
|
480
|
+
"type": "ReactNode",
|
|
481
|
+
"default": null,
|
|
482
|
+
"description": "The data could not be loaded: `true` says the default words, a node says yours (a retry button…).",
|
|
483
|
+
"required": false
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "format",
|
|
487
|
+
"type": "ValueFormat",
|
|
488
|
+
"default": null,
|
|
489
|
+
"description": "How the value and the range are written.",
|
|
490
|
+
"required": false
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "height",
|
|
494
|
+
"type": "number",
|
|
495
|
+
"default": null,
|
|
496
|
+
"description": "The height of the plot in pixels. Default 280 (a sparkline: 32).",
|
|
497
|
+
"required": false
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "hideTitle",
|
|
501
|
+
"type": "boolean",
|
|
502
|
+
"default": null,
|
|
503
|
+
"description": "Visually hide the title (it stays the chart's accessible name): a card that already has its heading.",
|
|
504
|
+
"required": false
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "id",
|
|
508
|
+
"type": "string",
|
|
509
|
+
"default": null,
|
|
510
|
+
"description": "The id of the figure.",
|
|
511
|
+
"required": false
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "labels",
|
|
515
|
+
"type": "ChartLabelsInput",
|
|
516
|
+
"default": null,
|
|
517
|
+
"description": "The words, translated: the buttons, the states, the written summary.",
|
|
518
|
+
"required": false
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "live",
|
|
522
|
+
"type": "boolean",
|
|
523
|
+
"default": null,
|
|
524
|
+
"description": "Streaming data (a job queue, an auction): no entrance on updates, no announcement of every new point.",
|
|
525
|
+
"required": false
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"name": "loading",
|
|
529
|
+
"type": "boolean",
|
|
530
|
+
"default": null,
|
|
531
|
+
"description": "The data is on its way: a skeleton of the chart, announced once.",
|
|
532
|
+
"required": false
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"name": "locale",
|
|
536
|
+
"type": "Locale",
|
|
537
|
+
"default": null,
|
|
538
|
+
"description": "The locale of every figure and date (`\"fr-FR\"`). Default `\"en-US\"`.",
|
|
539
|
+
"required": false
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "max",
|
|
543
|
+
"type": "number",
|
|
544
|
+
"default": null,
|
|
545
|
+
"description": "The end of the range. Default 100.",
|
|
546
|
+
"required": false
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "min",
|
|
550
|
+
"type": "number",
|
|
551
|
+
"default": null,
|
|
552
|
+
"description": "The start of the range. Default 0.",
|
|
553
|
+
"required": false
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "style",
|
|
557
|
+
"type": "CSSProperties",
|
|
558
|
+
"default": null,
|
|
559
|
+
"description": "Inline style on the figure (layout only: colours come from the tokens).",
|
|
560
|
+
"required": false
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"name": "summary",
|
|
564
|
+
"type": "\"hidden\" | \"visible\"",
|
|
565
|
+
"default": null,
|
|
566
|
+
"description": "The written summary: read by screen readers only (`\"hidden\"`, default), or shown under the chart (`\"visible\"`).",
|
|
567
|
+
"required": false
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"name": "summaryText",
|
|
571
|
+
"type": "string",
|
|
572
|
+
"default": null,
|
|
573
|
+
"description": "Your own summary instead of the generated one (still read first by screen readers).",
|
|
574
|
+
"required": false
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "target",
|
|
578
|
+
"type": "Threshold",
|
|
579
|
+
"default": null,
|
|
580
|
+
"description": "A tick on the arc: the objective.",
|
|
581
|
+
"required": false
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "tone",
|
|
585
|
+
"type": "Tone",
|
|
586
|
+
"default": null,
|
|
587
|
+
"description": "The tone of the value without zones. Default `\"accent\"`.",
|
|
588
|
+
"required": false
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "zones",
|
|
592
|
+
"type": "readonly GaugeZone[]",
|
|
593
|
+
"default": null,
|
|
594
|
+
"description": "Coloured zones along the arc: the value takes the tone of the zone it is in.",
|
|
595
|
+
"required": false
|
|
596
|
+
}
|
|
597
|
+
]
|
|
598
|
+
}
|
|
599
|
+
]
|
|
600
|
+
}
|