@krizaka/charts 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +47 -2
- package/dist/bar.d.ts +17 -0
- package/dist/bar.js +16 -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-6FINSUOS.js +49 -0
- package/dist/chunk-6FINSUOS.js.map +1 -0
- package/dist/chunk-7CSAGFBW.js +166 -0
- package/dist/chunk-7CSAGFBW.js.map +1 -0
- package/dist/chunk-7TIFCK5E.js +103 -0
- package/dist/chunk-7TIFCK5E.js.map +1 -0
- package/dist/chunk-AHQXJSAQ.js +38 -0
- package/dist/chunk-AHQXJSAQ.js.map +1 -0
- package/dist/chunk-ANUCSRUN.js +43 -0
- package/dist/chunk-ANUCSRUN.js.map +1 -0
- package/dist/chunk-BISL7DYW.js +66 -0
- package/dist/chunk-BISL7DYW.js.map +1 -0
- package/dist/chunk-BZ5CQFPH.js +19 -0
- package/dist/chunk-BZ5CQFPH.js.map +1 -0
- package/dist/chunk-DWJPPEMC.js +455 -0
- package/dist/chunk-DWJPPEMC.js.map +1 -0
- package/dist/chunk-DZB6HEVO.js +73 -0
- package/dist/chunk-DZB6HEVO.js.map +1 -0
- package/dist/chunk-EK3Z647J.js +133 -0
- package/dist/chunk-EK3Z647J.js.map +1 -0
- package/dist/chunk-I5QUZVU2.js +234 -0
- package/dist/chunk-I5QUZVU2.js.map +1 -0
- package/dist/chunk-OB5EFDDH.js +118 -0
- package/dist/chunk-OB5EFDDH.js.map +1 -0
- package/dist/chunk-OER6ETT4.js +155 -0
- package/dist/chunk-OER6ETT4.js.map +1 -0
- package/dist/chunk-PTSB3H5Q.js +205 -0
- package/dist/chunk-PTSB3H5Q.js.map +1 -0
- package/dist/chunk-TPJDOB7R.js +15 -0
- package/dist/chunk-TPJDOB7R.js.map +1 -0
- package/dist/chunk-UNK4MJVG.js +378 -0
- package/dist/chunk-UNK4MJVG.js.map +1 -0
- package/dist/chunk-VKO2OYYM.js +88 -0
- package/dist/chunk-VKO2OYYM.js.map +1 -0
- package/dist/chunk-VKTZD7UT.js +107 -0
- package/dist/chunk-VKTZD7UT.js.map +1 -0
- package/dist/chunk-W5FX4TU3.js +102 -0
- package/dist/chunk-W5FX4TU3.js.map +1 -0
- package/dist/chunk-WBH2QU77.js +178 -0
- package/dist/chunk-WBH2QU77.js.map +1 -0
- package/dist/chunk-WIRCIOLH.js +145 -0
- package/dist/chunk-WIRCIOLH.js.map +1 -0
- package/dist/chunk-XAJ3KCC4.js +116 -0
- package/dist/chunk-XAJ3KCC4.js.map +1 -0
- package/dist/chunk-XC6BQ3RN.js +92 -0
- package/dist/chunk-XC6BQ3RN.js.map +1 -0
- package/dist/chunk-XLLYNNC6.js +89 -0
- package/dist/chunk-XLLYNNC6.js.map +1 -0
- package/dist/chunk-XR4ZJDOV.js +15 -0
- package/dist/chunk-XR4ZJDOV.js.map +1 -0
- package/dist/context-BgYUymEO.d.ts +163 -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 +12 -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/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 +22 -0
- package/dist/index.js +101 -0
- package/dist/index.js.map +1 -0
- package/dist/line.d.ts +25 -0
- package/dist/line.js +18 -0
- package/dist/line.js.map +1 -0
- package/dist/native.d.ts +300 -0
- package/dist/native.js +875 -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 +15 -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/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 +518 -3
- package/registry/area-chart.json +784 -0
- package/registry/bar-chart.json +783 -0
- package/registry/calendar-heatmap.json +459 -0
- package/registry/candlestick.json +552 -0
- package/registry/chart.json +440 -0
- package/registry/charts-provider.json +190 -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/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/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/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/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 +486 -0
- package/registry/gauge.json +599 -0
- package/registry/geo-map.json +483 -0
- package/registry/globe.json +468 -0
- package/registry/heatmap.json +530 -0
- package/registry/index.json +420 -0
- package/registry/line-chart.json +792 -0
- package/registry/pie-chart.json +1287 -0
- package/registry/radar-chart.json +458 -0
- package/registry/sankey.json +502 -0
- package/registry/scatter-chart.json +558 -0
- package/registry/sparkline.json +562 -0
- package/registry/treemap.json +431 -0
package/dist/funnel.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { g as Datum, A as Accessor, V as ValueFormat } from './context-BgYUymEO.js';
|
|
3
|
+
import { E as EngineProps } from './host-_F8RgiIz.js';
|
|
4
|
+
import { C as ChartFrameProps } from './frame-I7_xYGy5.js';
|
|
5
|
+
|
|
6
|
+
interface FunnelProps<T extends Datum> extends ChartFrameProps, EngineProps {
|
|
7
|
+
/** One row per stage, first stage first. */
|
|
8
|
+
data: readonly T[];
|
|
9
|
+
/** The field (or function) naming the stage. */
|
|
10
|
+
label: Accessor<T, string>;
|
|
11
|
+
/** The field of how many reached it. */
|
|
12
|
+
value: Accessor<T, number>;
|
|
13
|
+
/** How the counts are written. Default `"integer"`. */
|
|
14
|
+
format?: ValueFormat;
|
|
15
|
+
/** The headers of the data table: the stage, the count, the share of the first, of the previous. */
|
|
16
|
+
stageLabel?: string;
|
|
17
|
+
/** The header of the counts. */
|
|
18
|
+
valueLabel?: string;
|
|
19
|
+
/** The header of the share of the first stage. Default “% first”. */
|
|
20
|
+
fromFirstLabel?: string;
|
|
21
|
+
/** The header of the share of the previous stage. Default “% previous”. */
|
|
22
|
+
fromPreviousLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
declare function Funnel<T extends Datum>(props: FunnelProps<T>): react.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { Funnel, type FunnelProps };
|
package/dist/funnel.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Funnel
|
|
4
|
+
} from "./chunk-XAJ3KCC4.js";
|
|
5
|
+
import "./chunk-I5QUZVU2.js";
|
|
6
|
+
import "./chunk-W5FX4TU3.js";
|
|
7
|
+
import "./chunk-XLLYNNC6.js";
|
|
8
|
+
import "./chunk-DWJPPEMC.js";
|
|
9
|
+
import "./chunk-3CJHBJXA.js";
|
|
10
|
+
export {
|
|
11
|
+
Funnel
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=funnel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/gauge.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { V as ValueFormat, T as Threshold, j as Tone } from './context-BgYUymEO.js';
|
|
3
|
+
import { C as ChartFrameProps } from './frame-I7_xYGy5.js';
|
|
4
|
+
|
|
5
|
+
interface GaugeZone {
|
|
6
|
+
/** The zone runs from the previous one's end (or `min`) to this value. */
|
|
7
|
+
readonly to: number;
|
|
8
|
+
readonly tone: Tone;
|
|
9
|
+
/** Its name, in the summary and the table (“Over quota”). */
|
|
10
|
+
readonly label?: string;
|
|
11
|
+
}
|
|
12
|
+
interface GaugeProps extends Omit<ChartFrameProps, "dataTable" | "exportable"> {
|
|
13
|
+
/** The value. */
|
|
14
|
+
/** The value. */
|
|
15
|
+
value: number;
|
|
16
|
+
/** The start of the range. Default 0. */
|
|
17
|
+
/** The start of the range. Default 0. */
|
|
18
|
+
min?: number;
|
|
19
|
+
/** The end of the range. Default 100. */
|
|
20
|
+
/** The end of the range. Default 100. */
|
|
21
|
+
max?: number;
|
|
22
|
+
/** How the value is written. */
|
|
23
|
+
/** How the value and the range are written. */
|
|
24
|
+
format?: ValueFormat;
|
|
25
|
+
/** The words under the value (“of 50 000 credits”). */
|
|
26
|
+
caption?: string;
|
|
27
|
+
/** A tick on the arc: the objective. */
|
|
28
|
+
target?: Threshold;
|
|
29
|
+
/** Coloured zones along the arc: the value takes the tone of the zone it is in. */
|
|
30
|
+
zones?: readonly GaugeZone[];
|
|
31
|
+
/** The tone of the value without zones. Default `"accent"`. */
|
|
32
|
+
/** The tone of the value without zones. Default `"accent"`. */
|
|
33
|
+
tone?: Tone;
|
|
34
|
+
}
|
|
35
|
+
/** One figure against its range — credits used of a plan, a challenge's progress, a load. */
|
|
36
|
+
declare function Gauge(props: GaugeProps): react.JSX.Element;
|
|
37
|
+
|
|
38
|
+
export { Gauge, type GaugeProps, type GaugeZone };
|
package/dist/gauge.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/geo.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { g as Datum, A as Accessor, V as ValueFormat } from './context-BgYUymEO.js';
|
|
3
|
+
import { C as ChartFrameProps } from './frame-I7_xYGy5.js';
|
|
4
|
+
|
|
5
|
+
/** A place on the map or the globe. */
|
|
6
|
+
interface GeoPoint {
|
|
7
|
+
/** Longitude, then latitude, in degrees. */
|
|
8
|
+
readonly lon: number;
|
|
9
|
+
readonly lat: number;
|
|
10
|
+
/** Its name (“Montréal”, “eu-west-3 · Paris”). */
|
|
11
|
+
readonly label: string;
|
|
12
|
+
/** An amount: the bubble's area on a map; written in the tooltip and the table. */
|
|
13
|
+
readonly value?: number;
|
|
14
|
+
}
|
|
15
|
+
interface GeoMapProps<T extends Datum> extends ChartFrameProps {
|
|
16
|
+
/** One row per region with a value. */
|
|
17
|
+
data: readonly T[];
|
|
18
|
+
/** The field (or function) of the region's ISO 3166-1 alpha-2 code (`"FR"`, `"US"`). */
|
|
19
|
+
region: Accessor<T, string>;
|
|
20
|
+
/** The field (or function) of its value. */
|
|
21
|
+
value: Accessor<T, number>;
|
|
22
|
+
/** How the values are written. */
|
|
23
|
+
format?: ValueFormat;
|
|
24
|
+
/** Bubbles on places, their area by `value`. */
|
|
25
|
+
points?: readonly GeoPoint[];
|
|
26
|
+
/** The number of colour steps of the scale. Default 5. */
|
|
27
|
+
steps?: number;
|
|
28
|
+
/** The header of the regions and of the values in the table (“Country”, “Viewers”). */
|
|
29
|
+
regionLabel?: string;
|
|
30
|
+
/** The header of the values (“Viewers”). */
|
|
31
|
+
valueLabel?: string;
|
|
32
|
+
/** Called with the row when a region is clicked (or Enter is pressed on it). */
|
|
33
|
+
onSelect?: (datum: T, index: number) => void;
|
|
34
|
+
}
|
|
35
|
+
declare function GeoMap<T extends Datum>(props: GeoMapProps<T>): react.JSX.Element;
|
|
36
|
+
|
|
37
|
+
export { GeoMap, type GeoMapProps, type GeoPoint };
|
package/dist/geo.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
GeoMap
|
|
4
|
+
} from "./chunk-WBH2QU77.js";
|
|
5
|
+
import "./chunk-6FINSUOS.js";
|
|
6
|
+
import "./chunk-W5FX4TU3.js";
|
|
7
|
+
import "./chunk-XLLYNNC6.js";
|
|
8
|
+
import "./chunk-DWJPPEMC.js";
|
|
9
|
+
import "./chunk-3CJHBJXA.js";
|
|
10
|
+
export {
|
|
11
|
+
GeoMap
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=geo.js.map
|
package/dist/geo.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/globe.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { j as Tone, V as ValueFormat } from './context-BgYUymEO.js';
|
|
3
|
+
import { GeoPoint } from './geo.js';
|
|
4
|
+
import { C as ChartFrameProps } from './frame-I7_xYGy5.js';
|
|
5
|
+
|
|
6
|
+
interface GlobePoint extends GeoPoint {
|
|
7
|
+
/** Its tone: a healthy region in `"success"`, a degraded one in `"warning"`. Default `"accent"`. */
|
|
8
|
+
readonly tone?: Tone;
|
|
9
|
+
}
|
|
10
|
+
interface GlobeArc {
|
|
11
|
+
/** The labels of two points (or their coordinates, `[lon, lat]`). */
|
|
12
|
+
readonly from: string | readonly [number, number];
|
|
13
|
+
readonly to: string | readonly [number, number];
|
|
14
|
+
}
|
|
15
|
+
interface Globe3DProps extends ChartFrameProps {
|
|
16
|
+
/** The places: deployment regions, data centres, audiences. */
|
|
17
|
+
points: readonly GlobePoint[];
|
|
18
|
+
/** Great-circle arcs between places: replication, traffic. */
|
|
19
|
+
arcs?: readonly GlobeArc[];
|
|
20
|
+
/** Countries to tint in the accent (ISO alpha-2): where the service is available. */
|
|
21
|
+
regions?: readonly string[];
|
|
22
|
+
/** How the points' values are written. */
|
|
23
|
+
format?: ValueFormat;
|
|
24
|
+
/** The longitude and latitude facing the reader at first. Default: the first point. */
|
|
25
|
+
center?: readonly [number, number];
|
|
26
|
+
/** Turn slowly while on screen (never under reduced motion). Default true. */
|
|
27
|
+
autoRotate?: boolean;
|
|
28
|
+
/** The header of the places and of their values in the table. */
|
|
29
|
+
pointLabel?: string;
|
|
30
|
+
/** The header of the points' values (“Availability”). */
|
|
31
|
+
valueLabel?: string;
|
|
32
|
+
}
|
|
33
|
+
/** The world as a lit sphere: deployment regions, the arcs between them, a slow turn. */
|
|
34
|
+
declare function Globe3D(props: Globe3DProps): react.JSX.Element;
|
|
35
|
+
|
|
36
|
+
export { Globe3D, type Globe3DProps, type GlobeArc, type GlobePoint };
|
package/dist/globe.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Globe3D
|
|
4
|
+
} from "./chunk-PTSB3H5Q.js";
|
|
5
|
+
import "./chunk-6FINSUOS.js";
|
|
6
|
+
import "./chunk-XLLYNNC6.js";
|
|
7
|
+
import "./chunk-DWJPPEMC.js";
|
|
8
|
+
import "./chunk-3CJHBJXA.js";
|
|
9
|
+
export {
|
|
10
|
+
Globe3D
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=globe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/echarts/engines/heatmap.ts
|
|
4
|
+
import { HeatmapChart } from "echarts/charts";
|
|
5
|
+
import { CalendarComponent, GridComponent, TooltipComponent, VisualMapComponent } from "echarts/components";
|
|
6
|
+
import { use as register } from "echarts/core";
|
|
7
|
+
function install() {
|
|
8
|
+
register([HeatmapChart, GridComponent, CalendarComponent, VisualMapComponent, TooltipComponent]);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
install
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=heatmap-JWQOKUGM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/echarts/engines/heatmap.ts"],"sourcesContent":["import { HeatmapChart } from \"echarts/charts\";\nimport { CalendarComponent, GridComponent, TooltipComponent, VisualMapComponent } from \"echarts/components\";\nimport { use as register } from \"echarts/core\";\n\n/**\n * Registers what this chart needs. A function, not a side effect of the import: the package is `sideEffects: false`,\n * and a bundler drops a module imported only for its side effects.\n */\nexport function install(): void {\n register([HeatmapChart, GridComponent, CalendarComponent, VisualMapComponent, TooltipComponent]);\n}\n"],"mappings":";;;AAAA,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB,eAAe,kBAAkB,0BAA0B;AACvF,SAAS,OAAO,gBAAgB;AAMzB,SAAS,UAAgB;AAC9B,WAAS,CAAC,cAAc,eAAe,mBAAmB,oBAAoB,gBAAgB,CAAC;AACjG;","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { g as Datum, A as Accessor, V as ValueFormat, C as CategoryFormat } from './context-BgYUymEO.js';
|
|
3
|
+
import { E as EngineProps } from './host-_F8RgiIz.js';
|
|
4
|
+
import { C as ChartFrameProps } from './frame-I7_xYGy5.js';
|
|
5
|
+
|
|
6
|
+
interface HeatmapProps<T extends Datum> extends ChartFrameProps, EngineProps {
|
|
7
|
+
/** One row per cell. */
|
|
8
|
+
data: readonly T[];
|
|
9
|
+
/** The field of the column (an hour, a day) and of the row (a weekday, a team). */
|
|
10
|
+
x: Accessor<T, unknown>;
|
|
11
|
+
/** The field of the row (a weekday, a team). */
|
|
12
|
+
y: Accessor<T, unknown>;
|
|
13
|
+
/** The field of the cell's value. */
|
|
14
|
+
value: Accessor<T, number>;
|
|
15
|
+
/** The order of the columns and the rows. Default: as they first appear. */
|
|
16
|
+
xCategories?: readonly unknown[];
|
|
17
|
+
/** The order of the rows. Default: as they first appear. */
|
|
18
|
+
yCategories?: readonly unknown[];
|
|
19
|
+
/** How the values, the columns and the rows are written. */
|
|
20
|
+
format?: ValueFormat;
|
|
21
|
+
/** How the columns are written. */
|
|
22
|
+
xFormat?: CategoryFormat;
|
|
23
|
+
/** How the rows are written. */
|
|
24
|
+
yFormat?: CategoryFormat;
|
|
25
|
+
/** The headers of the data table. */
|
|
26
|
+
xLabel?: string;
|
|
27
|
+
/** The header of the rows in the data table. */
|
|
28
|
+
yLabel?: string;
|
|
29
|
+
}
|
|
30
|
+
declare function Heatmap<T extends Datum>(props: HeatmapProps<T>): react.JSX.Element;
|
|
31
|
+
interface CalendarHeatmapProps<T extends Datum> extends ChartFrameProps, EngineProps {
|
|
32
|
+
/** One row per day (days without a row read as nothing). */
|
|
33
|
+
data: readonly T[];
|
|
34
|
+
/** The field of the day: an ISO date (`2026-04-12`), a `Date` or an epoch. */
|
|
35
|
+
date: Accessor<T, unknown>;
|
|
36
|
+
/** The field of the day's value. */
|
|
37
|
+
value: Accessor<T, number>;
|
|
38
|
+
/** The first and last days shown. Default: the year before the last day of the data. */
|
|
39
|
+
range?: readonly [string, string];
|
|
40
|
+
/** How the values are written. */
|
|
41
|
+
format?: ValueFormat;
|
|
42
|
+
/** The header of the values in the data table. */
|
|
43
|
+
valueLabel?: string;
|
|
44
|
+
}
|
|
45
|
+
declare function CalendarHeatmap<T extends Datum>(props: CalendarHeatmapProps<T>): react.JSX.Element;
|
|
46
|
+
|
|
47
|
+
export { CalendarHeatmap, type CalendarHeatmapProps, Heatmap, type HeatmapProps };
|
package/dist/heatmap.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
CalendarHeatmap,
|
|
4
|
+
Heatmap
|
|
5
|
+
} from "./chunk-7CSAGFBW.js";
|
|
6
|
+
import "./chunk-I5QUZVU2.js";
|
|
7
|
+
import "./chunk-W5FX4TU3.js";
|
|
8
|
+
import "./chunk-XLLYNNC6.js";
|
|
9
|
+
import "./chunk-DWJPPEMC.js";
|
|
10
|
+
import "./chunk-3CJHBJXA.js";
|
|
11
|
+
export {
|
|
12
|
+
CalendarHeatmap,
|
|
13
|
+
Heatmap
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=heatmap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Renderer = "svg" | "canvas";
|
|
2
|
+
/** What the keyboard walks: one ECharts data item, and what it says. */
|
|
3
|
+
interface WalkItem {
|
|
4
|
+
readonly seriesIndex: number;
|
|
5
|
+
readonly dataIndex: number;
|
|
6
|
+
/** A graph's link (`edge`) rather than its node: Sankey's flows. */
|
|
7
|
+
readonly dataType?: "node" | "edge";
|
|
8
|
+
readonly text: string;
|
|
9
|
+
}
|
|
10
|
+
interface EngineProps {
|
|
11
|
+
/** `svg` (default): sharp, exportable as SVG. `canvas`: for tens of thousands of marks. */
|
|
12
|
+
renderer?: Renderer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type { EngineProps as E, WalkItem as W };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { C as CartesianProps } from './cartesian-BRhNQ3ib.js';
|
|
2
|
+
export { BarChart, BarChartProps } from './bar.js';
|
|
3
|
+
export { Candlestick, CandlestickProps } from './candlestick.js';
|
|
4
|
+
export { W as WalkItem } from './host-_F8RgiIz.js';
|
|
5
|
+
export { T as TableModel } from './frame-I7_xYGy5.js';
|
|
6
|
+
export { Chart, ChartProps, ResolvedTheme } from './chart.js';
|
|
7
|
+
export { Funnel, FunnelProps } from './funnel.js';
|
|
8
|
+
export { Gauge, GaugeProps, GaugeZone } from './gauge.js';
|
|
9
|
+
export { GeoMap, GeoMapProps, GeoPoint } from './geo.js';
|
|
10
|
+
export { Globe3D, Globe3DProps, GlobeArc, GlobePoint } from './globe.js';
|
|
11
|
+
export { CalendarHeatmap, CalendarHeatmapProps, Heatmap, HeatmapProps } from './heatmap.js';
|
|
12
|
+
export { AreaChart, AreaChartProps, LineChart, LineChartProps } from './line.js';
|
|
13
|
+
export { DonutChart, PieChart, PieChartProps } from './pie.js';
|
|
14
|
+
export { A as Accessor, B as BrandId, C as CategoryFormat, a as ChartKind, b as ChartLabels, c as ChartLabelsInput, d as ChartsProvider, e as ChartsProviderProps, f as ChartsSettings, D as DEFAULT_LABELS, g as Datum, L as Locale, M as Marker, S as SeriesColor, h as SeriesSpec, i as SeriesSummary, T as Threshold, j as Tone, V as ValueFormat } from './context-BgYUymEO.js';
|
|
15
|
+
export { DIVERGING, HUES, ORDERS, SlidingWindow, palette, sequential, useSlidingWindow } from './provider.js';
|
|
16
|
+
export { RadarChart, RadarChartProps } from './radar.js';
|
|
17
|
+
export { Sankey, SankeyProps } from './sankey.js';
|
|
18
|
+
export { ScatterChart, ScatterChartProps, correlation } from './scatter.js';
|
|
19
|
+
export { Sparkline, SparklineProps } from './sparkline.js';
|
|
20
|
+
export { Treemap, TreemapNode, TreemapProps } from './treemap.js';
|
|
21
|
+
import 'react';
|
|
22
|
+
import 'echarts/core';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Chart
|
|
4
|
+
} from "./chunk-AHQXJSAQ.js";
|
|
5
|
+
import {
|
|
6
|
+
Globe3D
|
|
7
|
+
} from "./chunk-PTSB3H5Q.js";
|
|
8
|
+
import {
|
|
9
|
+
RadarChart
|
|
10
|
+
} from "./chunk-7TIFCK5E.js";
|
|
11
|
+
import {
|
|
12
|
+
CalendarHeatmap,
|
|
13
|
+
Heatmap
|
|
14
|
+
} from "./chunk-7CSAGFBW.js";
|
|
15
|
+
import {
|
|
16
|
+
Sankey
|
|
17
|
+
} from "./chunk-XC6BQ3RN.js";
|
|
18
|
+
import {
|
|
19
|
+
Funnel
|
|
20
|
+
} from "./chunk-XAJ3KCC4.js";
|
|
21
|
+
import {
|
|
22
|
+
Candlestick
|
|
23
|
+
} from "./chunk-OER6ETT4.js";
|
|
24
|
+
import {
|
|
25
|
+
Treemap
|
|
26
|
+
} from "./chunk-VKTZD7UT.js";
|
|
27
|
+
import {
|
|
28
|
+
ScatterChart,
|
|
29
|
+
correlation
|
|
30
|
+
} from "./chunk-EK3Z647J.js";
|
|
31
|
+
import "./chunk-I5QUZVU2.js";
|
|
32
|
+
import {
|
|
33
|
+
useSlidingWindow
|
|
34
|
+
} from "./chunk-TPJDOB7R.js";
|
|
35
|
+
import {
|
|
36
|
+
AreaChart,
|
|
37
|
+
LineChart
|
|
38
|
+
} from "./chunk-BZ5CQFPH.js";
|
|
39
|
+
import {
|
|
40
|
+
BarChart
|
|
41
|
+
} from "./chunk-XR4ZJDOV.js";
|
|
42
|
+
import "./chunk-UNK4MJVG.js";
|
|
43
|
+
import {
|
|
44
|
+
DonutChart,
|
|
45
|
+
PieChart
|
|
46
|
+
} from "./chunk-WIRCIOLH.js";
|
|
47
|
+
import {
|
|
48
|
+
Gauge
|
|
49
|
+
} from "./chunk-DZB6HEVO.js";
|
|
50
|
+
import {
|
|
51
|
+
Sparkline
|
|
52
|
+
} from "./chunk-VKO2OYYM.js";
|
|
53
|
+
import "./chunk-BISL7DYW.js";
|
|
54
|
+
import "./chunk-ANUCSRUN.js";
|
|
55
|
+
import "./chunk-OB5EFDDH.js";
|
|
56
|
+
import {
|
|
57
|
+
GeoMap
|
|
58
|
+
} from "./chunk-WBH2QU77.js";
|
|
59
|
+
import "./chunk-6FINSUOS.js";
|
|
60
|
+
import "./chunk-W5FX4TU3.js";
|
|
61
|
+
import "./chunk-XLLYNNC6.js";
|
|
62
|
+
import "./chunk-DWJPPEMC.js";
|
|
63
|
+
import {
|
|
64
|
+
ChartsProvider,
|
|
65
|
+
DEFAULT_LABELS,
|
|
66
|
+
DIVERGING,
|
|
67
|
+
HUES,
|
|
68
|
+
ORDERS,
|
|
69
|
+
palette,
|
|
70
|
+
sequential
|
|
71
|
+
} from "./chunk-3CJHBJXA.js";
|
|
72
|
+
export {
|
|
73
|
+
AreaChart,
|
|
74
|
+
BarChart,
|
|
75
|
+
CalendarHeatmap,
|
|
76
|
+
Candlestick,
|
|
77
|
+
Chart,
|
|
78
|
+
ChartsProvider,
|
|
79
|
+
DEFAULT_LABELS,
|
|
80
|
+
DIVERGING,
|
|
81
|
+
DonutChart,
|
|
82
|
+
Funnel,
|
|
83
|
+
Gauge,
|
|
84
|
+
GeoMap,
|
|
85
|
+
Globe3D,
|
|
86
|
+
HUES,
|
|
87
|
+
Heatmap,
|
|
88
|
+
LineChart,
|
|
89
|
+
ORDERS,
|
|
90
|
+
PieChart,
|
|
91
|
+
RadarChart,
|
|
92
|
+
Sankey,
|
|
93
|
+
ScatterChart,
|
|
94
|
+
Sparkline,
|
|
95
|
+
Treemap,
|
|
96
|
+
correlation,
|
|
97
|
+
palette,
|
|
98
|
+
sequential,
|
|
99
|
+
useSlidingWindow
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=index.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,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AreaChart,
|
|
4
|
+
LineChart
|
|
5
|
+
} from "./chunk-BZ5CQFPH.js";
|
|
6
|
+
import "./chunk-UNK4MJVG.js";
|
|
7
|
+
import "./chunk-BISL7DYW.js";
|
|
8
|
+
import "./chunk-ANUCSRUN.js";
|
|
9
|
+
import "./chunk-OB5EFDDH.js";
|
|
10
|
+
import "./chunk-W5FX4TU3.js";
|
|
11
|
+
import "./chunk-XLLYNNC6.js";
|
|
12
|
+
import "./chunk-DWJPPEMC.js";
|
|
13
|
+
import "./chunk-3CJHBJXA.js";
|
|
14
|
+
export {
|
|
15
|
+
AreaChart,
|
|
16
|
+
LineChart
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=line.js.map
|
package/dist/line.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|