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