d2-charts-api
Advanced tools
Comparing version 32.0.8 to 32.0.9
@@ -8,11 +8,13 @@ "use strict"; | ||
exports.default = function (acc, seriesIds, categoryIds, idValueMap, metaData) { | ||
acc.push.apply(acc, _toConsumableArray(seriesIds.map(function (seriesId) { | ||
return { | ||
name: metaData.items[seriesId].name, | ||
y: parseFloat(idValueMap.get(seriesId)) | ||
}; | ||
}))); | ||
seriesIds.forEach(function (seriesId) { | ||
var value = idValueMap.get(seriesId); | ||
if (value) { | ||
acc.push({ | ||
name: metaData.items[seriesId].name, | ||
y: parseFloat(value) | ||
}); | ||
} | ||
}); | ||
}; | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
//# sourceMappingURL=pie.js.map |
{ | ||
"name": "d2-charts-api", | ||
"version": "32.0.8", | ||
"version": "32.0.9", | ||
"description": "DHIS2 charts api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
export default function(acc, seriesIds, categoryIds, idValueMap, metaData) { | ||
acc.push(...seriesIds.map(seriesId => ({ | ||
name: metaData.items[seriesId].name, | ||
y: parseFloat(idValueMap.get(seriesId)), | ||
}))); | ||
seriesIds.forEach(seriesId => { | ||
const value = idValueMap.get(seriesId); | ||
if (value) { | ||
acc.push({ | ||
name: metaData.items[seriesId].name, | ||
y: parseFloat(value), | ||
}); | ||
} | ||
}); | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
273585
3960