满足一下需求:

1.设置初始化蜡烛图的宽度

2.设置初始化显示的范围

只可意会不可言传

let fromTime = _this. bars[ _this. bars. length - 50]. time / 1000;
let toTime = _this. bars[ _this. bars. length - 1]. time / 1000;
_this. chart. chart(). setVisibleRange({ from: fromTime, to: toTime});

Logo

前往低代码交流专区

更多推荐