浏览代码

成交量堆叠,单独计算。

skyffire 1 年之前
父节点
当前提交
2a23e4b562
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/index.js

+ 1 - 1
src/index.js

@@ -1005,7 +1005,7 @@ export default class StockHeatmap extends React.Component {
       // move position only if within valid range
       // move position only if within valid range
       this.windowedData = this.data.slice(position, position + this.windowLength + 1);
       this.windowedData = this.data.slice(position, position + this.windowLength + 1);
 
 
-      if (this.windowedData.length > 200) {
+      if (this.windowedData.length > 1000) {
         this.windowedData = this.mergeWindowedData();
         this.windowedData = this.mergeWindowedData();
         this.isMerged = true;
         this.isMerged = true;
       } else {
       } else {