Commit 22a219f4 authored by S Anand's avatar S Anand

TST: respond to input range change immediately in network test

parent d70fee75
......@@ -61,7 +61,7 @@ d3.csv('trains.csv', function(data) {
})
d3.select('#min-size')
.on('change', function() {
.on('input', function() {
var size = +d3.select(this).property('value')
force
.nodes(function(node) { return node.rows.length >= size }, 'min-size')
......@@ -85,7 +85,7 @@ d3.csv('trains.csv', function(data) {
})
d3.select('#charge')
.on('change', function() {
.on('input', function() {
var charge = +d3.select(this).property('value')
force.force.charge(-charge * 10).start()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment