@aclymatepackages/modules 1.0.31 → 1.0.32
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.
|
@@ -76,14 +76,7 @@ const EmissionsPieChart = _ref2 => {
|
|
|
76
76
|
return emission.scope === scopeNumber;
|
|
77
77
|
};
|
|
78
78
|
const slicesArray = viewMode === "subcategories" ? subcategoriesArray : scopesArray;
|
|
79
|
-
|
|
80
|
-
let {
|
|
81
|
-
subcategory
|
|
82
|
-
} = _ref3;
|
|
83
|
-
const projectedStringArray = subcategory.split("_");
|
|
84
|
-
return projectedStringArray.length === 1;
|
|
85
|
-
});
|
|
86
|
-
return unProjectedSlices.map(subcategoryObj => {
|
|
79
|
+
return slicesArray.map(subcategoryObj => {
|
|
87
80
|
const {
|
|
88
81
|
subcategory
|
|
89
82
|
} = subcategoryObj;
|
|
@@ -108,12 +101,12 @@ const EmissionsPieChart = _ref2 => {
|
|
|
108
101
|
dataKey: "emissionPercentage",
|
|
109
102
|
cx: "50%",
|
|
110
103
|
cy: "50%"
|
|
111
|
-
}, pieSlicesWithPercentages.map(
|
|
104
|
+
}, pieSlicesWithPercentages.map(_ref3 => {
|
|
112
105
|
let {
|
|
113
106
|
category,
|
|
114
107
|
name,
|
|
115
108
|
color
|
|
116
|
-
} =
|
|
109
|
+
} = _ref3;
|
|
117
110
|
return /*#__PURE__*/_react.default.createElement(_recharts.Cell, {
|
|
118
111
|
key: "emissions-pie-chart-cell-".concat(category),
|
|
119
112
|
name: name,
|
package/package.json
CHANGED
|
@@ -73,12 +73,7 @@ const EmissionsPieChart = ({
|
|
|
73
73
|
const slicesArray =
|
|
74
74
|
viewMode === "subcategories" ? subcategoriesArray : scopesArray;
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
const projectedStringArray = subcategory.split("_");
|
|
78
|
-
return projectedStringArray.length === 1;
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
return unProjectedSlices.map((subcategoryObj) => {
|
|
76
|
+
return slicesArray.map((subcategoryObj) => {
|
|
82
77
|
const { subcategory } = subcategoryObj;
|
|
83
78
|
const emissionsWithThisCategory = emissions.filter(
|
|
84
79
|
filterFunction(subcategory)
|