added d3 locally
refactor draw_chart
have alternate view use new refactored chart