@ammarkhalidfarooq/dashboard-package 0.3.21 → 0.3.22
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 +5 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -0
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4856,8 +4856,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4856
4856
|
var mainChart = extendedCharts.find(function (c) {
|
|
4857
4857
|
return c.label === selectedInfo.label;
|
|
4858
4858
|
}) || primaryCharts[0];
|
|
4859
|
+
console.log("OverallSection - activeMetric:", activeMetric);
|
|
4860
|
+
console.log("OverallSection - apiData keys:", Object.keys(apiData || {}));
|
|
4859
4861
|
if (activeMetric === "Total Raised") {
|
|
4860
4862
|
var hasStackedData = (apiData === null || apiData === void 0 ? void 0 : apiData.paidAds) || (apiData === null || apiData === void 0 ? void 0 : apiData.email) || (apiData === null || apiData === void 0 ? void 0 : apiData.organic);
|
|
4863
|
+
console.log("OverallSection - hasStackedData:", !!hasStackedData);
|
|
4861
4864
|
if (hasStackedData) {
|
|
4862
4865
|
var categories = ((apiData === null || apiData === void 0 ? void 0 : apiData.organic) || (apiData === null || apiData === void 0 ? void 0 : apiData.paidAds) || (apiData === null || apiData === void 0 ? void 0 : apiData.email) || []).map(function (item) {
|
|
4863
4866
|
return item.date;
|
|
@@ -4878,6 +4881,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4878
4881
|
return item.value;
|
|
4879
4882
|
})
|
|
4880
4883
|
}];
|
|
4884
|
+
console.log("OverallSection - transformed series:", series);
|
|
4881
4885
|
mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
|
|
4882
4886
|
label: "Total revenue trend",
|
|
4883
4887
|
data: undefined,
|
|
@@ -4894,6 +4898,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4894
4898
|
value: selectedInfo.value,
|
|
4895
4899
|
trend: selectedInfo.subValue
|
|
4896
4900
|
});
|
|
4901
|
+
console.log("OverallSection - Final mainChart:", mainChart);
|
|
4897
4902
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
4898
4903
|
children: [/*#__PURE__*/jsxRuntime.jsx(material.Box, {
|
|
4899
4904
|
sx: {
|