@ammarkhalidfarooq/dashboard-package 0.3.25 → 0.3.26
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.cjs.js +19 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +19 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -555,7 +555,7 @@ var RenderChartCard = function RenderChartCard(_ref) {
|
|
|
555
555
|
gap: 1,
|
|
556
556
|
alignItems: "center"
|
|
557
557
|
},
|
|
558
|
-
children: item.hideControls ? /*#__PURE__*/jsx(Box, {
|
|
558
|
+
children: item.hideControls ? item.series && /*#__PURE__*/jsx(Box, {
|
|
559
559
|
sx: {
|
|
560
560
|
display: "flex",
|
|
561
561
|
gap: 2,
|
|
@@ -4944,6 +4944,24 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4944
4944
|
});
|
|
4945
4945
|
}
|
|
4946
4946
|
}
|
|
4947
|
+
if (activeMetric === "Net Raised") {
|
|
4948
|
+
var netData = apiData === null || apiData === void 0 ? void 0 : apiData.netRaised;
|
|
4949
|
+
if (Array.isArray(netData) && netData.length > 0) {
|
|
4950
|
+
mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
|
|
4951
|
+
label: "Net revenue trend",
|
|
4952
|
+
data: netData.map(function (item) {
|
|
4953
|
+
return item.value;
|
|
4954
|
+
}),
|
|
4955
|
+
categories: netData.map(function (item) {
|
|
4956
|
+
return item.date;
|
|
4957
|
+
}),
|
|
4958
|
+
series: undefined,
|
|
4959
|
+
// Ensure we use single data
|
|
4960
|
+
stacked: false,
|
|
4961
|
+
hideControls: true
|
|
4962
|
+
});
|
|
4963
|
+
}
|
|
4964
|
+
}
|
|
4947
4965
|
mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
|
|
4948
4966
|
label: mainChart.label || activeMetric,
|
|
4949
4967
|
value: selectedInfo.value,
|