ajax data now working with graph