<div id="kline"></div>
var c=document.getElementById("kline");
var kline = new dsxKline({
element:c,
onLoading:function(o){
// 开始请求加载数据
},
nextPage:function(data,index){
// 开始请求加载下一页数据
},
onCrossing:function(data,index){
// 十字线移动数据
},
updateComplate:function(){
// 完成K线一次更新
},
drawEvent:function(self){
self.drawCycleWithDate("20230313","买","red","#ffffff");
self.drawCycleWithDate("20221129","卖","green","#ffffff",12.99);
self.drawCycleWithDate("202303241104","买","red","#ffffff");
}
});