Open feidudu1 opened 3 years ago
echarts-stat/src/regression.js
if (i > 1) { string += Math.round(coeArray[i] * Math.pow(10, i + 1)) / Math.pow(10, i + 1) + 'x^' + i + ' + '; }
this result in dispaly as 0x^2 + -0.01x + 36.58, the expected expression is -0.0005x^2 + -0.01x + 36.58 graph used echarts-stat graph used excel
0x^2 + -0.01x + 36.58
-0.0005x^2 + -0.01x + 36.58
echarts-stat/src/regression.js
this result in dispaly as
0x^2 + -0.01x + 36.58
, the expected expression is-0.0005x^2 + -0.01x + 36.58
graph used echarts-stat graph used excel