Skip to content

Commit

Permalink
Refactored code to be easier to update/read
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemesath committed Sep 18, 2012
1 parent 64179c9 commit 890faad
Show file tree
Hide file tree
Showing 8 changed files with 5,845 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -1,3 +1,6 @@
[submodule "lib/d3"]
path = lib/d3
url = git://github.com/mbostock/d3.git
[submodule "lib/raphael"]
path = lib/raphael
url = git://github.com/DmitryBaranovskiy/raphael.git
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -9,6 +9,7 @@ all: \
# Modify this rule to build your own custom release.

.INTERMEDIATE r2d3.v2.js: \
lib/raphael/raphael.js \
lib/d3/src/start.js \
r2d3.core.js \
r2d3.scale.js \
Expand Down
1 change: 0 additions & 1 deletion examples/circle.html
Expand Up @@ -6,7 +6,6 @@
<!--[if lte IE 8]>
<script type="text/javascript" src="../lib/compat/compat.js"></script>
<![endif]-->
<script src="../lib/raphael/raphael.js"></script>
<script src="../r2d3.v2.js"></script>
</head>
<body>
Expand Down
1 change: 0 additions & 1 deletion examples/line.html
Expand Up @@ -6,7 +6,6 @@
<!--[if lte IE 8]>
<script type="text/javascript" src="../lib/compat/compat.js"></script>
<![endif]-->
<script src="../lib/raphael/raphael.js"></script>
<script src="../r2d3.v2.js"></script>
</head>
<body>
Expand Down
8 changes: 4 additions & 4 deletions examples/text.html
Expand Up @@ -6,22 +6,22 @@
<!--[if lte IE 8]>
<script type="text/javascript" src="../lib/compat/compat.js"></script>
<![endif]-->
<script src="../lib/raphael/raphael.js"></script>
<script src="../r2d3.v2.js"></script>
</head>
<body>
<div></div>
<div></div>
<script>
var svg = d3.select('div').append('svg')
var count = 0,
svg = d3.select('div').append('svg')
.attr('height', 200)
.attr('width', 200);
svg.append('text')
.attr('x', 100)
.attr('y', 100)
.attr('font-size', 72);
.attr('font-size', 72)
.text(count);

var count = 0;

function drawText() {
svg.selectAll('text').text(count);
Expand Down
1 change: 1 addition & 0 deletions lib/raphael
Submodule raphael added at 52bff4

0 comments on commit 890faad

Please sign in to comment.