Line chart almost working. Variable scope messed up.