get the code from codepen before reading on.
This tutorial presents a good opportunity to learn about certain array methods
1. array.reduce ...a bit tricky which is why programmers resort to lodash
3. array index and indexOf
Why do we need to transform our original data anyway? Two reasons, 1. to be sure the timestamp is in a valid date format, otherwise our native Date object won't work and 2. the data needs to be usable so we can extract summed values into our bar chart.
Bottom Line, it is much easier to show u my code than to explain steps like above. So in order to fully understand my methodology please download my code from codepen here. My code is fully commented step by step for easy understanding.
Thanks for reading and best of luck to all !
more about Rick Delpo can be found here and also at Rick Delpo's Educational Website