|
@@ -382,7 +382,8 @@ var app = new Vue({
|
|
|
formatterNum(value, precision) {
|
|
|
|
|
|
let reg = new RegExp('^\\d+(?:\\.\\d{0,' + precision + '})?')
|
|
|
- return value.toString().match(reg)
|
|
|
+
|
|
|
+ return value.toString()
|
|
|
},
|
|
|
|
|
|
calculateMA(dayCount, data) {
|
|
@@ -397,7 +398,8 @@ var app = new Vue({
|
|
|
sum += data[i - j][1];
|
|
|
}
|
|
|
|
|
|
- result.push((sum / dayCount).toFixed(2));
|
|
|
+ result.push((sum / dayCount));
|
|
|
+
|
|
|
}
|
|
|
return result;
|
|
|
},
|
|
@@ -461,7 +463,7 @@ var app = new Vue({
|
|
|
type: 'category',
|
|
|
data: [],
|
|
|
scale: true,
|
|
|
- boundaryGap: false,
|
|
|
+ boundaryGap: true,
|
|
|
axisLine: {
|
|
|
show: false
|
|
|
},
|
|
@@ -538,7 +540,8 @@ var app = new Vue({
|
|
|
inside: true,
|
|
|
fontSize: 10,
|
|
|
formatter: function(value) {
|
|
|
- return Number(value).toFixed(2)
|
|
|
+ return Number(value)
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
splitLine: {
|
|
@@ -713,7 +716,9 @@ var app = new Vue({
|
|
|
fontSize: 10,
|
|
|
align: 'left',
|
|
|
formatter: function(params) {
|
|
|
- return Number(params.value).toFixed(2)
|
|
|
+ console.log(params.value,'传入的处理数值');
|
|
|
+
|
|
|
+ return Number(params.value)
|
|
|
}
|
|
|
},
|
|
|
data: [{
|