diff options
author | Arun Persaud <arun@nubati.net> | 2012-01-24 20:49:24 -0800 |
---|---|---|
committer | Arun Persaud <apersaud@lbl.gov> | 2012-01-24 20:49:24 -0800 |
commit | fb410dcb5dd4c7f626a8672b0153d195c510946e (patch) | |
tree | f03bc8dbc1a9277f366394637c7fcbffa101e7dd | |
parent | 39e972d629841a6d6086837433a1060fa6be2851 (diff) | |
download | photo-tags-fb410dcb5dd4c7f626a8672b0153d195c510946e.tar.gz photo-tags-fb410dcb5dd4c7f626a8672b0153d195c510946e.tar.bz2 photo-tags-fb410dcb5dd4c7f626a8672b0153d195c510946e.zip |
tune tagcloud a bit
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -193,8 +193,8 @@ function cloud() { /* update pics */ d3.json(url, function(json) { svgelement.selectAll("text").data(json).enter().append("text") - .style("font-size", function(d){return Math.log(d.count+1)+"em"}) - .text(function(d) { return d.name; }) + .style("font-size", function(d){return (Math.log(d.count+1)/2.0)+"em"}) + .text(function(d) { return d.name+" "; }) .on("mouseover", function(d){ d3.select(this).style("color","red")} ) .on("mouseout", function(d){ d3.select(this).style("color","white")} ) .on("click", function(d) { document.location.href='<?php echo $webbase?>/tag/'+d.name }) |