[Pkg-javascript-commits] [d3-tip.js] 82/277: test for html

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 5f8b1cdea19cd3506826a1bca478b279b3fe784e
Author: Justin Palmer <justin at github.com>
Date:   Sun Apr 7 19:12:30 2013 -0700

    test for html
---
 examples/bars.html | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/examples/bars.html b/examples/bars.html
index 4ac4565..f007b34 100644
--- a/examples/bars.html
+++ b/examples/bars.html
@@ -40,11 +40,8 @@
     left: 0;
   }
 
-  .d3-tip text {
-    fill: #fff;
-    font-size: 12px;
-    stroke: none;
-    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+  .d3-tip span {
+    color: #ff00c7;
   }
 
   .domain {
@@ -78,11 +75,8 @@
   <script type="text/javascript">
     var tip = d3.tip()
       .attr('class', 'd3-tip')
-      .text(function(d) { return d.total + " entries" })
+      .text(function(d) { return '<span>' + d.total + '</span>' + ' entries' })
       .offset([-12, 0])
-      .direction(function(d) {
-        return d3.shuffle(['n'])[0]
-      })
 
     var w = 800,
         h = 300,

-- 
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