[Pkg-javascript-commits] [d3-tip.js] 70/277: randomize direction in examples

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

bhuvan-guest pushed a commit to branch master
in repository d3-tip.js.

commit 5f08908471c77025679e28ddd690a48fb3edd247
Author: Justin Palmer <justin at github.com>
Date:   Sun Apr 7 15:01:41 2013 -0700

    randomize direction in examples
---
 examples/bars.html    | 4 ++--
 examples/circles.html | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/bars.html b/examples/bars.html
index 121ac85..1e4e7c9 100644
--- a/examples/bars.html
+++ b/examples/bars.html
@@ -64,7 +64,7 @@
       .attr('class', 'd3-tip')
       .text(function(d) { return d.total })
       .direction(function(d) {
-        return d3.shuffle(['s'])[0]
+        return d3.shuffle(['n', 's', 'e', 'w'])[0]
       })
 
     var w = 800,
@@ -78,7 +78,7 @@
     vis = d3.select('#graph')
       .append('svg')
       .attr('width', w)
-      .attr('height', h)
+      .attr('height', h + padt + padb)
     .append('g')
       .attr('transform', 'translate(' + padl + ',' + padt + ')')
 
diff --git a/examples/circles.html b/examples/circles.html
index 29b2238..559fb60 100644
--- a/examples/circles.html
+++ b/examples/circles.html
@@ -61,7 +61,7 @@
       .attr('class', 'd3-tip')
       .text(function(d) { return d.toFixed(2) })
       .direction(function(d) {
-        return d3.shuffle(['s'])[0]
+        return d3.shuffle(['n', 's', 'e', 'w'])[0]
       })
 
     var w = 1000,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/d3-tip.js.git



More information about the Pkg-javascript-commits mailing list