adds graph and basic legend to user profile page
Reconfigure d3 code into functions; show mockup legend