function getAutoColumnUnit(value) {
	let absoluteValue = Math.abs(value);
	if (absoluteValue >= 5000000000000) {
		return 'T';
	} else if (absoluteValue >= 5000000000) {
		return 'B';
	} else if (absoluteValue >= 5000000) {
		return 'M';
	} else if (absoluteValue >= 5000) {
		return 'k';
	} else {
		return '';
	}
}
@param {number | undefined} value
@returns {string} the appropriate unit (B, M, k or '') for the given value