function formatt(rec, val, index) { if (rec === null || rec == "null") { return "0"; } else { return rec; }}