I have an array of objects like this:
var chartData = [{count: 0, idTag: \"24\"} {count: 0, idTag: \"25\"} {count: 0, idTag: \"
I would rather maintain a intermediate hash with a "idTag" value as a key and its count as value, perform the operation with for loop, then generate charData from the intermediate hash once the for loop completes.