Graphviz:因果関係図を作ってみよう2
データ部
code:d3xx.js
var dots = [
]
code:d3.js
var dots = [
]
コード部
code:d3.js
var dotIndex = 0;
var graphviz = d3.select("#graph").graphviz()
.transition(function () {
return d3.transition("main")
.ease(d3.easeLinear)
.delay(500)
.duration(1500);
})
.logEvents(true)
.on("initEnd", render)
function render() {
var dot = dotLines.join('');
graphviz
.renderDot(dot)
.on("end", function () {
dotIndex = (dotIndex + 1) % dots.length;
render();
});
}
元ネタ