remove if request.xhr? in graph_data controller action