function findMaxData(array) {
const maxValue = array.reduce(
(maxVal, current) => (current.data > maxVal ? current.data : maxVal),
-Infinity,
);
const digits = Math.floor(Math.log10(maxValue || 1)) + 1; // 处理0和负数的情况
const unitValue = 10 ** (digits - 1); // 单位值是10的(位数-1)次方
// return maxValue + unitValue;
return maxValue;
}
07-20
3818
07-28
4656
10-08
4237
09-06
592