projects
/
photo-tags.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
39e972d
)
tune tagcloud a bit
author
Arun Persaud
<arun@nubati.net>
Wed, 25 Jan 2012 04:49:24 +0000
(20:49 -0800)
committer
Arun Persaud
<apersaud@lbl.gov>
Wed, 25 Jan 2012 04:49:24 +0000
(20:49 -0800)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index 34382f9bd334991c20287262542a71f28aa65978..45bf53fcda08b1f576c1edbddfa0eea99b2ba037 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-193,8
+193,8
@@
function cloud() {
/* update pics */
d3.json(url, function(json) {
svgelement.selectAll("text").data(json).enter().append("text")
/* 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 })
.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 })