src/assets/js/newDiagram/index.js
@@ -30,7 +30,7 @@ }; // 显示线条的id this.showLineId = true; this.showLineId = false; } // 设置canvas @@ -103,10 +103,14 @@ console.log('已经停止持续更新'); }; // 清空动态图表 Diagram.prototype._Clear = function () { this.s_ctx.clearRect(0, 0, this.width, this.height); this.f_ctx.clearRect(0, 0, this.width, this.height); }; // 更新整个图表 Diagram.prototype._update = function () { // 清空图表 //this.f_ctx.clearRect(0, 0, this.width, this.height); let options = this.flushOptions; options.forEach(option => { this.update(option);