1

問題のある次のコードがあります。

//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値のためではなく、古い のために描画されました。これは非常に紛らわしいです。

4

1 に答える 1

0

setter の代わりに define() メソッドを使用する方がより正確です。

$("chartStock1").define("yAxis",{ 
 start:lowestValue, 
 step:stepValue, 
 end:highestValue, 
 template:function(value){ return value } 
}); 
于 2016-04-12T14:54:50.070 に答える