Added tooltip functionality to line chart.

Line chart is now drawn in a loop.