carbone icon indicating copy to clipboard operation
carbone copied to clipboard

New array formatters for calculating the sum/ average of values

Open alxtsg opened this issue 3 years ago • 3 comments

New formatters for calculating the sum/ average of an array of values. User can specify an optional value path to extract values from an array of objects.

alxtsg avatar Jan 19 '22 02:01 alxtsg

This functionality is what I'd need now. Any updates on the merging?

zerotraceme avatar Mar 29 '22 16:03 zerotraceme

This functionality is what I'd need now. Any updates on the merging?

I'm also waiting for the team to merge and include the formatters in the next release. At the moment you can use something like patch-package to prepare a patch with the changes I made. When you deploy your Node.js application, run npx patch-package to apply the changes after npm install (you can also add the postinstall script in your package.json to run that automatically), then you will have the formatters ready for use. I'm using this approach and it works quite well.

alxtsg avatar Mar 30 '22 01:03 alxtsg

Thank you @alxtsg !

zerotraceme avatar Mar 30 '22 09:03 zerotraceme