function summarizeUnits(series) {
	if (series === undefined || series === null || series.length === 0) {
		return {
			maxDecimals: 0,
			unitType: 'unknown'
		};
	} else {
		let maxDecimals = 0;

		for (const element of series) {
			const decimal_places = element?.toString().split('.')[1]?.length;
			if (decimal_places > maxDecimals) {
				maxDecimals = decimal_places;
			}
		}

		return {
			maxDecimals: maxDecimals,
			unitType: 'number'
		};
	}
}
@param {number[]} series
@returns {{ maxDecimals: number, unitType: string }}