added event management to line chart and added tooltips