moved line_chart ruby code to application.html.erb for faster reload