I\'ll admit I\'m weak in JavaScript and JSON. I\'ve spent a lot of time attempting to figure out why numbers from my objects returns NaN when they are added together. With t
I like this approach. It basically sets the value to 0 on the first iteration when jan doesn't exist.
jan = (jan || 0) + parseFloat(data[i].jan);