Commit 61c61ebe by chenjinjing

no message

parent d9b1fc87
...@@ -167,7 +167,7 @@ export function getChartData(title, dataMap, unit, percent ) { ...@@ -167,7 +167,7 @@ export function getChartData(title, dataMap, unit, percent ) {
let value = parseFloat(dataMap[key] || 0); let value = parseFloat(dataMap[key] || 0);
data.yMaxValue = Math.max(data.yMaxValue, value); data.yMaxValue = Math.max(data.yMaxValue, value);
data.yMinValue = Math.min(data.yMinValue, value); data.yMinValue = Math.min(data.yMinValue, value);
count += value; count += 1;
data.data.total += value; data.data.total += value;
} }
data.yStepValue = Math.ceil(data.yMaxValue - data.yMinValue / count); data.yStepValue = Math.ceil(data.yMaxValue - data.yMinValue / count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment