[Pkg-javascript-commits] [d3-tip.js] 86/277: more readme cleanups

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 239be948729e3029c5405d39b252c7977048f38b
Author: Justin Palmer <justin at github.com>
Date:   Mon Apr 8 11:49:28 2013 -0700

    more readme cleanups
---
 README.md | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 65692b3..37cc33f 100644
--- a/README.md
+++ b/README.md
@@ -5,11 +5,13 @@
 
 ### Usage
 ``` javascript
-// Setup
+
+/* Initialize tooltip */
 tip = d3.svg.tip().text(function(d) { return d; });
 
-// Usage
+/* Invoke the tip in the context of your visualization */
 vis.call(tip)
+
 vis.selectAll('rect')
   .data(data)
 .enter().append('rect')
@@ -17,6 +19,7 @@ vis.selectAll('rect')
   .attr('height', function(d) { return h - y(d) })
   .attr('y', function(d) { return y(d) })
   .attr('x', function(d, i) { return x(i) })
+  /* Show and hide tip on mouse events */
   .on('mouseover', tip.show)
   .on('mouseout', tip.hide)
 ```

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