commit | e50c816b2a2d52fff8c3dec6dbb5839c67b39e79 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Mar 01 10:24:43 2016 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Mar 01 11:05:35 2016 +0100 |
tree | 05cee15eb90359a8afa452dddef9ffc32a62ddf4 | |
parent | 9fca1732ce39aa14867a193e8bd80c715e0812c7 [diff] [blame] |
w2v-server.pl: add 1000 separators for freq.-ranks
diff --git a/w2v-server.pl b/w2v-server.pl index af8b55d..2cd708c 100644 --- a/w2v-server.pl +++ b/w2v-server.pl
@@ -415,7 +415,7 @@ g.append("a") .attr("xlink:href", function(word) {return "/?word="+word;}) .attr("title", function(d, i) { - return "rank: "+i +" "+"freq. rank: "+data.ranks[i]; + return "rank: "+i +" "+"freq. rank: "+data.ranks[i].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); }) .append("text") .attr("text-anchor", "top")