sag_components 2.0.0-beta63 → 2.0.0-beta64
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/index.esm.js +19 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +19 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31488,15 +31488,15 @@ const SeparatedLineBarChart = ({
|
|
|
31488
31488
|
payload
|
|
31489
31489
|
} = props;
|
|
31490
31490
|
const label = payload.value;
|
|
31491
|
-
const words = label.split(
|
|
31491
|
+
const words = label.split(" ");
|
|
31492
31492
|
const chunks = [];
|
|
31493
|
-
let currentChunk =
|
|
31493
|
+
let currentChunk = "";
|
|
31494
31494
|
words.forEach(word => {
|
|
31495
31495
|
if (currentChunk.length + word.length > 15) {
|
|
31496
31496
|
chunks.push(currentChunk.trim());
|
|
31497
31497
|
currentChunk = word;
|
|
31498
31498
|
} else {
|
|
31499
|
-
currentChunk += (currentChunk ?
|
|
31499
|
+
currentChunk += (currentChunk ? " " : "") + word;
|
|
31500
31500
|
}
|
|
31501
31501
|
});
|
|
31502
31502
|
if (currentChunk) {
|
|
@@ -31543,7 +31543,7 @@ const SeparatedLineBarChart = ({
|
|
|
31543
31543
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31544
31544
|
style: {
|
|
31545
31545
|
width: "100%",
|
|
31546
|
-
height: "
|
|
31546
|
+
height: "100%"
|
|
31547
31547
|
}
|
|
31548
31548
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31549
31549
|
style: {
|
|
@@ -31587,7 +31587,7 @@ const SeparatedLineBarChart = ({
|
|
|
31587
31587
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
|
|
31588
31588
|
dataKey: "inc_roi",
|
|
31589
31589
|
position: "top",
|
|
31590
|
-
formatter: value => value
|
|
31590
|
+
formatter: value => `$${getFormattedValue(value)}${getFormattedUnits(value)}`,
|
|
31591
31591
|
fill: "#212121",
|
|
31592
31592
|
fontSize: 12,
|
|
31593
31593
|
fontWeight: "400",
|
|
@@ -31722,11 +31722,7 @@ function SingleChart({
|
|
|
31722
31722
|
if (!data) return null;
|
|
31723
31723
|
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle, null, `${data.label}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `${data.description}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `${data.typeTitle}: ${getFormattedValue(data.value)}${getFormattedUnits(data.value)}`));
|
|
31724
31724
|
};
|
|
31725
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
31726
|
-
style: {
|
|
31727
|
-
width: "100%"
|
|
31728
|
-
}
|
|
31729
|
-
}, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
|
|
31725
|
+
return /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
|
|
31730
31726
|
width: width,
|
|
31731
31727
|
height: height
|
|
31732
31728
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.ComposedChart, {
|
|
@@ -31765,7 +31761,7 @@ function SingleChart({
|
|
|
31765
31761
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
|
|
31766
31762
|
dataKey: "value",
|
|
31767
31763
|
position: "top",
|
|
31768
|
-
formatter: value => `$${value
|
|
31764
|
+
formatter: value => `$${getFormattedValue(value)}${getFormattedUnits(value)}`,
|
|
31769
31765
|
fill: "#212121",
|
|
31770
31766
|
fontSize: 12,
|
|
31771
31767
|
fontWeight: "400",
|
|
@@ -31782,7 +31778,7 @@ function SingleChart({
|
|
|
31782
31778
|
iconType: "Square",
|
|
31783
31779
|
title: "INC Units"
|
|
31784
31780
|
}]
|
|
31785
|
-
}))
|
|
31781
|
+
}));
|
|
31786
31782
|
}
|
|
31787
31783
|
|
|
31788
31784
|
styled__default["default"].div`
|
|
@@ -32144,7 +32140,17 @@ function InnerBarChart({
|
|
|
32144
32140
|
travellerWidth: 10,
|
|
32145
32141
|
startIndex: 0,
|
|
32146
32142
|
endIndex: Math.min(6, brushInnerBarData.length - 1)
|
|
32147
|
-
}))
|
|
32143
|
+
})), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
|
|
32144
|
+
legendData: [{
|
|
32145
|
+
iconColor: "#CCDCDD",
|
|
32146
|
+
iconType: "Square",
|
|
32147
|
+
title: "New Shoppers"
|
|
32148
|
+
}, {
|
|
32149
|
+
iconColor: "#07575b",
|
|
32150
|
+
iconType: "Square",
|
|
32151
|
+
title: "Repeaters"
|
|
32152
|
+
}]
|
|
32153
|
+
}));
|
|
32148
32154
|
}
|
|
32149
32155
|
|
|
32150
32156
|
const BrushChart = props => {
|