Activity breakdown graph in ticket view

as prototype, code just ripped straight from analytics prototype code