I have this year-month-value array with data from gsheet:
2019 - Mar - 3
2019 - Mar - 1
2019 - Feb - 1
2019 - Feb - 1
2019 - Feb - 1
2019 - Feb - 1
2019 - Feb - 3
2019 - Feb -
2019 - Feb - 2
2019 - Feb - 1
2019 - Feb - 1
2019 - Jan - 1
2019 - Jan - 1
2019 - Jan - 1
2019 - Jan - 1
I want to sum the total values for each month like this:
2019 - Mar - 4
2019 - Feb - 11
2019 - Jan - 4
This is my code now:
<div class="row" id="list">
<div v-for="entry in entries" v-if="entry.gsx$regionofincident.$t === 'Mediterranean'">
<span>{{entry.gsx$reportedyear.$t}} - {{entry.gsx$reportedmonth.$t}} - {{entry.gsx$numberdead.$t}}</span>
</div>
</div>
How do I sum the monthly values? Where do I do the operations? In js or html?