load graph via ajax