transition chart code to visualization; move chart styles to svg.css; cleanup code