[Pkg-javascript-commits] [d3-tip.js] 81/277: offset circles to the east in example

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:19 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 babb8f623010b492fa10eaa017a5e237a76d1313
Author: Justin Palmer <justin at github.com>
Date:   Sun Apr 7 19:12:18 2013 -0700

    offset circles to the east in example
---
 examples/circles.html | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/examples/circles.html b/examples/circles.html
index 7028b36..562c10f 100644
--- a/examples/circles.html
+++ b/examples/circles.html
@@ -14,14 +14,12 @@
   }
 
   .d3-tip {
+    line-height: 1;
     font-weight: bold;
     padding: 12px;
-    border: 1px solid rgba(0, 0, 0, 0.8);
-    background: rgba(0, 0, 0, 0.5);
+    background: rgba(0, 0, 0, 0.8);
     color: #fff;
-    text-align: center;
     border-radius: 2px;
-    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
   }
 
   .d3-tip text {
@@ -60,9 +58,8 @@
     var tip = d3.tip()
       .attr('class', 'd3-tip')
       .text(function(d) { return d.toFixed(2) })
-      .direction(function(d) {
-        return d3.shuffle(['n', 's', 'e', 'w'])[0]
-      })
+      .direction('e')
+      .offset([0, 3])
 
     var w = 1000,
         h = 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