[Pkg-javascript-commits] [d3-tip.js] 37/277: remove old code

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:14 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 51d10274fd1991ed20b0aa3d37909bfb497f46ec
Author: Caged <justin at labratrevenge.com>
Date:   Tue Feb 7 14:35:40 2012 -0800

    remove old code
---
 examples/nested-groups.html | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/examples/nested-groups.html b/examples/nested-groups.html
index 78e1f15..7af2ff5 100644
--- a/examples/nested-groups.html
+++ b/examples/nested-groups.html
@@ -61,12 +61,13 @@
     </style>
   </head>
   <body>
+  <div id="bars"></div>
+  <div id="circles"></div>
+
   <script type="text/javascript">
-  var data  = [[300,700,900,100,400,400,800,200,500], [500,200,300,400,900,600,400,600,800]],
-      pl = 20, pt = 20, pr = 20, pb = 20,
+  var pl = 20, pt = 20, pr = 20, pb = 20,
       w     = 800 - pl - pr,
       h     = 300 - pt - pb,
-      max   = d3.max(data, function(d) { return d3.max(d) }),
       linex, liney,
       tip = d3.svg.tip()
         .orient('top')
@@ -77,7 +78,7 @@
 
 
   // Base vis layer
-  var vis = d3.select(document.body)
+  var vis = d3.select('#bars')
     .append('svg')
       .attr('width', w + (pl + pr))
       .attr('height', h + pt + pb)

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