summaryrefslogtreecommitdiff
path: root/bubble.js
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-21 14:15:47 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-21 14:15:47 +0200
commitd7964c9cc38ca171c31b945ef5d075ca7889fd21 (patch)
tree6df7a753a63ab172a1e5fea27a28cffe3c5b5d04 /bubble.js
parenta6fb7ce01144236b68666a5f3d4e4293deb66acd (diff)
downloadd3viz-d7964c9cc38ca171c31b945ef5d075ca7889fd21.tar.gz
Option to ignore users with fewer than X tweets
Diffstat (limited to 'bubble.js')
-rw-r--r--bubble.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bubble.js b/bubble.js
index 773e481..81435e2 100644
--- a/bubble.js
+++ b/bubble.js
@@ -7,6 +7,8 @@
var I_GOT_MONEY = 0;
// whether to ignore lonely users
var KILL_LONERS = true;
+// if positive, then users with fewer than this number of tweets will be ignored
+var USER_MIN_TWEET_COUNT = 0;
// if true, enable sticky nodes unless Ctrl is held. If false, stick only if
// ctrl is held (the inverse).
var STICKY_DEFAULT = true;
@@ -138,7 +140,8 @@ function processData(data) {
var infoPane = d3.select('#infobox');
preprocess(data, {
- kill_loners: KILL_LONERS
+ kill_loners: KILL_LONERS,
+ minTweetCount: USER_MIN_TWEET_COUNT
});
infoPane.select('.node-count').text(data.nodes.length);
infoPane.select('.edge-count').text(data.edges.length);