Browse Source

多井功图对比绘制增加滤波处理

chenwen 1 month ago
parent
commit
8cb3a0deb5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/components/diagram/lib/multidiagram.js

+ 4 - 0
src/components/diagram/lib/multidiagram.js

@@ -195,6 +195,10 @@ Diagram.prototype={
 	
 	
 	drawMultiCurve:function(){
 	drawMultiCurve:function(){
 		this.lineGroup.getLines().forEach(line=>{
 		this.lineGroup.getLines().forEach(line=>{
+			
+			//绘制数据前进行滤波
+			line.datas=Utils.waveFilter(line.datas,6)
+			
 			let curveShape= new createjs.Shape();
 			let curveShape= new createjs.Shape();
 			//this.stage.addChild(curveShape)
 			//this.stage.addChild(curveShape)
 			this.drawCurve(line,curveShape.graphics)
 			this.drawCurve(line,curveShape.graphics)