Line-chart finished code