Transform an object into another object structure
So you have five data series here right (A through E)?  What happens when you have 4 or 6 data series?  Do you really want to rewrite your code?

Also, unless you have some reason to do so, lodash seems kind of unnecessary for these sort of simple data transforms these days.  I am guessing using ES6 Array.map, Array.reduce and similar would do the same exact thing while also yielding a more fluent, readable style,