@mx-cartographer/experiences 7.2.15-alpha-ram21-finstrong-testing → 7.2.15-alpha-ram23-finstrong-testing
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/dist/finstrong/index.es.js +21 -14
- package/package.json +1 -1
|
@@ -1682,15 +1682,20 @@ const L = {
|
|
|
1682
1682
|
totalComparison: d,
|
|
1683
1683
|
totalMain: l
|
|
1684
1684
|
}) => {
|
|
1685
|
-
const p = E(), h = so(p.breakpoints.down("xs"))
|
|
1685
|
+
const p = E(), h = so(p.breakpoints.down("xs"));
|
|
1686
|
+
console.log(r, "data");
|
|
1687
|
+
const _ = m.useMemo(
|
|
1686
1688
|
() => r.sort((g, f) => g.month - f.month).map((g) => {
|
|
1687
1689
|
const f = Ln(g.month), M = {
|
|
1688
1690
|
spending_vs_income: {
|
|
1689
|
-
main: g.
|
|
1690
|
-
comparison: g.
|
|
1691
|
-
formattedMain: W(
|
|
1691
|
+
main: g.standard_spend,
|
|
1692
|
+
comparison: g.income,
|
|
1693
|
+
formattedMain: W(
|
|
1694
|
+
g.income > 1e3 ? Math.round(g.standard_spend / 100) * 100 : Math.round(g.standard_spend),
|
|
1695
|
+
"0.0a"
|
|
1696
|
+
),
|
|
1692
1697
|
formattedComparison: W(
|
|
1693
|
-
Math.round(g.
|
|
1698
|
+
g.standard_spend > 1e3 ? Math.round(g.income / 100) * 100 : Math.round(g.income),
|
|
1694
1699
|
"0.0a"
|
|
1695
1700
|
)
|
|
1696
1701
|
},
|
|
@@ -1707,7 +1712,9 @@ const L = {
|
|
|
1707
1712
|
};
|
|
1708
1713
|
}),
|
|
1709
1714
|
[r, t]
|
|
1710
|
-
)
|
|
1715
|
+
);
|
|
1716
|
+
console.log(_, "chartData");
|
|
1717
|
+
const b = {
|
|
1711
1718
|
dataKey: "label",
|
|
1712
1719
|
scaleType: "band"
|
|
1713
1720
|
}, x = Math.max(..._.map((g) => Math.max(g.main, g.comparison))), v = Math.ceil(x * 1.2 / 1e3) * 1e3, y = v / 3, D = {
|
|
@@ -1763,17 +1770,17 @@ const L = {
|
|
|
1763
1770
|
sx: {
|
|
1764
1771
|
width: 10,
|
|
1765
1772
|
height: 10,
|
|
1766
|
-
backgroundColor: "chartMono.
|
|
1773
|
+
backgroundColor: "chartMono.chartMono3",
|
|
1767
1774
|
borderRadius: "2px"
|
|
1768
1775
|
}
|
|
1769
1776
|
}
|
|
1770
1777
|
),
|
|
1771
1778
|
/* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1772
1779
|
/* @__PURE__ */ i(I, { variant: "subtitle2", children: [
|
|
1773
|
-
|
|
1780
|
+
a,
|
|
1774
1781
|
" "
|
|
1775
1782
|
] }),
|
|
1776
|
-
!h &&
|
|
1783
|
+
!h && l && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: l })
|
|
1777
1784
|
] })
|
|
1778
1785
|
] }),
|
|
1779
1786
|
/* @__PURE__ */ i(u, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
@@ -1783,17 +1790,17 @@ const L = {
|
|
|
1783
1790
|
sx: {
|
|
1784
1791
|
width: 10,
|
|
1785
1792
|
height: 10,
|
|
1786
|
-
backgroundColor: "chartMono.
|
|
1793
|
+
backgroundColor: "chartMono.chartMono5",
|
|
1787
1794
|
borderRadius: "2px"
|
|
1788
1795
|
}
|
|
1789
1796
|
}
|
|
1790
1797
|
),
|
|
1791
1798
|
/* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1792
1799
|
/* @__PURE__ */ i(I, { variant: "subtitle2", children: [
|
|
1793
|
-
|
|
1800
|
+
s,
|
|
1794
1801
|
" "
|
|
1795
1802
|
] }),
|
|
1796
|
-
!h &&
|
|
1803
|
+
!h && d && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
|
|
1797
1804
|
] })
|
|
1798
1805
|
] })
|
|
1799
1806
|
] }),
|
|
@@ -1805,8 +1812,8 @@ const L = {
|
|
|
1805
1812
|
height: 240,
|
|
1806
1813
|
margin: { top: 20, bottom: 30, right: 10, left: 42 },
|
|
1807
1814
|
series: [
|
|
1808
|
-
{ dataKey: "
|
|
1809
|
-
{ dataKey: "
|
|
1815
|
+
{ dataKey: "main", type: "bar" },
|
|
1816
|
+
{ dataKey: "comparison", type: "bar" }
|
|
1810
1817
|
],
|
|
1811
1818
|
xAxis: [b],
|
|
1812
1819
|
yAxis: [D],
|
package/package.json
CHANGED