added ability to plot a line graph
add tooltips for line chart
refactor plotting line chart to another function