move percentage formatting to data/util/format and replace NaN with --