Charts webix重置yAxis并重新加载数据,但显示错误

Charts webix重置yAxis并重新加载数据,但显示错误,charts,reload,webix,Charts,Reload,Webix,我有下面的代码有问题 //reset the yAxis with new value $$("chartStock1").yAxis_setter({ start:lowestValue, step:stepValue, end:highestValue, template:function(value){ return value } }); //clear data $$("chartStock1").clearAll() //reload data $$("chartStock1"

我有下面的代码有问题

//reset the yAxis with new value
$$("chartStock1").yAxis_setter({ start:lowestValue, step:stepValue, end:highestValue, template:function(value){ return value } }); 

//clear data
$$("chartStock1").clearAll()

//reload data
$$("chartStock1").parse(jiugangArray);
我想重置折线图的yAxis,其值似乎正常。然后我通过“parse”函数重新加载数据,数组中的数据也正常


绘制折线图的原因是旧的yAxis,而不是全新的yAxis值。这相当令人困惑。

使用define方法而不是setter更为正确:

$("chartStock1").define("yAxis",{ 
 start:lowestValue, 
 step:stepValue, 
 end:highestValue, 
 template:function(value){ return value } 
}); 

使用define方法而不是setter更为正确:

$("chartStock1").define("yAxis",{ 
 start:lowestValue, 
 step:stepValue, 
 end:highestValue, 
 template:function(value){ return value } 
});