1
私はD3 Tips & Tricksを経由しています。私はこのグラフにあります:http://bl.ocks.org/d3noob/7030f35b72de721622b8です。d3.jsの.duration()コマンドの最大値はいくらですか?
ボタンを使用してJavaScript関数が呼び出されたときに、再レンダリングおよび再サイズを動的に変更するために、さまざまな軸で遊んでいます。再生成された線要素よりも完全にロードするのに時間がかかるように、x軸を再描画したい。理論的には
// Select the section we want to apply our changes to
var svg = d3.select("body").transition().delay(500).style("stroke", "green");
// Make the changes
svg.select(".line") // change the line
.duration(750)
.style("stroke", "red")
.attr("d", valueline(data));
svg.select(".x.axis") // change the x axis
.duration(1750)
.call(xAxis);
svg.select(".y.axis") // change the y axis
.duration(1000000000)
.call(yAxis);
});
、私は.duration()コマンドは.millisecondとしてhighest integer value that JavaScript acceptsを取ることができることとします。あれは正しいですか?可能な限り最長の期間があるかどうかを知りたいと思っています。