One helpful improvement would be to be able to identify each row in the graph with a name, instead of just “map” you’d have “map (times2)”. Then it's easier to know where the duplication is really coming from and add ".share()" there (as per your medium article examples).