Charts and scatterplot: ensure they work with non-Web-root installations by using web helpers and url_for.