Posts by Cristian • 19 points
1 post
-
-2
votes1
answer62
viewsQ: How to construct an array with 2 subtotals to insert the data into a graph in Reactjs
How to mount an array that sums the values in 2 subtotals? I used the .filter, .map and .reduce to add the values but does not work with more than one category in the same array. var data = [ {…