@spscommerce/ds-react-charts 8.23.18 → 8.24.2
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/lib/index.js +275 -269
- package/lib/index.umd.cjs +9 -9
- package/package.json +9 -9
package/lib/index.js
CHANGED
@@ -6600,8 +6600,14 @@ function Gb(e) {
|
|
6600
6600
|
var t = e.keys, n = e.value, r = e.order, a = e.offset, i = (0, an.stack)();
|
6601
6601
|
return t && i.keys(t), n && (0, se.default)(i.value, n), r && i.order((0, Wb.default)(r)), a && i.offset((0, Bb.default)(a)), i;
|
6602
6602
|
}
|
6603
|
-
|
6604
|
-
|
6603
|
+
const Kb = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
6604
|
+
let On = (e = 21) => {
|
6605
|
+
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
6606
|
+
for (; e--; )
|
6607
|
+
t += Kb[n[e] & 63];
|
6608
|
+
return t;
|
6609
|
+
};
|
6610
|
+
const Xb = {
|
6605
6611
|
barFillColor1: "string",
|
6606
6612
|
barFillColor2: "string",
|
6607
6613
|
barFillColorHover: "string",
|
@@ -6725,10 +6731,10 @@ function dh(e) {
|
|
6725
6731
|
}));
|
6726
6732
|
}
|
6727
6733
|
Object.assign(dh, {
|
6728
|
-
props:
|
6734
|
+
props: Xb,
|
6729
6735
|
displayName: "SpsBarChart"
|
6730
6736
|
});
|
6731
|
-
const
|
6737
|
+
const Zb = {
|
6732
6738
|
general: {
|
6733
6739
|
label: "General Usage",
|
6734
6740
|
description: ({ NavigateTo: e, Link: t }) => /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement("p", null, "Use Bar Charts to visualize the comparison of a dataset across multiple categories or subjects. When using bar charts, the dataset should attempt to provide a clear answer to a clear question (i.e. avoid comparing multiple or unrelated datasets in a single chart)."), /* @__PURE__ */ D.createElement("p", null, "Bar Charts should not be used when the visualization of the data is too complex or the number of categories too numerous to be easily understood at a glance. In these cases consider the use of more general lists of content such as a", " ", /* @__PURE__ */ D.createElement(e, { to: "Tables" }, "Table"), "."), /* @__PURE__ */ D.createElement("h5", null, "Color"), /* @__PURE__ */ D.createElement("p", null, "The number of colors used should be directly related to the number of comparisons being made. When comparing categories across a single data set, only one color should be used. When comparing multiple categories across multiple series of data, use the appropriate number of colors to the number of categories. For more details on color usage visit the", " ", /* @__PURE__ */ D.createElement(t, { to: "/style-and-layout/colors" }, "Colors"), " section."), /* @__PURE__ */ D.createElement("h5", null, "Interaction"), /* @__PURE__ */ D.createElement("p", null, "Charts should include interactivity on hover to give users insight to specifics of the data. Tooltips can be used to display expanded definitions or additional related data points for the selected category."))
|
@@ -6829,7 +6835,7 @@ const Xb = {
|
|
6829
6835
|
}
|
6830
6836
|
}
|
6831
6837
|
}
|
6832
|
-
},
|
6838
|
+
}, Qb = {
|
6833
6839
|
barFillColor1: "string",
|
6834
6840
|
barFillColor2: "string",
|
6835
6841
|
barFillColorHover: "string",
|
@@ -6971,7 +6977,7 @@ function ph(e) {
|
|
6971
6977
|
}));
|
6972
6978
|
}
|
6973
6979
|
Object.assign(ph, {
|
6974
|
-
props:
|
6980
|
+
props: Qb,
|
6975
6981
|
displayName: "SpsHorizontalBarChart"
|
6976
6982
|
});
|
6977
6983
|
function vh(e) {
|
@@ -6985,7 +6991,7 @@ function nu() {
|
|
6985
6991
|
for (var e, t, n = 0, r = ""; n < arguments.length; ) (e = arguments[n++]) && (t = vh(e)) && (r && (r += " "), r += t);
|
6986
6992
|
return r;
|
6987
6993
|
}
|
6988
|
-
var
|
6994
|
+
var Jb = ["flexDirection", "alignItems", "margin", "display", "children"];
|
6989
6995
|
function Na() {
|
6990
6996
|
return Na = Object.assign ? Object.assign.bind() : function(e) {
|
6991
6997
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -6996,7 +7002,7 @@ function Na() {
|
|
6996
7002
|
return e;
|
6997
7003
|
}, Na.apply(this, arguments);
|
6998
7004
|
}
|
6999
|
-
function
|
7005
|
+
function ex(e, t) {
|
7000
7006
|
if (e == null) return {};
|
7001
7007
|
var n = {}, r = Object.keys(e), a, i;
|
7002
7008
|
for (i = 0; i < r.length; i++)
|
@@ -7004,7 +7010,7 @@ function Jb(e, t) {
|
|
7004
7010
|
return n;
|
7005
7011
|
}
|
7006
7012
|
function mh(e) {
|
7007
|
-
var t = e.flexDirection, n = t === void 0 ? "row" : t, r = e.alignItems, a = r === void 0 ? "center" : r, i = e.margin, s = i === void 0 ? "0" : i, o = e.display, l = o === void 0 ? "flex" : o, u = e.children, c =
|
7013
|
+
var t = e.flexDirection, n = t === void 0 ? "row" : t, r = e.alignItems, a = r === void 0 ? "center" : r, i = e.margin, s = i === void 0 ? "0" : i, o = e.display, l = o === void 0 ? "flex" : o, u = e.children, c = ex(e, Jb);
|
7008
7014
|
return /* @__PURE__ */ E.createElement("div", Na({
|
7009
7015
|
className: "visx-legend-item",
|
7010
7016
|
style: {
|
@@ -7021,7 +7027,7 @@ mh.propTypes = {
|
|
7021
7027
|
children: w.node,
|
7022
7028
|
display: w.string
|
7023
7029
|
};
|
7024
|
-
var
|
7030
|
+
var tx = ["flex", "label", "margin", "align", "children"];
|
7025
7031
|
function Ra() {
|
7026
7032
|
return Ra = Object.assign ? Object.assign.bind() : function(e) {
|
7027
7033
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -7032,7 +7038,7 @@ function Ra() {
|
|
7032
7038
|
return e;
|
7033
7039
|
}, Ra.apply(this, arguments);
|
7034
7040
|
}
|
7035
|
-
function
|
7041
|
+
function nx(e, t) {
|
7036
7042
|
if (e == null) return {};
|
7037
7043
|
var n = {}, r = Object.keys(e), a, i;
|
7038
7044
|
for (i = 0; i < r.length; i++)
|
@@ -7040,7 +7046,7 @@ function tx(e, t) {
|
|
7040
7046
|
return n;
|
7041
7047
|
}
|
7042
7048
|
function gh(e) {
|
7043
|
-
var t = e.flex, n = t === void 0 ? "1" : t, r = e.label, a = e.margin, i = a === void 0 ? "5px 0" : a, s = e.align, o = s === void 0 ? "left" : s, l = e.children, u =
|
7049
|
+
var t = e.flex, n = t === void 0 ? "1" : t, r = e.label, a = e.margin, i = a === void 0 ? "5px 0" : a, s = e.align, o = s === void 0 ? "left" : s, l = e.children, u = nx(e, tx);
|
7044
7050
|
return /* @__PURE__ */ E.createElement("div", Ra({
|
7045
7051
|
className: "visx-legend-label",
|
7046
7052
|
style: {
|
@@ -7136,7 +7142,7 @@ function kn() {
|
|
7136
7142
|
}
|
7137
7143
|
var Hi = function() {
|
7138
7144
|
};
|
7139
|
-
function
|
7145
|
+
function rx(e) {
|
7140
7146
|
var t = e.shape, n = t === void 0 ? "rect" : t, r = e.fill, a = r === void 0 ? Hi : r, i = e.size, s = i === void 0 ? Hi : i, o = e.width, l = e.height, u = e.label, c = e.item, f = e.itemIndex, h = e.shapeStyle, p = h === void 0 ? Hi : h, d = {
|
7141
7147
|
width: o,
|
7142
7148
|
height: l,
|
@@ -7169,7 +7175,7 @@ function xh(e) {
|
|
7169
7175
|
height: c ? c(Cr({}, s)) : a,
|
7170
7176
|
margin: i
|
7171
7177
|
}
|
7172
|
-
},
|
7178
|
+
}, rx({
|
7173
7179
|
shape: n,
|
7174
7180
|
item: o,
|
7175
7181
|
itemIndex: l,
|
@@ -7192,7 +7198,7 @@ function _h(e) {
|
|
7192
7198
|
function ru(e) {
|
7193
7199
|
return String(_h(e));
|
7194
7200
|
}
|
7195
|
-
function
|
7201
|
+
function ix(e) {
|
7196
7202
|
var t = e.scale, n = e.labelFormat;
|
7197
7203
|
return function(r, a) {
|
7198
7204
|
return {
|
@@ -7203,7 +7209,7 @@ function rx(e) {
|
|
7203
7209
|
};
|
7204
7210
|
};
|
7205
7211
|
}
|
7206
|
-
var
|
7212
|
+
var ax = ["className", "style", "scale", "shape", "domain", "fill", "size", "labelFormat", "labelTransform", "shapeWidth", "shapeHeight", "shapeMargin", "shapeStyle", "labelAlign", "labelFlex", "labelMargin", "itemMargin", "direction", "itemDirection", "legendLabelProps", "children"];
|
7207
7213
|
function Mn() {
|
7208
7214
|
return Mn = Object.assign ? Object.assign.bind() : function(e) {
|
7209
7215
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -7214,18 +7220,18 @@ function Mn() {
|
|
7214
7220
|
return e;
|
7215
7221
|
}, Mn.apply(this, arguments);
|
7216
7222
|
}
|
7217
|
-
function
|
7223
|
+
function ox(e, t) {
|
7218
7224
|
if (e == null) return {};
|
7219
7225
|
var n = {}, r = Object.keys(e), a, i;
|
7220
7226
|
for (i = 0; i < r.length; i++)
|
7221
7227
|
a = r[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
7222
7228
|
return n;
|
7223
7229
|
}
|
7224
|
-
var
|
7230
|
+
var sx = {
|
7225
7231
|
display: "flex"
|
7226
7232
|
};
|
7227
7233
|
function wh(e) {
|
7228
|
-
var t = e.className, n = e.style, r = n === void 0 ?
|
7234
|
+
var t = e.className, n = e.style, r = n === void 0 ? sx : n, a = e.scale, i = e.shape, s = e.domain, o = e.fill, l = o === void 0 ? ru : o, u = e.size, c = u === void 0 ? ru : u, f = e.labelFormat, h = f === void 0 ? _h : f, p = e.labelTransform, d = p === void 0 ? ix : p, v = e.shapeWidth, b = v === void 0 ? 15 : v, m = e.shapeHeight, y = m === void 0 ? 15 : m, x = e.shapeMargin, k = x === void 0 ? "2px 4px 2px 0" : x, g = e.shapeStyle, _ = e.labelAlign, S = _ === void 0 ? "left" : _, M = e.labelFlex, O = M === void 0 ? "1" : M, $ = e.labelMargin, C = $ === void 0 ? "0 4px" : $, N = e.itemMargin, L = N === void 0 ? "0" : N, I = e.direction, X = I === void 0 ? "column" : I, U = e.itemDirection, Z = U === void 0 ? "row" : U, J = e.legendLabelProps, K = e.children, P = ox(e, ax), A = s || ("domain" in a ? a.domain() : []), B = d({
|
7229
7235
|
scale: a,
|
7230
7236
|
labelFormat: h
|
7231
7237
|
}), W = A.map(B);
|
@@ -7276,7 +7282,7 @@ wh.propTypes = {
|
|
7276
7282
|
function Sh(e) {
|
7277
7283
|
return /* @__PURE__ */ E.createElement(wh, e);
|
7278
7284
|
}
|
7279
|
-
const
|
7285
|
+
const lx = {
|
7280
7286
|
chartData: "ChartDataProps[]",
|
7281
7287
|
chartHeight: "number",
|
7282
7288
|
chartWidth: "number",
|
@@ -7443,10 +7449,10 @@ function Th(e) {
|
|
7443
7449
|
);
|
7444
7450
|
}
|
7445
7451
|
Object.assign(Th, {
|
7446
|
-
props:
|
7452
|
+
props: lx,
|
7447
7453
|
displayName: "SpsStackedHorizontalBarChart"
|
7448
7454
|
});
|
7449
|
-
const
|
7455
|
+
const ux = {
|
7450
7456
|
basic: {
|
7451
7457
|
label: "Basic",
|
7452
7458
|
description: st`
|
@@ -7535,9 +7541,9 @@ function Aa(e, t, n) {
|
|
7535
7541
|
}, u;
|
7536
7542
|
}
|
7537
7543
|
Aa.debounce = Aa;
|
7538
|
-
var
|
7539
|
-
const iu = /* @__PURE__ */ Zt(
|
7540
|
-
function
|
7544
|
+
var cx = Aa;
|
7545
|
+
const iu = /* @__PURE__ */ Zt(cx);
|
7546
|
+
function fx(e) {
|
7541
7547
|
let {
|
7542
7548
|
debounce: t,
|
7543
7549
|
scroll: n,
|
@@ -7590,7 +7596,7 @@ function cx(e) {
|
|
7590
7596
|
x: O,
|
7591
7597
|
y: $
|
7592
7598
|
};
|
7593
|
-
l.current.element instanceof HTMLElement && a && (C.height = l.current.element.offsetHeight, C.width = l.current.element.offsetWidth), Object.freeze(C), f.current && !
|
7599
|
+
l.current.element instanceof HTMLElement && a && (C.height = l.current.element.offsetHeight, C.width = l.current.element.offsetWidth), Object.freeze(C), f.current && !vx(l.current.lastBounds, C) && o(l.current.lastBounds = C);
|
7594
7600
|
};
|
7595
7601
|
return [y, c ? iu(y, c) : y, u ? iu(y, u) : y];
|
7596
7602
|
}, [o, a, u, c]);
|
@@ -7606,17 +7612,17 @@ function cx(e) {
|
|
7606
7612
|
const m = (y) => {
|
7607
7613
|
!y || y === l.current.element || (v(), l.current.element = y, l.current.scrollContainers = Oh(y), b());
|
7608
7614
|
};
|
7609
|
-
return
|
7615
|
+
return dx(d, !!n), hx(p), Fe(() => {
|
7610
7616
|
v(), b();
|
7611
7617
|
}, [n, d, p]), Fe(() => v, []), [m, s, h];
|
7612
7618
|
}
|
7613
|
-
function
|
7619
|
+
function hx(e) {
|
7614
7620
|
Fe(() => {
|
7615
7621
|
const t = e;
|
7616
7622
|
return window.addEventListener("resize", t), () => void window.removeEventListener("resize", t);
|
7617
7623
|
}, [e]);
|
7618
7624
|
}
|
7619
|
-
function
|
7625
|
+
function dx(e, t) {
|
7620
7626
|
Fe(() => {
|
7621
7627
|
if (t) {
|
7622
7628
|
const n = e;
|
@@ -7637,26 +7643,26 @@ function Oh(e) {
|
|
7637
7643
|
} = window.getComputedStyle(e);
|
7638
7644
|
return [n, r, a].some((i) => i === "auto" || i === "scroll") && t.push(e), [...t, ...Oh(e.parentElement)];
|
7639
7645
|
}
|
7640
|
-
const
|
7641
|
-
function
|
7646
|
+
const px = ["x", "y", "top", "bottom", "left", "right", "width", "height"], vx = (e, t) => px.every((n) => e[n] === t[n]), kh = /* @__PURE__ */ Rt(gb);
|
7647
|
+
function mx(e) {
|
7642
7648
|
return !!e && e instanceof Element;
|
7643
7649
|
}
|
7644
|
-
function
|
7650
|
+
function gx(e) {
|
7645
7651
|
return !!e && (e instanceof SVGElement || "ownerSVGElement" in e);
|
7646
7652
|
}
|
7647
|
-
function
|
7653
|
+
function yx(e) {
|
7648
7654
|
return !!e && "createSVGPoint" in e;
|
7649
7655
|
}
|
7650
|
-
function
|
7656
|
+
function bx(e) {
|
7651
7657
|
return !!e && "getScreenCTM" in e;
|
7652
7658
|
}
|
7653
|
-
function
|
7659
|
+
function xx(e) {
|
7654
7660
|
return !!e && "changedTouches" in e;
|
7655
7661
|
}
|
7656
|
-
function
|
7662
|
+
function _x(e) {
|
7657
7663
|
return !!e && "clientX" in e;
|
7658
7664
|
}
|
7659
|
-
function
|
7665
|
+
function wx(e) {
|
7660
7666
|
return !!e && (e instanceof Event || "nativeEvent" in e && e.nativeEvent instanceof Event);
|
7661
7667
|
}
|
7662
7668
|
function $n() {
|
@@ -7673,14 +7679,14 @@ var Ui = {
|
|
7673
7679
|
x: 0,
|
7674
7680
|
y: 0
|
7675
7681
|
};
|
7676
|
-
function
|
7682
|
+
function Sx(e) {
|
7677
7683
|
if (!e) return $n({}, Ui);
|
7678
|
-
if (
|
7684
|
+
if (xx(e))
|
7679
7685
|
return e.changedTouches.length > 0 ? {
|
7680
7686
|
x: e.changedTouches[0].clientX,
|
7681
7687
|
y: e.changedTouches[0].clientY
|
7682
7688
|
} : $n({}, Ui);
|
7683
|
-
if (
|
7689
|
+
if (_x(e))
|
7684
7690
|
return {
|
7685
7691
|
x: e.clientX,
|
7686
7692
|
y: e.clientY
|
@@ -7693,8 +7699,8 @@ function wx(e) {
|
|
7693
7699
|
}
|
7694
7700
|
function au(e, t) {
|
7695
7701
|
if (!e || !t) return null;
|
7696
|
-
var n =
|
7697
|
-
if (
|
7702
|
+
var n = Sx(t), r = gx(e) ? e.ownerSVGElement : e, a = bx(r) ? r.getScreenCTM() : null;
|
7703
|
+
if (yx(r) && a) {
|
7698
7704
|
var i = r.createSVGPoint();
|
7699
7705
|
return i.x = n.x, i.y = n.y, i = i.matrixTransform(a.inverse()), new Ke({
|
7700
7706
|
x: i.x,
|
@@ -7707,10 +7713,10 @@ function au(e, t) {
|
|
7707
7713
|
y: n.y - s.top - e.clientTop
|
7708
7714
|
});
|
7709
7715
|
}
|
7710
|
-
function
|
7711
|
-
if (
|
7716
|
+
function Tx(e, t) {
|
7717
|
+
if (mx(e) && t)
|
7712
7718
|
return au(e, t);
|
7713
|
-
if (
|
7719
|
+
if (wx(e)) {
|
7714
7720
|
var n = e, r = n.target;
|
7715
7721
|
if (r) return au(r, n);
|
7716
7722
|
}
|
@@ -7725,7 +7731,7 @@ function ke(e) {
|
|
7725
7731
|
return e != null && typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e);
|
7726
7732
|
}
|
7727
7733
|
const Mh = /* @__PURE__ */ Rt(fp), $h = /* @__PURE__ */ Rt(Xg);
|
7728
|
-
var
|
7734
|
+
var Ox = ["AxisComponent"];
|
7729
7735
|
function Nr() {
|
7730
7736
|
return Nr = Object.assign ? Object.assign.bind() : function(e) {
|
7731
7737
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -7736,15 +7742,15 @@ function Nr() {
|
|
7736
7742
|
return e;
|
7737
7743
|
}, Nr.apply(this, arguments);
|
7738
7744
|
}
|
7739
|
-
function
|
7745
|
+
function kx(e, t) {
|
7740
7746
|
if (e == null) return {};
|
7741
7747
|
var n = {}, r = Object.keys(e), a, i;
|
7742
7748
|
for (i = 0; i < r.length; i++)
|
7743
7749
|
a = r[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
7744
7750
|
return n;
|
7745
7751
|
}
|
7746
|
-
function
|
7747
|
-
var t, n, r, a, i, s, o, l = e.AxisComponent, u =
|
7752
|
+
function Mx(e) {
|
7753
|
+
var t, n, r, a, i, s, o, l = e.AxisComponent, u = kx(e, Ox), c = Se(Xe), f = c.theme, h = c.xScale, p = c.yScale, d = c.margin, v = c.width, b = c.height, m = u.orientation, y = le(function() {
|
7748
7754
|
var M, O, $, C;
|
7749
7755
|
return m === "left" || m === "right" ? f == null || (M = f.axisStyles) == null || (O = M.y) == null ? void 0 : O[m] : f == null || ($ = f.axisStyles) == null || (C = $.x) == null ? void 0 : C[m];
|
7750
7756
|
}, [f, m]), x = u.tickLabelProps, k = le(function() {
|
@@ -7773,11 +7779,11 @@ function kx(e) {
|
|
7773
7779
|
}
|
7774
7780
|
var fi = {};
|
7775
7781
|
fi.__esModule = !0;
|
7776
|
-
fi.default =
|
7777
|
-
function
|
7782
|
+
fi.default = $x;
|
7783
|
+
function $x(e) {
|
7778
7784
|
return "bandwidth" in e ? e.bandwidth() : 0;
|
7779
7785
|
}
|
7780
|
-
var
|
7786
|
+
var Ex = Eh, ou = Zn(Br), su = Zn(E), Px = Zn(Fn), Cx = Zn(ci), Nx = Mh, lu = kh, uu = $h, Rx = Zn(fi), Lx = ["top", "left", "scale", "width", "stroke", "strokeWidth", "strokeDasharray", "className", "children", "numTicks", "lineStyle", "offset", "tickValues"];
|
7781
7787
|
function Zn(e) {
|
7782
7788
|
return e && e.__esModule ? e : { default: e };
|
7783
7789
|
}
|
@@ -7791,7 +7797,7 @@ function za() {
|
|
7791
7797
|
return e;
|
7792
7798
|
}, za.apply(this, arguments);
|
7793
7799
|
}
|
7794
|
-
function
|
7800
|
+
function Ax(e, t) {
|
7795
7801
|
if (e == null) return {};
|
7796
7802
|
var n = {}, r = Object.keys(e), a, i;
|
7797
7803
|
for (i = 0; i < r.length; i++)
|
@@ -7799,7 +7805,7 @@ function Lx(e, t) {
|
|
7799
7805
|
return n;
|
7800
7806
|
}
|
7801
7807
|
function Eh(e) {
|
7802
|
-
var t = e.top, n = t === void 0 ? 0 : t, r = e.left, a = r === void 0 ? 0 : r, i = e.scale, s = e.width, o = e.stroke, l = o === void 0 ? "#eaf0f6" : o, u = e.strokeWidth, c = u === void 0 ? 1 : u, f = e.strokeDasharray, h = e.className, p = e.children, d = e.numTicks, v = d === void 0 ? 10 : d, b = e.lineStyle, m = e.offset, y = e.tickValues, x =
|
7808
|
+
var t = e.top, n = t === void 0 ? 0 : t, r = e.left, a = r === void 0 ? 0 : r, i = e.scale, s = e.width, o = e.stroke, l = o === void 0 ? "#eaf0f6" : o, u = e.strokeWidth, c = u === void 0 ? 1 : u, f = e.strokeDasharray, h = e.className, p = e.children, d = e.numTicks, v = d === void 0 ? 10 : d, b = e.lineStyle, m = e.offset, y = e.tickValues, x = Ax(e, Lx), k = y ?? (0, uu.getTicks)(i, v), g = (m ?? 0) + (0, Rx.default)(i) / 2, _ = k.map(function(S, M) {
|
7803
7809
|
var O, $ = ((O = (0, uu.coerceNumber)(i(S))) != null ? O : 0) + g;
|
7804
7810
|
return {
|
7805
7811
|
index: M,
|
@@ -7813,15 +7819,15 @@ function Eh(e) {
|
|
7813
7819
|
})
|
7814
7820
|
};
|
7815
7821
|
});
|
7816
|
-
return /* @__PURE__ */ su.default.createElement(
|
7817
|
-
className: (0,
|
7822
|
+
return /* @__PURE__ */ su.default.createElement(Nx.Group, {
|
7823
|
+
className: (0, Px.default)("visx-rows", h),
|
7818
7824
|
top: n,
|
7819
7825
|
left: a
|
7820
7826
|
}, p ? p({
|
7821
7827
|
lines: _
|
7822
7828
|
}) : _.map(function(S) {
|
7823
7829
|
var M = S.from, O = S.to, $ = S.index;
|
7824
|
-
return /* @__PURE__ */ su.default.createElement(
|
7830
|
+
return /* @__PURE__ */ su.default.createElement(Cx.default, za({
|
7825
7831
|
key: "row-line-" + $,
|
7826
7832
|
from: M,
|
7827
7833
|
to: O,
|
@@ -7836,7 +7842,7 @@ Eh.propTypes = {
|
|
7836
7842
|
tickValues: ou.default.array,
|
7837
7843
|
width: ou.default.number.isRequired
|
7838
7844
|
};
|
7839
|
-
var
|
7845
|
+
var Dx = Ph, cu = Qn(Br), fu = Qn(E), zx = Qn(Fn), jx = Qn(ci), Fx = Mh, hu = kh, du = $h, Ix = Qn(fi), Wx = ["top", "left", "scale", "height", "stroke", "strokeWidth", "strokeDasharray", "className", "numTicks", "lineStyle", "offset", "tickValues", "children"];
|
7840
7846
|
function Qn(e) {
|
7841
7847
|
return e && e.__esModule ? e : { default: e };
|
7842
7848
|
}
|
@@ -7850,7 +7856,7 @@ function ja() {
|
|
7850
7856
|
return e;
|
7851
7857
|
}, ja.apply(this, arguments);
|
7852
7858
|
}
|
7853
|
-
function
|
7859
|
+
function Bx(e, t) {
|
7854
7860
|
if (e == null) return {};
|
7855
7861
|
var n = {}, r = Object.keys(e), a, i;
|
7856
7862
|
for (i = 0; i < r.length; i++)
|
@@ -7858,7 +7864,7 @@ function Wx(e, t) {
|
|
7858
7864
|
return n;
|
7859
7865
|
}
|
7860
7866
|
function Ph(e) {
|
7861
|
-
var t = e.top, n = t === void 0 ? 0 : t, r = e.left, a = r === void 0 ? 0 : r, i = e.scale, s = e.height, o = e.stroke, l = o === void 0 ? "#eaf0f6" : o, u = e.strokeWidth, c = u === void 0 ? 1 : u, f = e.strokeDasharray, h = e.className, p = e.numTicks, d = p === void 0 ? 10 : p, v = e.lineStyle, b = e.offset, m = e.tickValues, y = e.children, x =
|
7867
|
+
var t = e.top, n = t === void 0 ? 0 : t, r = e.left, a = r === void 0 ? 0 : r, i = e.scale, s = e.height, o = e.stroke, l = o === void 0 ? "#eaf0f6" : o, u = e.strokeWidth, c = u === void 0 ? 1 : u, f = e.strokeDasharray, h = e.className, p = e.numTicks, d = p === void 0 ? 10 : p, v = e.lineStyle, b = e.offset, m = e.tickValues, y = e.children, x = Bx(e, Wx), k = m ?? (0, du.getTicks)(i, d), g = (b ?? 0) + (0, Ix.default)(i) / 2, _ = k.map(function(S, M) {
|
7862
7868
|
var O, $ = ((O = (0, du.coerceNumber)(i(S))) != null ? O : 0) + g;
|
7863
7869
|
return {
|
7864
7870
|
index: M,
|
@@ -7872,15 +7878,15 @@ function Ph(e) {
|
|
7872
7878
|
})
|
7873
7879
|
};
|
7874
7880
|
});
|
7875
|
-
return /* @__PURE__ */ fu.default.createElement(
|
7876
|
-
className: (0,
|
7881
|
+
return /* @__PURE__ */ fu.default.createElement(Fx.Group, {
|
7882
|
+
className: (0, zx.default)("visx-columns", h),
|
7877
7883
|
top: n,
|
7878
7884
|
left: a
|
7879
7885
|
}, y ? y({
|
7880
7886
|
lines: _
|
7881
7887
|
}) : _.map(function(S) {
|
7882
7888
|
var M = S.from, O = S.to, $ = S.index;
|
7883
|
-
return /* @__PURE__ */ fu.default.createElement(
|
7889
|
+
return /* @__PURE__ */ fu.default.createElement(jx.default, ja({
|
7884
7890
|
key: "column-line-" + $,
|
7885
7891
|
from: M,
|
7886
7892
|
to: O,
|
@@ -7895,7 +7901,7 @@ Ph.propTypes = {
|
|
7895
7901
|
tickValues: cu.default.array,
|
7896
7902
|
height: cu.default.number.isRequired
|
7897
7903
|
};
|
7898
|
-
var
|
7904
|
+
var Hx = ["rows", "columns", "GridRowsComponent", "GridColumnsComponent"];
|
7899
7905
|
function Rr() {
|
7900
7906
|
return Rr = Object.assign ? Object.assign.bind() : function(e) {
|
7901
7907
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -7906,7 +7912,7 @@ function Rr() {
|
|
7906
7912
|
return e;
|
7907
7913
|
}, Rr.apply(this, arguments);
|
7908
7914
|
}
|
7909
|
-
function
|
7915
|
+
function Ux(e, t) {
|
7910
7916
|
if (e == null) return {};
|
7911
7917
|
var n = {}, r = Object.keys(e), a, i;
|
7912
7918
|
for (i = 0; i < r.length; i++)
|
@@ -7914,7 +7920,7 @@ function Hx(e, t) {
|
|
7914
7920
|
return n;
|
7915
7921
|
}
|
7916
7922
|
function Ch(e) {
|
7917
|
-
var t = e.rows, n = t === void 0 ? !0 : t, r = e.columns, a = r === void 0 ? !0 : r, i = e.GridRowsComponent, s = e.GridColumnsComponent, o =
|
7923
|
+
var t = e.rows, n = t === void 0 ? !0 : t, r = e.columns, a = r === void 0 ? !0 : r, i = e.GridRowsComponent, s = e.GridColumnsComponent, o = Ux(e, Hx), l = Se(Xe), u = l.theme, c = l.xScale, f = l.yScale, h = l.margin, p = l.innerWidth, d = l.innerHeight, v = u == null ? void 0 : u.gridStyles;
|
7918
7924
|
return /* @__PURE__ */ E.createElement(E.Fragment, null, n && f && p != null && /* @__PURE__ */ E.createElement(i, Rr({
|
7919
7925
|
left: h == null ? void 0 : h.left,
|
7920
7926
|
lineStyle: v,
|
@@ -7942,7 +7948,7 @@ function Fa() {
|
|
7942
7948
|
}, Fa.apply(this, arguments);
|
7943
7949
|
}
|
7944
7950
|
function pu(e) {
|
7945
|
-
return /* @__PURE__ */ E.createElement(
|
7951
|
+
return /* @__PURE__ */ E.createElement(Mx, Fa({
|
7946
7952
|
AxisComponent: Do
|
7947
7953
|
}, e));
|
7948
7954
|
}
|
@@ -7956,14 +7962,14 @@ function Ia() {
|
|
7956
7962
|
return e;
|
7957
7963
|
}, Ia.apply(this, arguments);
|
7958
7964
|
}
|
7959
|
-
function
|
7965
|
+
function qx(e) {
|
7960
7966
|
return /* @__PURE__ */ E.createElement(Ch, Ia({
|
7961
|
-
GridRowsComponent:
|
7962
|
-
GridColumnsComponent:
|
7967
|
+
GridRowsComponent: Ex,
|
7968
|
+
GridColumnsComponent: Dx
|
7963
7969
|
}, e));
|
7964
7970
|
}
|
7965
|
-
var
|
7966
|
-
function
|
7971
|
+
var Yx = ["tooltipOpen"];
|
7972
|
+
function Vx(e, t) {
|
7967
7973
|
if (e == null) return {};
|
7968
7974
|
var n = {}, r = Object.keys(e), a, i;
|
7969
7975
|
for (i = 0; i < r.length; i++)
|
@@ -7980,13 +7986,13 @@ function Lr() {
|
|
7980
7986
|
return e;
|
7981
7987
|
}, Lr.apply(this, arguments);
|
7982
7988
|
}
|
7983
|
-
function
|
7989
|
+
function Gx(e) {
|
7984
7990
|
var t = jn(Lr({
|
7985
7991
|
tooltipOpen: !1
|
7986
7992
|
}, e)), n = t[0], r = t[1], a = ae(function(s) {
|
7987
7993
|
return r(typeof s == "function" ? function(o) {
|
7988
7994
|
o.tooltipOpen;
|
7989
|
-
var l =
|
7995
|
+
var l = Vx(o, Yx);
|
7990
7996
|
return Lr({}, s(l), {
|
7991
7997
|
tooltipOpen: !0
|
7992
7998
|
});
|
@@ -8014,7 +8020,7 @@ function Vx(e) {
|
|
8014
8020
|
hideTooltip: i
|
8015
8021
|
};
|
8016
8022
|
}
|
8017
|
-
function
|
8023
|
+
function Kx(e, t) {
|
8018
8024
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Wa(e, t);
|
8019
8025
|
}
|
8020
8026
|
function Wa(e, t) {
|
@@ -8023,7 +8029,7 @@ function Wa(e, t) {
|
|
8023
8029
|
}, Wa(e, t);
|
8024
8030
|
}
|
8025
8031
|
var Nh = /* @__PURE__ */ function(e) {
|
8026
|
-
|
8032
|
+
Kx(t, e);
|
8027
8033
|
function t() {
|
8028
8034
|
return e.apply(this, arguments) || this;
|
8029
8035
|
}
|
@@ -8037,7 +8043,7 @@ var Nh = /* @__PURE__ */ function(e) {
|
|
8037
8043
|
Nh.propTypes = {
|
8038
8044
|
zIndex: w.oneOfType([w.number, w.string])
|
8039
8045
|
};
|
8040
|
-
var
|
8046
|
+
var Xx = ["className", "top", "left", "offsetLeft", "offsetTop", "style", "children", "unstyled", "applyPositionStyle"];
|
8041
8047
|
function Ar() {
|
8042
8048
|
return Ar = Object.assign ? Object.assign.bind() : function(e) {
|
8043
8049
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -8048,7 +8054,7 @@ function Ar() {
|
|
8048
8054
|
return e;
|
8049
8055
|
}, Ar.apply(this, arguments);
|
8050
8056
|
}
|
8051
|
-
function
|
8057
|
+
function Zx(e, t) {
|
8052
8058
|
if (e == null) return {};
|
8053
8059
|
var n = {}, r = Object.keys(e), a, i;
|
8054
8060
|
for (i = 0; i < r.length; i++)
|
@@ -8066,7 +8072,7 @@ var Bo = {
|
|
8066
8072
|
lineHeight: "1em",
|
8067
8073
|
pointerEvents: "none"
|
8068
8074
|
}, hi = /* @__PURE__ */ E.forwardRef(function(e, t) {
|
8069
|
-
var n = e.className, r = e.top, a = e.left, i = e.offsetLeft, s = i === void 0 ? 10 : i, o = e.offsetTop, l = o === void 0 ? 10 : o, u = e.style, c = u === void 0 ? Bo : u, f = e.children, h = e.unstyled, p = h === void 0 ? !1 : h, d = e.applyPositionStyle, v = d === void 0 ? !1 : d, b =
|
8075
|
+
var n = e.className, r = e.top, a = e.left, i = e.offsetLeft, s = i === void 0 ? 10 : i, o = e.offsetTop, l = o === void 0 ? 10 : o, u = e.style, c = u === void 0 ? Bo : u, f = e.children, h = e.unstyled, p = h === void 0 ? !1 : h, d = e.applyPositionStyle, v = d === void 0 ? !1 : d, b = Zx(e, Xx);
|
8070
8076
|
return /* @__PURE__ */ E.createElement("div", Ar({
|
8071
8077
|
ref: t,
|
8072
8078
|
className: ye("visx-tooltip", n),
|
@@ -8099,12 +8105,12 @@ function Ba() {
|
|
8099
8105
|
return e;
|
8100
8106
|
}, Ba.apply(this, arguments);
|
8101
8107
|
}
|
8102
|
-
function
|
8108
|
+
function Qx(e) {
|
8103
8109
|
if (e === void 0)
|
8104
8110
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
8105
8111
|
return e;
|
8106
8112
|
}
|
8107
|
-
function
|
8113
|
+
function Jx(e, t) {
|
8108
8114
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ha(e, t);
|
8109
8115
|
}
|
8110
8116
|
function Ha(e, t) {
|
@@ -8120,16 +8126,16 @@ var vu = {
|
|
8120
8126
|
width: 0,
|
8121
8127
|
height: 0
|
8122
8128
|
};
|
8123
|
-
function
|
8129
|
+
function e_(e) {
|
8124
8130
|
var t;
|
8125
8131
|
return t = /* @__PURE__ */ function(n) {
|
8126
|
-
|
8132
|
+
Jx(r, n);
|
8127
8133
|
function r(i) {
|
8128
8134
|
var s;
|
8129
8135
|
return s = n.call(this, i) || this, s.state = {
|
8130
8136
|
rect: void 0,
|
8131
8137
|
parentRect: void 0
|
8132
|
-
}, s.nodeRef = /* @__PURE__ */ E.createRef(), s.getRects = s.getRects.bind(
|
8138
|
+
}, s.nodeRef = /* @__PURE__ */ E.createRef(), s.getRects = s.getRects.bind(Qx(s)), s;
|
8133
8139
|
}
|
8134
8140
|
var a = r.prototype;
|
8135
8141
|
return a.componentDidMount = function() {
|
@@ -8155,9 +8161,9 @@ function Jx(e) {
|
|
8155
8161
|
var Rh = /* @__PURE__ */ Qa({
|
8156
8162
|
isFlippedVertically: !1,
|
8157
8163
|
isFlippedHorizontally: !1
|
8158
|
-
}),
|
8164
|
+
}), t_ = Rh.Provider;
|
8159
8165
|
Rh.Consumer;
|
8160
|
-
var
|
8166
|
+
var n_ = ["children", "getRects", "left", "offsetLeft", "offsetTop", "parentRect", "rect", "style", "top", "unstyled", "nodeRef"];
|
8161
8167
|
function Dr() {
|
8162
8168
|
return Dr = Object.assign ? Object.assign.bind() : function(e) {
|
8163
8169
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -8168,7 +8174,7 @@ function Dr() {
|
|
8168
8174
|
return e;
|
8169
8175
|
}, Dr.apply(this, arguments);
|
8170
8176
|
}
|
8171
|
-
function
|
8177
|
+
function r_(e, t) {
|
8172
8178
|
if (e == null) return {};
|
8173
8179
|
var n = {}, r = Object.keys(e), a, i;
|
8174
8180
|
for (i = 0; i < r.length; i++)
|
@@ -8178,7 +8184,7 @@ function n_(e, t) {
|
|
8178
8184
|
function Lh(e) {
|
8179
8185
|
var t = e.children;
|
8180
8186
|
e.getRects;
|
8181
|
-
var n = e.left, r = n === void 0 ? 0 : n, a = e.offsetLeft, i = a === void 0 ? 10 : a, s = e.offsetTop, o = s === void 0 ? 10 : s, l = e.parentRect, u = e.rect, c = e.style, f = c === void 0 ? Bo : c, h = e.top, p = h === void 0 ? 0 : h, d = e.unstyled, v = d === void 0 ? !1 : d, b = e.nodeRef, m =
|
8187
|
+
var n = e.left, r = n === void 0 ? 0 : n, a = e.offsetLeft, i = a === void 0 ? 10 : a, s = e.offsetTop, o = s === void 0 ? 10 : s, l = e.parentRect, u = e.rect, c = e.style, f = c === void 0 ? Bo : c, h = e.top, p = h === void 0 ? 0 : h, d = e.unstyled, v = d === void 0 ? !1 : d, b = e.nodeRef, m = r_(e, n_), y, x = !1, k = !1;
|
8182
8188
|
if (u && l) {
|
8183
8189
|
var g = r, _ = p;
|
8184
8190
|
if (l.width) {
|
@@ -8202,7 +8208,7 @@ function Lh(e) {
|
|
8202
8208
|
top: 0,
|
8203
8209
|
transform: y
|
8204
8210
|
}, !v && f)
|
8205
|
-
}, m), /* @__PURE__ */ E.createElement(
|
8211
|
+
}, m), /* @__PURE__ */ E.createElement(t_, {
|
8206
8212
|
value: {
|
8207
8213
|
isFlippedVertically: !k,
|
8208
8214
|
isFlippedHorizontally: !x
|
@@ -8212,8 +8218,8 @@ function Lh(e) {
|
|
8212
8218
|
Lh.propTypes = {
|
8213
8219
|
nodeRef: w.oneOfType([w.string, w.func, w.object])
|
8214
8220
|
};
|
8215
|
-
const
|
8216
|
-
var
|
8221
|
+
const i_ = e_(Lh);
|
8222
|
+
var a_ = ["detectBounds", "zIndex"], o_ = ["left", "top", "detectBounds", "zIndex"];
|
8217
8223
|
function Ua() {
|
8218
8224
|
return Ua = Object.assign ? Object.assign.bind() : function(e) {
|
8219
8225
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -8231,14 +8237,14 @@ function mu(e, t) {
|
|
8231
8237
|
a = r[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
8232
8238
|
return n;
|
8233
8239
|
}
|
8234
|
-
function
|
8235
|
-
var t = e === void 0 ? {} : e, n = t.detectBounds, r = n === void 0 ? !0 : n, a = t.zIndex, i = mu(t,
|
8240
|
+
function s_(e) {
|
8241
|
+
var t = e === void 0 ? {} : e, n = t.detectBounds, r = n === void 0 ? !0 : n, a = t.zIndex, i = mu(t, a_), s = fx(i), o = s[0], l = s[1], u = s[2], c = jn(!1), f = c[0], h = c[1];
|
8236
8242
|
Fe(function() {
|
8237
8243
|
h(!1);
|
8238
8244
|
}, []);
|
8239
8245
|
var p = le(function() {
|
8240
8246
|
return function(d) {
|
8241
|
-
var v = d.left, b = v === void 0 ? 0 : v, m = d.top, y = m === void 0 ? 0 : m, x = d.detectBounds, k = d.zIndex, g = mu(d,
|
8247
|
+
var v = d.left, b = v === void 0 ? 0 : v, m = d.top, y = m === void 0 ? 0 : m, x = d.detectBounds, k = d.zIndex, g = mu(d, o_), _ = x ?? r, S = k ?? a, M = _ ? i_ : hi, O = f ? 0 : window.scrollX, $ = f ? 0 : window.scrollY, C = b + (l.left || 0) + O, N = y + (l.top || 0) + $;
|
8242
8248
|
return /* @__PURE__ */ E.createElement(Nh, {
|
8243
8249
|
zIndex: S
|
8244
8250
|
}, /* @__PURE__ */ E.createElement(M, Ua({
|
@@ -8254,7 +8260,7 @@ function o_(e) {
|
|
8254
8260
|
TooltipInPortal: p
|
8255
8261
|
};
|
8256
8262
|
}
|
8257
|
-
var Jn = /* @__PURE__ */ Qa(null),
|
8263
|
+
var Jn = /* @__PURE__ */ Qa(null), l_ = ["debounce", "detectBounds", "horizontalCrosshairStyle", "glyphStyle", "renderTooltip", "renderGlyph", "resizeObserverPolyfill", "scroll", "showDatumGlyph", "showHorizontalCrosshair", "showSeriesGlyphs", "showVerticalCrosshair", "snapTooltipToDatumX", "snapTooltipToDatumY", "verticalCrosshairStyle", "zIndex"], u_ = ["x", "y"];
|
8258
8264
|
function gu(e, t) {
|
8259
8265
|
if (e == null) return {};
|
8260
8266
|
var n = {}, r = Object.keys(e), a, i;
|
@@ -8277,7 +8283,7 @@ var qi = {
|
|
8277
8283
|
pointerEvents: "none",
|
8278
8284
|
fontSize: 0,
|
8279
8285
|
lineHeight: 0
|
8280
|
-
},
|
8286
|
+
}, c_ = {
|
8281
8287
|
position: "absolute",
|
8282
8288
|
left: 0,
|
8283
8289
|
top: 0,
|
@@ -8301,11 +8307,11 @@ function Ah(e) {
|
|
8301
8307
|
Ah.propTypes = {
|
8302
8308
|
isNearestDatum: w.bool.isRequired
|
8303
8309
|
};
|
8304
|
-
function
|
8310
|
+
function f_(e) {
|
8305
8311
|
return /* @__PURE__ */ E.createElement(Ah, e);
|
8306
8312
|
}
|
8307
8313
|
function Dh(e) {
|
8308
|
-
var t, n, r, a, i, s, o, l, u, c, f, h, p, d = e.debounce, v = e.detectBounds, b = e.horizontalCrosshairStyle, m = e.glyphStyle, y = e.renderTooltip, x = e.renderGlyph, k = x === void 0 ?
|
8314
|
+
var t, n, r, a, i, s, o, l, u, c, f, h, p, d = e.debounce, v = e.detectBounds, b = e.horizontalCrosshairStyle, m = e.glyphStyle, y = e.renderTooltip, x = e.renderGlyph, k = x === void 0 ? f_ : x, g = e.resizeObserverPolyfill, _ = e.scroll, S = _ === void 0 ? !0 : _, M = e.showDatumGlyph, O = M === void 0 ? !1 : M, $ = e.showHorizontalCrosshair, C = $ === void 0 ? !1 : $, N = e.showSeriesGlyphs, L = N === void 0 ? !1 : N, I = e.showVerticalCrosshair, X = I === void 0 ? !1 : I, U = e.snapTooltipToDatumX, Z = U === void 0 ? !1 : U, J = e.snapTooltipToDatumY, K = J === void 0 ? !1 : J, P = e.verticalCrosshairStyle, A = e.zIndex, B = gu(e, l_), W = Se(Xe) || {}, j = W.colorScale, F = W.theme, q = W.innerHeight, Y = W.innerWidth, V = W.margin, R = W.xScale, z = W.yScale, H = W.dataRegistry, T = W.resizeObserverPolyfill, Q = Se(Jn), te = s_({
|
8309
8315
|
debounce: d,
|
8310
8316
|
detectBounds: v,
|
8311
8317
|
polyfill: T || g,
|
@@ -8373,7 +8379,7 @@ function Dh(e) {
|
|
8373
8379
|
// So use svg element to find container ref because it's a valid child of SVG and HTML parents.
|
8374
8380
|
/* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement("svg", {
|
8375
8381
|
ref: tr,
|
8376
|
-
style:
|
8382
|
+
style: c_
|
8377
8383
|
}), jt && /* @__PURE__ */ E.createElement(E.Fragment, null, X && /* @__PURE__ */ E.createElement(fe, {
|
8378
8384
|
className: "visx-crosshair visx-crosshair-vertical",
|
8379
8385
|
left: nr,
|
@@ -8413,7 +8419,7 @@ function Dh(e) {
|
|
8413
8419
|
strokeWidth: 1.5,
|
8414
8420
|
stroke: (o = (l = F == null || (u = F.gridStyles) == null ? void 0 : u.stroke) != null ? l : F == null || (c = F.htmlLabel) == null ? void 0 : c.color) != null ? o : "#222"
|
8415
8421
|
}, b)))), vi.map(function(Ee, Ue) {
|
8416
|
-
var gt = Ee.x, yt = Ee.y, Le = gu(Ee,
|
8422
|
+
var gt = Ee.x, yt = Ee.y, Le = gu(Ee, u_);
|
8417
8423
|
return (
|
8418
8424
|
// We render glyps in a portal so that they can overflow the container if necessary
|
8419
8425
|
/* @__PURE__ */ E.createElement(fe, {
|
@@ -8466,31 +8472,31 @@ zh.propTypes = {
|
|
8466
8472
|
showDatumGlyph: w.bool,
|
8467
8473
|
showSeriesGlyphs: w.bool
|
8468
8474
|
};
|
8469
|
-
var Ho = {},
|
8470
|
-
return
|
8471
|
-
},
|
8472
|
-
function
|
8473
|
-
for (var t = e.length; t-- &&
|
8475
|
+
var Ho = {}, h_ = ai, d_ = function() {
|
8476
|
+
return h_.Date.now();
|
8477
|
+
}, p_ = d_, v_ = /\s/;
|
8478
|
+
function m_(e) {
|
8479
|
+
for (var t = e.length; t-- && v_.test(e.charAt(t)); )
|
8474
8480
|
;
|
8475
8481
|
return t;
|
8476
8482
|
}
|
8477
|
-
var
|
8478
|
-
function
|
8479
|
-
return e && e.slice(0,
|
8483
|
+
var g_ = m_, y_ = g_, b_ = /^\s+/;
|
8484
|
+
function x_(e) {
|
8485
|
+
return e && e.slice(0, y_(e) + 1).replace(b_, "");
|
8480
8486
|
}
|
8481
|
-
var
|
8482
|
-
function
|
8487
|
+
var __ = x_;
|
8488
|
+
function w_(e) {
|
8483
8489
|
return e != null && typeof e == "object";
|
8484
8490
|
}
|
8485
|
-
var
|
8486
|
-
function
|
8487
|
-
return typeof e == "symbol" ||
|
8491
|
+
var S_ = w_, T_ = rh, O_ = S_, k_ = "[object Symbol]";
|
8492
|
+
function M_(e) {
|
8493
|
+
return typeof e == "symbol" || O_(e) && T_(e) == k_;
|
8488
8494
|
}
|
8489
|
-
var
|
8490
|
-
function
|
8495
|
+
var $_ = M_, E_ = __, yu = oi, P_ = $_, bu = NaN, C_ = /^[-+]0x[0-9a-f]+$/i, N_ = /^0b[01]+$/i, R_ = /^0o[0-7]+$/i, L_ = parseInt;
|
8496
|
+
function A_(e) {
|
8491
8497
|
if (typeof e == "number")
|
8492
8498
|
return e;
|
8493
|
-
if (
|
8499
|
+
if (P_(e))
|
8494
8500
|
return bu;
|
8495
8501
|
if (yu(e)) {
|
8496
8502
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
@@ -8498,16 +8504,16 @@ function L_(e) {
|
|
8498
8504
|
}
|
8499
8505
|
if (typeof e != "string")
|
8500
8506
|
return e === 0 ? e : +e;
|
8501
|
-
e =
|
8502
|
-
var n =
|
8503
|
-
return n ||
|
8507
|
+
e = E_(e);
|
8508
|
+
var n = N_.test(e);
|
8509
|
+
return n || R_.test(e) ? L_(e.slice(2), n ? 2 : 8) : C_.test(e) ? bu : +e;
|
8504
8510
|
}
|
8505
|
-
var
|
8506
|
-
function
|
8511
|
+
var D_ = A_, z_ = oi, Yi = p_, xu = D_, j_ = "Expected a function", F_ = Math.max, I_ = Math.min;
|
8512
|
+
function W_(e, t, n) {
|
8507
8513
|
var r, a, i, s, o, l, u = 0, c = !1, f = !1, h = !0;
|
8508
8514
|
if (typeof e != "function")
|
8509
|
-
throw new TypeError(
|
8510
|
-
t = xu(t) || 0,
|
8515
|
+
throw new TypeError(j_);
|
8516
|
+
t = xu(t) || 0, z_(n) && (c = !!n.leading, f = "maxWait" in n, i = f ? F_(xu(n.maxWait) || 0, t) : i, h = "trailing" in n ? !!n.trailing : h);
|
8511
8517
|
function p(_) {
|
8512
8518
|
var S = r, M = a;
|
8513
8519
|
return r = a = void 0, u = _, s = e.apply(M, S), s;
|
@@ -8517,7 +8523,7 @@ function I_(e, t, n) {
|
|
8517
8523
|
}
|
8518
8524
|
function v(_) {
|
8519
8525
|
var S = _ - l, M = _ - u, O = t - S;
|
8520
|
-
return f ?
|
8526
|
+
return f ? I_(O, i - M) : O;
|
8521
8527
|
}
|
8522
8528
|
function b(_) {
|
8523
8529
|
var S = _ - l, M = _ - u;
|
@@ -8550,12 +8556,12 @@ function I_(e, t, n) {
|
|
8550
8556
|
}
|
8551
8557
|
return g.cancel = x, g.flush = k, g;
|
8552
8558
|
}
|
8553
|
-
var jh =
|
8554
|
-
const
|
8559
|
+
var jh = W_;
|
8560
|
+
const B_ = /* @__PURE__ */ Zt(jh);
|
8555
8561
|
Ho.__esModule = !0;
|
8556
|
-
Ho.default =
|
8557
|
-
var
|
8558
|
-
function
|
8562
|
+
Ho.default = Y_;
|
8563
|
+
var H_ = U_(jh), gn = E;
|
8564
|
+
function U_(e) {
|
8559
8565
|
return e && e.__esModule ? e : { default: e };
|
8560
8566
|
}
|
8561
8567
|
function zr() {
|
@@ -8568,16 +8574,16 @@ function zr() {
|
|
8568
8574
|
return e;
|
8569
8575
|
}, zr.apply(this, arguments);
|
8570
8576
|
}
|
8571
|
-
var
|
8577
|
+
var q_ = [], _u = {
|
8572
8578
|
width: 0,
|
8573
8579
|
height: 0,
|
8574
8580
|
top: 0,
|
8575
8581
|
left: 0
|
8576
8582
|
};
|
8577
|
-
function
|
8578
|
-
var t = e === void 0 ? {} : e, n = t.initialSize, r = n === void 0 ? _u : n, a = t.debounceTime, i = a === void 0 ? 300 : a, s = t.ignoreDimensions, o = s === void 0 ?
|
8583
|
+
function Y_(e) {
|
8584
|
+
var t = e === void 0 ? {} : e, n = t.initialSize, r = n === void 0 ? _u : n, a = t.debounceTime, i = a === void 0 ? 300 : a, s = t.ignoreDimensions, o = s === void 0 ? q_ : s, l = t.enableDebounceLeadingCall, u = l === void 0 ? !0 : l, c = t.resizeObserverPolyfill, f = (0, gn.useRef)(null), h = (0, gn.useRef)(0), p = (0, gn.useState)(zr({}, _u, r)), d = p[0], v = p[1], b = (0, gn.useMemo)(function() {
|
8579
8585
|
var m = Array.isArray(o) ? o : [o];
|
8580
|
-
return (0,
|
8586
|
+
return (0, H_.default)(function(y) {
|
8581
8587
|
v(function(x) {
|
8582
8588
|
var k = Object.keys(x), g = k.filter(function(S) {
|
8583
8589
|
return x[S] !== y[S];
|
@@ -8612,7 +8618,7 @@ function q_(e) {
|
|
8612
8618
|
resize: b
|
8613
8619
|
}, d);
|
8614
8620
|
}
|
8615
|
-
var
|
8621
|
+
var V_ = Fh, wu = Uo(Br), G_ = Uo(E), K_ = Uo(Ho), X_ = ["className", "children", "debounceTime", "ignoreDimensions", "initialSize", "parentSizeStyles", "enableDebounceLeadingCall", "resizeObserverPolyfill"], Z_ = ["parentRef", "resize"];
|
8616
8622
|
function Uo(e) {
|
8617
8623
|
return e && e.__esModule ? e : { default: e };
|
8618
8624
|
}
|
@@ -8633,19 +8639,19 @@ function Su(e, t) {
|
|
8633
8639
|
a = r[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
8634
8640
|
return n;
|
8635
8641
|
}
|
8636
|
-
var
|
8642
|
+
var Q_ = {
|
8637
8643
|
width: "100%",
|
8638
8644
|
height: "100%"
|
8639
8645
|
};
|
8640
8646
|
function Fh(e) {
|
8641
|
-
var t = e.className, n = e.children, r = e.debounceTime, a = e.ignoreDimensions, i = e.initialSize, s = e.parentSizeStyles, o = s === void 0 ?
|
8647
|
+
var t = e.className, n = e.children, r = e.debounceTime, a = e.ignoreDimensions, i = e.initialSize, s = e.parentSizeStyles, o = s === void 0 ? Q_ : s, l = e.enableDebounceLeadingCall, u = l === void 0 ? !0 : l, c = e.resizeObserverPolyfill, f = Su(e, X_), h = (0, K_.default)({
|
8642
8648
|
initialSize: i,
|
8643
8649
|
debounceTime: r,
|
8644
8650
|
ignoreDimensions: a,
|
8645
8651
|
enableDebounceLeadingCall: u,
|
8646
8652
|
resizeObserverPolyfill: c
|
8647
|
-
}), p = h.parentRef, d = h.resize, v = Su(h,
|
8648
|
-
return /* @__PURE__ */
|
8653
|
+
}), p = h.parentRef, d = h.resize, v = Su(h, Z_);
|
8654
|
+
return /* @__PURE__ */ G_.default.createElement("div", jr({
|
8649
8655
|
style: o,
|
8650
8656
|
ref: p,
|
8651
8657
|
className: t
|
@@ -8665,7 +8671,7 @@ function ot(e, t, n) {
|
|
8665
8671
|
var i = ae(function(s, o, l) {
|
8666
8672
|
r && r.emit(s, {
|
8667
8673
|
event: o,
|
8668
|
-
svgPoint:
|
8674
|
+
svgPoint: Tx(o),
|
8669
8675
|
source: l
|
8670
8676
|
});
|
8671
8677
|
}, [r]);
|
@@ -8681,7 +8687,7 @@ function ot(e, t, n) {
|
|
8681
8687
|
}
|
8682
8688
|
}, [r, e, t]), r ? i : null;
|
8683
8689
|
}
|
8684
|
-
function
|
8690
|
+
function J_(e) {
|
8685
8691
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
|
8686
8692
|
var r = e.get(t);
|
8687
8693
|
r && r.push(n) || e.set(t, [n]);
|
@@ -8696,9 +8702,9 @@ function Q_(e) {
|
|
8696
8702
|
});
|
8697
8703
|
} };
|
8698
8704
|
}
|
8699
|
-
function
|
8705
|
+
function ew(e) {
|
8700
8706
|
var t = e.children, n = le(function() {
|
8701
|
-
return
|
8707
|
+
return J_();
|
8702
8708
|
}, []);
|
8703
8709
|
return /* @__PURE__ */ E.createElement(Ih.Provider, {
|
8704
8710
|
value: n
|
@@ -8715,7 +8721,7 @@ function qa() {
|
|
8715
8721
|
}, qa.apply(this, arguments);
|
8716
8722
|
}
|
8717
8723
|
function Wh(e) {
|
8718
|
-
var t = e.hideTooltipDebounceMs, n = t === void 0 ? 400 : t, r = e.children, a =
|
8724
|
+
var t = e.hideTooltipDebounceMs, n = t === void 0 ? 400 : t, r = e.children, a = Gx(void 0), i = a.tooltipOpen, s = a.tooltipLeft, o = a.tooltipTop, l = a.tooltipData, u = a.updateTooltip, c = a.hideTooltip, f = Yt(null);
|
8719
8725
|
function h() {
|
8720
8726
|
f.current && (f.current.cancel(), f.current = null);
|
8721
8727
|
}
|
@@ -8748,7 +8754,7 @@ function Wh(e) {
|
|
8748
8754
|
};
|
8749
8755
|
});
|
8750
8756
|
}), d = ae(function() {
|
8751
|
-
f.current =
|
8757
|
+
f.current = B_(c, n), f.current();
|
8752
8758
|
}, [c, n]), v = le(function() {
|
8753
8759
|
return {
|
8754
8760
|
tooltipOpen: i,
|
@@ -8768,53 +8774,53 @@ Wh.propTypes = {
|
|
8768
8774
|
hideTooltipDebounceMs: w.number,
|
8769
8775
|
children: w.node.isRequired
|
8770
8776
|
};
|
8771
|
-
const
|
8777
|
+
const tw = /* @__PURE__ */ Rt(cg);
|
8772
8778
|
var er = {}, qo = {};
|
8773
8779
|
qo.__esModule = !0;
|
8774
|
-
qo.default =
|
8775
|
-
function
|
8780
|
+
qo.default = nw;
|
8781
|
+
function nw(e, t) {
|
8776
8782
|
t.domain && ("nice" in e || "quantiles" in e || "padding" in e, e.domain(t.domain));
|
8777
8783
|
}
|
8778
8784
|
var Yo = {};
|
8779
8785
|
Yo.__esModule = !0;
|
8780
|
-
Yo.default =
|
8781
|
-
function
|
8786
|
+
Yo.default = rw;
|
8787
|
+
function rw(e, t) {
|
8782
8788
|
t.range && ("padding" in e, e.range(t.range));
|
8783
8789
|
}
|
8784
8790
|
var Vo = {};
|
8785
8791
|
Vo.__esModule = !0;
|
8786
|
-
Vo.default =
|
8787
|
-
function
|
8792
|
+
Vo.default = iw;
|
8793
|
+
function iw(e, t) {
|
8788
8794
|
"align" in e && "align" in t && typeof t.align < "u" && e.align(t.align);
|
8789
8795
|
}
|
8790
8796
|
var Go = {};
|
8791
8797
|
Go.__esModule = !0;
|
8792
|
-
Go.default =
|
8793
|
-
function
|
8798
|
+
Go.default = aw;
|
8799
|
+
function aw(e, t) {
|
8794
8800
|
"base" in e && "base" in t && typeof t.base < "u" && e.base(t.base);
|
8795
8801
|
}
|
8796
8802
|
var Ko = {};
|
8797
8803
|
Ko.__esModule = !0;
|
8798
|
-
Ko.default =
|
8799
|
-
function
|
8804
|
+
Ko.default = ow;
|
8805
|
+
function ow(e, t) {
|
8800
8806
|
"clamp" in e && "clamp" in t && typeof t.clamp < "u" && e.clamp(t.clamp);
|
8801
8807
|
}
|
8802
8808
|
var Xo = {};
|
8803
8809
|
Xo.__esModule = !0;
|
8804
|
-
Xo.default =
|
8805
|
-
function
|
8810
|
+
Xo.default = sw;
|
8811
|
+
function sw(e, t) {
|
8806
8812
|
"constant" in e && "constant" in t && typeof t.constant < "u" && e.constant(t.constant);
|
8807
8813
|
}
|
8808
8814
|
var Zo = {};
|
8809
8815
|
Zo.__esModule = !0;
|
8810
|
-
Zo.default =
|
8811
|
-
function
|
8816
|
+
Zo.default = lw;
|
8817
|
+
function lw(e, t) {
|
8812
8818
|
"exponent" in e && "exponent" in t && typeof t.exponent < "u" && e.exponent(t.exponent);
|
8813
8819
|
}
|
8814
8820
|
var Qo = {}, Jo = {};
|
8815
8821
|
const Bh = /* @__PURE__ */ Rt(yg);
|
8816
8822
|
Jo.__esModule = !0;
|
8817
|
-
Jo.default =
|
8823
|
+
Jo.default = uw;
|
8818
8824
|
var it = Bh, Tu = {
|
8819
8825
|
lab: it.interpolateLab,
|
8820
8826
|
hcl: it.interpolateHcl,
|
@@ -8825,7 +8831,7 @@ var it = Bh, Tu = {
|
|
8825
8831
|
"cubehelix-long": it.interpolateCubehelixLong,
|
8826
8832
|
rgb: it.interpolateRgb
|
8827
8833
|
};
|
8828
|
-
function
|
8834
|
+
function uw(e) {
|
8829
8835
|
switch (e) {
|
8830
8836
|
case "lab":
|
8831
8837
|
case "hcl":
|
@@ -8841,31 +8847,31 @@ function lw(e) {
|
|
8841
8847
|
return typeof n > "u" ? r : r.gamma(n);
|
8842
8848
|
}
|
8843
8849
|
Qo.__esModule = !0;
|
8844
|
-
Qo.default =
|
8845
|
-
var
|
8846
|
-
function
|
8850
|
+
Qo.default = hw;
|
8851
|
+
var cw = fw(Jo);
|
8852
|
+
function fw(e) {
|
8847
8853
|
return e && e.__esModule ? e : { default: e };
|
8848
8854
|
}
|
8849
|
-
function
|
8855
|
+
function hw(e, t) {
|
8850
8856
|
if ("interpolate" in t && "interpolate" in e && typeof t.interpolate < "u") {
|
8851
|
-
var n = (0,
|
8857
|
+
var n = (0, cw.default)(t.interpolate);
|
8852
8858
|
e.interpolate(n);
|
8853
8859
|
}
|
8854
8860
|
}
|
8855
8861
|
var es = {};
|
8856
|
-
const
|
8862
|
+
const dw = /* @__PURE__ */ Rt(_g);
|
8857
8863
|
var ts = {};
|
8858
8864
|
ts.__esModule = !0;
|
8859
|
-
ts.default =
|
8860
|
-
var
|
8861
|
-
function
|
8862
|
-
var t = e.tickFormat(1,
|
8865
|
+
ts.default = mw;
|
8866
|
+
var pw = new Date(Date.UTC(2020, 1, 2, 3, 4, 5)), vw = "%Y-%m-%d %H:%M";
|
8867
|
+
function mw(e) {
|
8868
|
+
var t = e.tickFormat(1, vw)(pw);
|
8863
8869
|
return t === "2020-02-02 03:04";
|
8864
8870
|
}
|
8865
8871
|
es.__esModule = !0;
|
8866
|
-
es.default =
|
8867
|
-
var Oe =
|
8868
|
-
function
|
8872
|
+
es.default = bw;
|
8873
|
+
var Oe = dw, gw = yw(ts);
|
8874
|
+
function yw(e) {
|
8869
8875
|
return e && e.__esModule ? e : { default: e };
|
8870
8876
|
}
|
8871
8877
|
var Ou = {
|
@@ -8885,7 +8891,7 @@ var Ou = {
|
|
8885
8891
|
week: Oe.utcWeek,
|
8886
8892
|
year: Oe.utcYear
|
8887
8893
|
};
|
8888
|
-
function
|
8894
|
+
function bw(e, t) {
|
8889
8895
|
if ("nice" in t && typeof t.nice < "u" && "nice" in e) {
|
8890
8896
|
var n = t.nice;
|
8891
8897
|
if (typeof n == "boolean")
|
@@ -8893,7 +8899,7 @@ function yw(e, t) {
|
|
8893
8899
|
else if (typeof n == "number")
|
8894
8900
|
e.nice(n);
|
8895
8901
|
else {
|
8896
|
-
var r = e, a = (0,
|
8902
|
+
var r = e, a = (0, gw.default)(r);
|
8897
8903
|
if (typeof n == "string")
|
8898
8904
|
r.nice(a ? ku[n] : Ou[n]);
|
8899
8905
|
else {
|
@@ -8905,14 +8911,14 @@ function yw(e, t) {
|
|
8905
8911
|
}
|
8906
8912
|
var ns = {};
|
8907
8913
|
ns.__esModule = !0;
|
8908
|
-
ns.default =
|
8909
|
-
function
|
8914
|
+
ns.default = xw;
|
8915
|
+
function xw(e, t) {
|
8910
8916
|
"padding" in e && "padding" in t && typeof t.padding < "u" && e.padding(t.padding), "paddingInner" in e && "paddingInner" in t && typeof t.paddingInner < "u" && e.paddingInner(t.paddingInner), "paddingOuter" in e && "paddingOuter" in t && typeof t.paddingOuter < "u" && e.paddingOuter(t.paddingOuter);
|
8911
8917
|
}
|
8912
8918
|
var rs = {};
|
8913
8919
|
rs.__esModule = !0;
|
8914
|
-
rs.default =
|
8915
|
-
function
|
8920
|
+
rs.default = _w;
|
8921
|
+
function _w(e, t) {
|
8916
8922
|
if (t.reverse) {
|
8917
8923
|
var n = e.range().slice().reverse();
|
8918
8924
|
"padding" in e, e.range(n);
|
@@ -8920,21 +8926,21 @@ function xw(e, t) {
|
|
8920
8926
|
}
|
8921
8927
|
var is = {};
|
8922
8928
|
is.__esModule = !0;
|
8923
|
-
is.default =
|
8924
|
-
var
|
8925
|
-
function
|
8926
|
-
"round" in t && typeof t.round < "u" && (t.round && "interpolate" in t && typeof t.interpolate < "u" ? console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:", t) : "round" in e ? e.round(t.round) : "interpolate" in e && t.round && e.interpolate(
|
8929
|
+
is.default = Sw;
|
8930
|
+
var ww = Bh;
|
8931
|
+
function Sw(e, t) {
|
8932
|
+
"round" in t && typeof t.round < "u" && (t.round && "interpolate" in t && typeof t.interpolate < "u" ? console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:", t) : "round" in e ? e.round(t.round) : "interpolate" in e && t.round && e.interpolate(ww.interpolateRound));
|
8927
8933
|
}
|
8928
8934
|
var as = {};
|
8929
8935
|
as.__esModule = !0;
|
8930
|
-
as.default =
|
8931
|
-
function
|
8936
|
+
as.default = Tw;
|
8937
|
+
function Tw(e, t) {
|
8932
8938
|
"unknown" in e && "unknown" in t && typeof t.unknown < "u" && e.unknown(t.unknown);
|
8933
8939
|
}
|
8934
8940
|
var os = {};
|
8935
8941
|
os.__esModule = !0;
|
8936
|
-
os.default =
|
8937
|
-
function
|
8942
|
+
os.default = Ow;
|
8943
|
+
function Ow(e, t) {
|
8938
8944
|
if ("zero" in t && t.zero === !0) {
|
8939
8945
|
var n = e.domain(), r = n[0], a = n[1], i = a < r, s = i ? [a, r] : [r, a], o = s[0], l = s[1], u = [Math.min(0, o), Math.max(0, l)];
|
8940
8946
|
e.domain(i ? u.reverse() : u);
|
@@ -8942,8 +8948,8 @@ function Tw(e, t) {
|
|
8942
8948
|
}
|
8943
8949
|
er.__esModule = !0;
|
8944
8950
|
er.ALL_OPERATORS = void 0;
|
8945
|
-
er.default =
|
8946
|
-
var
|
8951
|
+
er.default = Ww;
|
8952
|
+
var kw = Me(qo), Mw = Me(Yo), $w = Me(Vo), Ew = Me(Go), Pw = Me(Ko), Cw = Me(Xo), Nw = Me(Zo), Rw = Me(Qo), Lw = Me(es), Aw = Me(ns), Dw = Me(rs), zw = Me(is), jw = Me(as), Fw = Me(os);
|
8947
8953
|
function Me(e) {
|
8948
8954
|
return e && e.__esModule ? e : { default: e };
|
8949
8955
|
}
|
@@ -8968,23 +8974,23 @@ var Hh = [
|
|
8968
8974
|
"unknown"
|
8969
8975
|
];
|
8970
8976
|
er.ALL_OPERATORS = Hh;
|
8971
|
-
var
|
8972
|
-
domain:
|
8973
|
-
nice:
|
8974
|
-
zero:
|
8975
|
-
interpolate:
|
8976
|
-
round:
|
8977
|
-
align:
|
8978
|
-
base:
|
8979
|
-
clamp:
|
8980
|
-
constant:
|
8981
|
-
exponent:
|
8982
|
-
padding:
|
8983
|
-
range:
|
8984
|
-
reverse:
|
8985
|
-
unknown:
|
8977
|
+
var Iw = {
|
8978
|
+
domain: kw.default,
|
8979
|
+
nice: Lw.default,
|
8980
|
+
zero: Fw.default,
|
8981
|
+
interpolate: Rw.default,
|
8982
|
+
round: zw.default,
|
8983
|
+
align: $w.default,
|
8984
|
+
base: Ew.default,
|
8985
|
+
clamp: Pw.default,
|
8986
|
+
constant: Cw.default,
|
8987
|
+
exponent: Nw.default,
|
8988
|
+
padding: Aw.default,
|
8989
|
+
range: Mw.default,
|
8990
|
+
reverse: Dw.default,
|
8991
|
+
unknown: jw.default
|
8986
8992
|
};
|
8987
|
-
function
|
8993
|
+
function Ww() {
|
8988
8994
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
8989
8995
|
t[n] = arguments[n];
|
8990
8996
|
var r = new Set(t), a = Hh.filter(function(i) {
|
@@ -8992,17 +8998,17 @@ function Iw() {
|
|
8992
8998
|
});
|
8993
8999
|
return function(s, o) {
|
8994
9000
|
return typeof o < "u" && a.forEach(function(l) {
|
8995
|
-
|
9001
|
+
Iw[l](s, o);
|
8996
9002
|
}), s;
|
8997
9003
|
};
|
8998
9004
|
}
|
8999
|
-
var
|
9000
|
-
function
|
9005
|
+
var Bw = Vw, Hw = tw, Uw = qw(er);
|
9006
|
+
function qw(e) {
|
9001
9007
|
return e && e.__esModule ? e : { default: e };
|
9002
9008
|
}
|
9003
|
-
var
|
9004
|
-
function
|
9005
|
-
return
|
9009
|
+
var Yw = (0, Uw.default)("domain", "range", "reverse", "unknown");
|
9010
|
+
function Vw(e) {
|
9011
|
+
return Yw((0, Hw.scaleOrdinal)(), e);
|
9006
9012
|
}
|
9007
9013
|
var at = {
|
9008
9014
|
red: ["#fff5f5", "#ffe3e3", "#ffc9c9", "#ffa8a8", "#ff8787", "#ff6b6b", "#fa5252", "#f03e3e", "#e03131", "#c92a2a"],
|
@@ -9018,7 +9024,7 @@ var at = {
|
|
9018
9024
|
yellow: ["#fff9db", "#fff3bf", "#ffec99", "#ffe066", "#ffd43b", "#fcc419", "#fab005", "#f59f00", "#f08c00", "#e67700"],
|
9019
9025
|
orange: ["#fff4e6", "#ffe8cc", "#ffd8a8", "#ffc078", "#ffa94d", "#ff922b", "#fd7e14", "#f76707", "#e8590c", "#d9480f"],
|
9020
9026
|
gray: ["#f8f9fa", "#f1f3f5", "#e9ecef", "#dee2e6", "#ced4da", "#adb5bd", "#868e96", "#495057", "#343a40", "#212529"]
|
9021
|
-
}, _n = at.gray, Vi = _n[7],
|
9027
|
+
}, _n = at.gray, Vi = _n[7], Gw = [at.cyan[9], at.cyan[3], at.yellow[5], at.red[4], at.grape[8], at.grape[5], at.pink[9]];
|
9022
9028
|
function oe() {
|
9023
9029
|
return oe = Object.assign ? Object.assign.bind() : function(e) {
|
9024
9030
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -9037,7 +9043,7 @@ var Gi = {
|
|
9037
9043
|
pointerEvents: "none",
|
9038
9044
|
letterSpacing: 0.4
|
9039
9045
|
};
|
9040
|
-
function
|
9046
|
+
function Kw(e) {
|
9041
9047
|
var t, n, r, a, i, s, o = oe({}, Gi, {
|
9042
9048
|
fill: Vi,
|
9043
9049
|
stroke: "none"
|
@@ -9141,9 +9147,9 @@ function Gw(e) {
|
|
9141
9147
|
}
|
9142
9148
|
};
|
9143
9149
|
}
|
9144
|
-
const
|
9150
|
+
const Xw = Kw({
|
9145
9151
|
backgroundColor: "#fff",
|
9146
|
-
colors:
|
9152
|
+
colors: Gw,
|
9147
9153
|
tickLength: 4,
|
9148
9154
|
svgLabelSmall: {
|
9149
9155
|
fill: _n[7]
|
@@ -9154,7 +9160,7 @@ const Kw = Gw({
|
|
9154
9160
|
gridColor: _n[5],
|
9155
9161
|
gridColorDark: _n[9]
|
9156
9162
|
});
|
9157
|
-
var
|
9163
|
+
var Zw = /* @__PURE__ */ E.createContext(Xw), Qw = /* @__PURE__ */ function() {
|
9158
9164
|
function e() {
|
9159
9165
|
this.registry = {}, this.registryKeys = [];
|
9160
9166
|
}
|
@@ -9177,9 +9183,9 @@ var Xw = /* @__PURE__ */ E.createContext(Kw), Zw = /* @__PURE__ */ function() {
|
|
9177
9183
|
return this.registryKeys;
|
9178
9184
|
}, e;
|
9179
9185
|
}();
|
9180
|
-
function
|
9186
|
+
function Jw() {
|
9181
9187
|
var e = jn(Math.random()), t = e[1], n = le(function() {
|
9182
|
-
return new
|
9188
|
+
return new Qw();
|
9183
9189
|
}, []);
|
9184
9190
|
return le(function() {
|
9185
9191
|
return {
|
@@ -9211,7 +9217,7 @@ var Ki = {
|
|
9211
9217
|
left: 0
|
9212
9218
|
}
|
9213
9219
|
};
|
9214
|
-
function
|
9220
|
+
function eS(e) {
|
9215
9221
|
var t = jn({
|
9216
9222
|
width: (e == null ? void 0 : e.width) == null ? Ki.width : e.width,
|
9217
9223
|
height: (e == null ? void 0 : e.height) == null ? Ki.height : e.height,
|
@@ -9234,7 +9240,7 @@ function Bt() {
|
|
9234
9240
|
return e;
|
9235
9241
|
}, Bt.apply(this, arguments);
|
9236
9242
|
}
|
9237
|
-
function
|
9243
|
+
function tS(e) {
|
9238
9244
|
var t = e.dataRegistry, n = e.xRange, r = e.xScaleConfig, a = e.yRange, i = e.yScaleConfig, s = t.keys(), o = n[0], l = n[1], u = a[0], c = a[1], f = le(function() {
|
9239
9245
|
var p = s.map(function(m) {
|
9240
9246
|
return t.get(m);
|
@@ -9284,14 +9290,14 @@ function eS(e) {
|
|
9284
9290
|
};
|
9285
9291
|
}
|
9286
9292
|
function Uh(e) {
|
9287
|
-
var t = e.initialDimensions, n = e.theme, r = e.xScale, a = e.yScale, i = e.children, s = e.horizontal, o = s === void 0 ? "auto" : s, l = e.resizeObserverPolyfill, u = Se(
|
9293
|
+
var t = e.initialDimensions, n = e.theme, r = e.xScale, a = e.yScale, i = e.children, s = e.horizontal, o = s === void 0 ? "auto" : s, l = e.resizeObserverPolyfill, u = Se(Zw), c = n || u, f = eS(t), h = f[0], p = h.width, d = h.height, v = h.margin, b = f[1], m = Math.max(0, p - v.left - v.right), y = Math.max(0, d - v.top - v.bottom), x = Jw(), k = tS({
|
9288
9294
|
dataRegistry: x,
|
9289
9295
|
xScaleConfig: r,
|
9290
9296
|
yScaleConfig: a,
|
9291
9297
|
xRange: [v.left, Math.max(0, p - v.right)],
|
9292
9298
|
yRange: [Math.max(0, d - v.bottom), v.top]
|
9293
9299
|
}), g = k.xScale, _ = k.yScale, S = x.keys(), M = le(function() {
|
9294
|
-
return
|
9300
|
+
return Bw({
|
9295
9301
|
domain: S,
|
9296
9302
|
range: c.colors
|
9297
9303
|
});
|
@@ -9350,11 +9356,11 @@ function qh(e) {
|
|
9350
9356
|
onPointerDown: u ? y : void 0
|
9351
9357
|
};
|
9352
9358
|
}
|
9353
|
-
var
|
9359
|
+
var nS = "GLYPHSERIES_EVENT_SOURCE", rS = "LINESERIES_EVENT_SOURCE", di = "XYCHART_EVENT_SOURCE";
|
9354
9360
|
function Yh(e) {
|
9355
9361
|
return !!e && ("clientX" in e || "changedTouches" in e);
|
9356
9362
|
}
|
9357
|
-
function
|
9363
|
+
function iS(e) {
|
9358
9364
|
return !!e && !Yh(e);
|
9359
9365
|
}
|
9360
9366
|
function Vh(e) {
|
@@ -9379,7 +9385,7 @@ function Vh(e) {
|
|
9379
9385
|
distance: g
|
9380
9386
|
};
|
9381
9387
|
}
|
9382
|
-
function
|
9388
|
+
function aS(e) {
|
9383
9389
|
var t = e.xScale, n = e.xAccessor, r = e.yScale, a = e.yAccessor, i = e.point, s = e.data;
|
9384
9390
|
if (!i) return null;
|
9385
9391
|
var o = Vh({
|
@@ -9395,7 +9401,7 @@ function iS(e) {
|
|
9395
9401
|
distanceY: Math.abs(Number(r(a(o.datum))) - i.y)
|
9396
9402
|
} : null;
|
9397
9403
|
}
|
9398
|
-
function
|
9404
|
+
function oS(e) {
|
9399
9405
|
var t = e.yScale, n = e.yAccessor, r = e.xScale, a = e.xAccessor, i = e.point, s = e.data;
|
9400
9406
|
if (!i) return null;
|
9401
9407
|
var o = Vh({
|
@@ -9423,7 +9429,7 @@ function Va() {
|
|
9423
9429
|
}
|
9424
9430
|
var Ga = "__POINTER_EVENTS_ALL", mr = "__POINTER_EVENTS_NEAREST";
|
9425
9431
|
function Gh(e) {
|
9426
|
-
var t = e.dataKey, n = e.findNearestDatum, r = e.onBlur, a = e.onFocus, i = e.onPointerMove, s = e.onPointerOut, o = e.onPointerUp, l = e.onPointerDown, u = e.allowedSources, c = Se(Xe), f = c.width, h = c.height, p = c.horizontal, d = c.dataRegistry, v = c.xScale, b = c.yScale, m = n || (p ?
|
9432
|
+
var t = e.dataKey, n = e.findNearestDatum, r = e.onBlur, a = e.onFocus, i = e.onPointerMove, s = e.onPointerOut, o = e.onPointerUp, l = e.onPointerDown, u = e.allowedSources, c = Se(Xe), f = c.width, h = c.height, p = c.horizontal, d = c.dataRegistry, v = c.xScale, b = c.yScale, m = n || (p ? oS : aS), y = ae(function(O) {
|
9427
9433
|
var $ = O || {}, C = $.svgPoint, N = $.event, L = {}, I = null, X = 1 / 0;
|
9428
9434
|
if (O && N && C && f && h && v && b) {
|
9429
9435
|
var U, Z = t === mr || t === Ga, J = Z ? (U = d == null ? void 0 : d.keys()) != null ? U : [] : Array.isArray(t) ? t : [t];
|
@@ -9478,7 +9484,7 @@ function Gh(e) {
|
|
9478
9484
|
$ && Yh($) && s && s($);
|
9479
9485
|
}, [s]), M = ae(function(O) {
|
9480
9486
|
var $ = O == null ? void 0 : O.event;
|
9481
|
-
$ &&
|
9487
|
+
$ && iS($) && r && r($);
|
9482
9488
|
}, [r]);
|
9483
9489
|
ot("pointermove", i ? x : void 0, u), ot("pointerout", s ? S : void 0, u), ot("pointerup", o ? k : void 0, u), ot("pointerdown", l ? g : void 0, u), ot("focus", a ? _ : void 0, u), ot("blur", r ? M : void 0, u);
|
9484
9490
|
}
|
@@ -9492,14 +9498,14 @@ function Fr() {
|
|
9492
9498
|
return e;
|
9493
9499
|
}, Fr.apply(this, arguments);
|
9494
9500
|
}
|
9495
|
-
var
|
9501
|
+
var sS = {
|
9496
9502
|
top: 50,
|
9497
9503
|
right: 50,
|
9498
9504
|
bottom: 50,
|
9499
9505
|
left: 50
|
9500
|
-
},
|
9506
|
+
}, lS = [di];
|
9501
9507
|
function Ht(e) {
|
9502
|
-
var t = e.accessibilityLabel, n = t === void 0 ? "XYChart" : t, r = e.captureEvents, a = r === void 0 ? !0 : r, i = e.children, s = e.height, o = e.horizontal, l = e.margin, u = l === void 0 ?
|
9508
|
+
var t = e.accessibilityLabel, n = t === void 0 ? "XYChart" : t, r = e.captureEvents, a = r === void 0 ? !0 : r, i = e.children, s = e.height, o = e.horizontal, l = e.margin, u = l === void 0 ? sS : l, c = e.onPointerMove, f = e.onPointerOut, h = e.onPointerUp, p = e.onPointerDown, d = e.pointerEventsDataKey, v = d === void 0 ? "nearest" : d, b = e.theme, m = e.width, y = e.xScale, x = e.yScale, k = e.resizeObserverPolyfill, g = Se(Xe), _ = g.setDimensions, S = g.resizeObserverPolyfill, M = Se(Jn), O = ot();
|
9503
9509
|
Fe(function() {
|
9504
9510
|
_ && m != null && s != null && m > 0 && s > 0 && _({
|
9505
9511
|
width: m,
|
@@ -9516,15 +9522,15 @@ function Ht(e) {
|
|
9516
9522
|
onPointerOut: f,
|
9517
9523
|
onPointerUp: h,
|
9518
9524
|
onPointerDown: p,
|
9519
|
-
allowedSources:
|
9520
|
-
}), _ ? m == null || s == null ? /* @__PURE__ */ E.createElement(
|
9525
|
+
allowedSources: lS
|
9526
|
+
}), _ ? m == null || s == null ? /* @__PURE__ */ E.createElement(V_, {
|
9521
9527
|
resizeObserverPolyfill: S
|
9522
9528
|
}, function(C) {
|
9523
9529
|
return /* @__PURE__ */ E.createElement(Ht, Fr({}, e, {
|
9524
9530
|
width: e.width == null ? C.width : e.width,
|
9525
9531
|
height: e.height == null ? C.height : e.height
|
9526
9532
|
}));
|
9527
|
-
}) : M == null ? /* @__PURE__ */ E.createElement(Wh, null, /* @__PURE__ */ E.createElement(Ht, e)) : O == null ? /* @__PURE__ */ E.createElement(
|
9533
|
+
}) : M == null ? /* @__PURE__ */ E.createElement(Wh, null, /* @__PURE__ */ E.createElement(Ht, e)) : O == null ? /* @__PURE__ */ E.createElement(ew, null, /* @__PURE__ */ E.createElement(Ht, e)) : m <= 0 || s <= 0 ? (process.env.NODE_ENV === "development" && console.info("XYChart has a zero width or height, bailing", {
|
9528
9534
|
width: m,
|
9529
9535
|
height: s
|
9530
9536
|
}), null) : /* @__PURE__ */ E.createElement("svg", {
|
@@ -9563,7 +9569,7 @@ Ht.propTypes = {
|
|
9563
9569
|
onPointerDown: w.func,
|
9564
9570
|
pointerEventsDataKey: w.oneOf(["all", "nearest"])
|
9565
9571
|
};
|
9566
|
-
var
|
9572
|
+
var uS = pS, Xi = Kh(E), cS = Kh(Fn), fS = mt, hS = ["children", "data", "x", "y", "fill", "className", "curve", "innerRef", "defined"];
|
9567
9573
|
function Kh(e) {
|
9568
9574
|
return e && e.__esModule ? e : { default: e };
|
9569
9575
|
}
|
@@ -9577,17 +9583,17 @@ function Ka() {
|
|
9577
9583
|
return e;
|
9578
9584
|
}, Ka.apply(this, arguments);
|
9579
9585
|
}
|
9580
|
-
function
|
9586
|
+
function dS(e, t) {
|
9581
9587
|
if (e == null) return {};
|
9582
9588
|
var n = {}, r = Object.keys(e), a, i;
|
9583
9589
|
for (i = 0; i < r.length; i++)
|
9584
9590
|
a = r[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
9585
9591
|
return n;
|
9586
9592
|
}
|
9587
|
-
function
|
9593
|
+
function pS(e) {
|
9588
9594
|
var t = e.children, n = e.data, r = n === void 0 ? [] : n, a = e.x, i = e.y, s = e.fill, o = s === void 0 ? "transparent" : s, l = e.className, u = e.curve, c = e.innerRef, f = e.defined, h = f === void 0 ? function() {
|
9589
9595
|
return !0;
|
9590
|
-
} : f, p =
|
9596
|
+
} : f, p = dS(e, hS), d = (0, fS.line)({
|
9591
9597
|
x: a,
|
9592
9598
|
y: i,
|
9593
9599
|
defined: h,
|
@@ -9597,7 +9603,7 @@ function dS(e) {
|
|
9597
9603
|
path: d
|
9598
9604
|
})) : /* @__PURE__ */ Xi.default.createElement("path", Ka({
|
9599
9605
|
ref: c,
|
9600
|
-
className: (0,
|
9606
|
+
className: (0, cS.default)("visx-linepath", l),
|
9601
9607
|
d: d(r) || "",
|
9602
9608
|
fill: o,
|
9603
9609
|
strokeLinecap: "round"
|
@@ -9696,7 +9702,7 @@ function ss(e) {
|
|
9696
9702
|
return Ir(x, y);
|
9697
9703
|
}, [x, y]), C = le(function() {
|
9698
9704
|
return Ir(g, k);
|
9699
|
-
}, [g, k]), N = (t = (n = S == null ? void 0 : S(s)) != null ? n : M == null || (r = M.colors) == null ? void 0 : r[0]) != null ? t : "#222", L =
|
9705
|
+
}, [g, k]), N = (t = (n = S == null ? void 0 : S(s)) != null ? n : M == null || (r = M.colors) == null ? void 0 : r[0]) != null ? t : "#222", L = nS + "-" + s, I = Zh({
|
9700
9706
|
dataKey: s,
|
9701
9707
|
enableEvents: d,
|
9702
9708
|
onBlur: o,
|
@@ -9736,7 +9742,7 @@ ss.propTypes = {
|
|
9736
9742
|
size: w.oneOfType([w.number, w.func]),
|
9737
9743
|
renderGlyphs: w.func.isRequired
|
9738
9744
|
};
|
9739
|
-
const
|
9745
|
+
const vS = Xh(ss);
|
9740
9746
|
function Qh(e) {
|
9741
9747
|
var t = e.key, n = e.color, r = e.x, a = e.y, i = e.size, s = e.onBlur, o = e.onFocus, l = e.onPointerMove, u = e.onPointerOut, c = e.onPointerUp;
|
9742
9748
|
return /* @__PURE__ */ E.createElement("circle", {
|
@@ -9754,7 +9760,7 @@ function Qh(e) {
|
|
9754
9760
|
onPointerUp: c
|
9755
9761
|
});
|
9756
9762
|
}
|
9757
|
-
var
|
9763
|
+
var mS = ["renderGlyph"];
|
9758
9764
|
function Wr() {
|
9759
9765
|
return Wr = Object.assign ? Object.assign.bind() : function(e) {
|
9760
9766
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -9765,15 +9771,15 @@ function Wr() {
|
|
9765
9771
|
return e;
|
9766
9772
|
}, Wr.apply(this, arguments);
|
9767
9773
|
}
|
9768
|
-
function
|
9774
|
+
function gS(e, t) {
|
9769
9775
|
if (e == null) return {};
|
9770
9776
|
var n = {}, r = Object.keys(e), a, i;
|
9771
9777
|
for (i = 0; i < r.length; i++)
|
9772
9778
|
a = r[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
9773
9779
|
return n;
|
9774
9780
|
}
|
9775
|
-
function
|
9776
|
-
var t = e.renderGlyph, n = t === void 0 ? Qh : t, r =
|
9781
|
+
function yS(e) {
|
9782
|
+
var t = e.renderGlyph, n = t === void 0 ? Qh : t, r = gS(e, mS), a = ae(function(i) {
|
9777
9783
|
var s = i.glyphs, o = i.onPointerMove, l = i.onPointerOut, u = i.onPointerUp, c = i.onFocus, f = i.onBlur;
|
9778
9784
|
return s.map(function(h) {
|
9779
9785
|
return /* @__PURE__ */ E.createElement(E.Fragment, {
|
@@ -9787,14 +9793,14 @@ function gS(e) {
|
|
9787
9793
|
})));
|
9788
9794
|
});
|
9789
9795
|
}, [n]);
|
9790
|
-
return /* @__PURE__ */ E.createElement(
|
9796
|
+
return /* @__PURE__ */ E.createElement(vS, Wr({}, r, {
|
9791
9797
|
// @TODO currently generics for non-SeriesProps are not passed correctly in
|
9792
9798
|
// withRegisteredData HOC
|
9793
9799
|
// @ts-expect-error
|
9794
9800
|
renderGlyphs: a
|
9795
9801
|
}));
|
9796
9802
|
}
|
9797
|
-
var
|
9803
|
+
var bS = ["colorAccessor", "curve", "data", "dataKey", "onBlur", "onFocus", "onPointerMove", "onPointerOut", "onPointerUp", "onPointerDown", "enableEvents", "xAccessor", "xScale", "yAccessor", "yScale", "PathComponent"];
|
9798
9804
|
function En() {
|
9799
9805
|
return En = Object.assign ? Object.assign.bind() : function(e) {
|
9800
9806
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -9805,7 +9811,7 @@ function En() {
|
|
9805
9811
|
return e;
|
9806
9812
|
}, En.apply(this, arguments);
|
9807
9813
|
}
|
9808
|
-
function
|
9814
|
+
function xS(e, t) {
|
9809
9815
|
if (e == null) return {};
|
9810
9816
|
var n = {}, r = Object.keys(e), a, i;
|
9811
9817
|
for (i = 0; i < r.length; i++)
|
@@ -9813,13 +9819,13 @@ function bS(e, t) {
|
|
9813
9819
|
return n;
|
9814
9820
|
}
|
9815
9821
|
function Jh(e) {
|
9816
|
-
var t, n, r, a = e.colorAccessor, i = e.curve, s = e.data, o = e.dataKey, l = e.onBlur, u = e.onFocus, c = e.onPointerMove, f = e.onPointerOut, h = e.onPointerUp, p = e.onPointerDown, d = e.enableEvents, v = d === void 0 ? !0 : d, b = e.xAccessor, m = e.xScale, y = e.yAccessor, x = e.yScale, k = e.PathComponent, g = k === void 0 ? "path" : k, _ =
|
9822
|
+
var t, n, r, a = e.colorAccessor, i = e.curve, s = e.data, o = e.dataKey, l = e.onBlur, u = e.onFocus, c = e.onPointerMove, f = e.onPointerOut, h = e.onPointerUp, p = e.onPointerDown, d = e.enableEvents, v = d === void 0 ? !0 : d, b = e.xAccessor, m = e.xScale, y = e.yAccessor, x = e.yScale, k = e.PathComponent, g = k === void 0 ? "path" : k, _ = xS(e, bS), S = Se(Xe), M = S.colorScale, O = S.theme, $ = le(function() {
|
9817
9823
|
return Ir(m, b);
|
9818
9824
|
}, [m, b]), C = le(function() {
|
9819
9825
|
return Ir(x, y);
|
9820
9826
|
}, [x, y]), N = ae(function(J) {
|
9821
9827
|
return ke(m(b(J))) && ke(x(y(J)));
|
9822
|
-
}, [m, b, x, y]), L = (t = (n = M == null ? void 0 : M(o)) != null ? n : O == null || (r = O.colors) == null ? void 0 : r[0]) != null ? t : "#222", I =
|
9828
|
+
}, [m, b, x, y]), L = (t = (n = M == null ? void 0 : M(o)) != null ? n : O == null || (r = O.colors) == null ? void 0 : r[0]) != null ? t : "#222", I = rS + "-" + o, X = Zh({
|
9823
9829
|
dataKey: o,
|
9824
9830
|
enableEvents: v,
|
9825
9831
|
onBlur: l,
|
@@ -9842,7 +9848,7 @@ function Jh(e) {
|
|
9842
9848
|
})));
|
9843
9849
|
}) : null;
|
9844
9850
|
}, [U, X.onFocus, X.onBlur]);
|
9845
|
-
return /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement(
|
9851
|
+
return /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement(uS, En({
|
9846
9852
|
x: $,
|
9847
9853
|
y: C,
|
9848
9854
|
defined: N,
|
@@ -9871,11 +9877,11 @@ function Jh(e) {
|
|
9871
9877
|
Jh.propTypes = {
|
9872
9878
|
colorAccessor: w.func
|
9873
9879
|
};
|
9874
|
-
const
|
9875
|
-
function
|
9876
|
-
return /* @__PURE__ */ E.createElement(
|
9880
|
+
const _S = Xh(Jh);
|
9881
|
+
function wS(e) {
|
9882
|
+
return /* @__PURE__ */ E.createElement(_S, e);
|
9877
9883
|
}
|
9878
|
-
const
|
9884
|
+
const SS = {
|
9879
9885
|
lines: "LinesChartProps[]",
|
9880
9886
|
barTooltip: "(props: LineTooltipProps) => JSX.Element",
|
9881
9887
|
grid: "GridProps",
|
@@ -9921,15 +9927,15 @@ function ed(e) {
|
|
9921
9927
|
fontSize: "16px"
|
9922
9928
|
}
|
9923
9929
|
}
|
9924
|
-
), /* @__PURE__ */ D.createElement(Ht, { height: 300, xScale: r, yScale: a }, /* @__PURE__ */ D.createElement(pu, { strokeWidth: "1", orientation: "bottom", tickFormat: f, ...i }), /* @__PURE__ */ D.createElement(pu, { orientation: "left", ...s }), /* @__PURE__ */ D.createElement(
|
9925
|
-
|
9930
|
+
), /* @__PURE__ */ D.createElement(Ht, { height: 300, xScale: r, yScale: a }, /* @__PURE__ */ D.createElement(pu, { strokeWidth: "1", orientation: "bottom", tickFormat: f, ...i }), /* @__PURE__ */ D.createElement(pu, { orientation: "left", ...s }), /* @__PURE__ */ D.createElement(qx, { ...o }), n.map((p, d) => /* @__PURE__ */ D.createElement(D.Fragment, { key: `${t.current}${d}` }, /* @__PURE__ */ D.createElement(
|
9931
|
+
yS,
|
9926
9932
|
{
|
9927
9933
|
dataKey: p.name,
|
9928
9934
|
colorAccessor: () => gi[p.color],
|
9929
9935
|
data: [p.data],
|
9930
9936
|
...c
|
9931
9937
|
}
|
9932
|
-
), /* @__PURE__ */ D.createElement(
|
9938
|
+
), /* @__PURE__ */ D.createElement(wS, { dataKey: p.name, stroke: gi[p.color], strokeDasharray: p.strokeDashArray ? "4,3" : "", data: p.data, ...c }))), /* @__PURE__ */ D.createElement(
|
9933
9939
|
zh,
|
9934
9940
|
{
|
9935
9941
|
snapTooltipToDatumX: !0,
|
@@ -9950,10 +9956,10 @@ function ed(e) {
|
|
9950
9956
|
)));
|
9951
9957
|
}
|
9952
9958
|
Object.assign(ed, {
|
9953
|
-
props:
|
9959
|
+
props: SS,
|
9954
9960
|
displayName: "SpsLineChart"
|
9955
9961
|
});
|
9956
|
-
const
|
9962
|
+
const TS = {
|
9957
9963
|
basic: {
|
9958
9964
|
label: "Basic",
|
9959
9965
|
description: () => /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement("p", null, "Line chart example."), /* @__PURE__ */ D.createElement("p", null, /* @__PURE__ */ D.createElement("code", null, "<grid>"), " allows override grid property. Optional. Type of ", /* @__PURE__ */ D.createElement("code", null, "GridProps"), " which comes from", /* @__PURE__ */ D.createElement("code", null, "@visx/xychart/lib/components/grid/Grid"), " package, which is a peer dependency of our React components."), /* @__PURE__ */ D.createElement("p", null, /* @__PURE__ */ D.createElement("code", null, "<xAxis>"), " and ", /* @__PURE__ */ D.createElement("code", null, "<yAxis>"), " allow override X/Y axes property. Optional. Type of", /* @__PURE__ */ D.createElement("code", null, "CommonProps<AxisScale>"), " which comes from", /* @__PURE__ */ D.createElement("code", null, "@visx/axis/lib/types"), " package, which is a peer dependency of our React components."), /* @__PURE__ */ D.createElement("p", null, /* @__PURE__ */ D.createElement("code", null, "<xScale>"), " and ", /* @__PURE__ */ D.createElement("code", null, "<yScale>"), " allow override scale configuration for X/Y axes. Type of", /* @__PURE__ */ D.createElement("code", null, "ScaleConfig<AxisScaleOutput, any, any>"), " comes from", /* @__PURE__ */ D.createElement("code", null, "@visx/scale"), " and ", /* @__PURE__ */ D.createElement("code", null, "@visx/axis"), " packages, which is a peer dependency of our React components.")),
|
@@ -10035,28 +10041,28 @@ const SS = {
|
|
10035
10041
|
}
|
10036
10042
|
}
|
10037
10043
|
}
|
10038
|
-
},
|
10044
|
+
}, CS = {
|
10039
10045
|
"Bar Charts": {
|
10040
10046
|
description: () => /* @__PURE__ */ D.createElement("p", null, "Bar Charts are a data visualization used to compare sets of data to more easily analyze questions or identify gaps oriented toward user goals. ", /* @__PURE__ */ D.createElement("br", null), "Each chart should focus on answering a single question about the dataset."),
|
10041
10047
|
components: [dh, ph],
|
10042
|
-
examples:
|
10048
|
+
examples: Zb
|
10043
10049
|
},
|
10044
10050
|
"Line Charts": {
|
10045
10051
|
components: [ed],
|
10046
|
-
examples:
|
10052
|
+
examples: TS
|
10047
10053
|
},
|
10048
10054
|
"Stacked Horizontal Bar Charts": {
|
10049
10055
|
components: [Th],
|
10050
|
-
examples:
|
10056
|
+
examples: ux
|
10051
10057
|
}
|
10052
10058
|
};
|
10053
10059
|
export {
|
10054
|
-
|
10060
|
+
CS as MANIFEST,
|
10055
10061
|
dh as SpsBarChart,
|
10056
|
-
|
10062
|
+
Zb as SpsBarChartExamples,
|
10057
10063
|
ph as SpsHorizontalBarChart,
|
10058
10064
|
ed as SpsLineChart,
|
10059
|
-
|
10065
|
+
TS as SpsLineChartExamples,
|
10060
10066
|
Th as SpsStackedHorizontalBarChart,
|
10061
|
-
|
10067
|
+
ux as SpsStackedHorizontalBarChartExamples
|
10062
10068
|
};
|