Change check if field is record when displaying graph