Adding my raphael repo as a submodule so that barcharts can use the popup tooltip...
authorRichard Zurad <rzurad@gmail.com>
Sat, 22 Oct 2011 08:23:16 +0000 (08:23 +0000)
committerRichard Zurad <rzurad@gmail.com>
Tue, 25 Oct 2011 04:26:39 +0000 (04:26 +0000)
.gitmodules [new file with mode: 0644]
raphael [new submodule]
test.html

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..8e578fe
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "raphael"]
+       path = raphael
+       url = git://github.com/rzurad/raphael.git
diff --git a/raphael b/raphael
new file mode 160000 (submodule)
index 0000000..f055769
--- /dev/null
+++ b/raphael
@@ -0,0 +1 @@
+Subproject commit f0557690a176c3aafeb46b9ffc37e35c3033005e
index e6d2f48..c6c1d04 100644 (file)
--- a/test.html
+++ b/test.html
@@ -8,14 +8,15 @@
         <meta name="description" content="Charting JavaScript Library">
         <link rel="stylesheet" href="demo.css" type="text/css" media="screen" charset="utf-8">
         <link rel="stylesheet" href="demo-print.css" type="text/css" media="print" charset="utf-8">
-        <script src="../raphael.js" type="text/javascript" charset="utf-8"></script>
+        <script src="raphael/raphael.js" type="text/javascript" charset="utf-8"></script>
+        <script src="raphael/plugins/raphael.tooltips.js" type="text/javascript"></script>
         <script src="g.raphael.js" type="text/javascript" charset="utf-8"></script>
         <script src="g.bar.js" type="text/javascript" charset="utf-8"></script>
         <script type="text/javascript" charset="utf-8">
             window.onload = function () {
                 var r = Raphael("holder"),
                     fin = function () {
-                        this.flag = r.g.popup(this.bar.x, this.bar.y, this.bar.value || "0").insertBefore(this);
+                        this.flag = r.popup(this.bar.x, this.bar.y, this.bar.value || "0").insertBefore(this);
                     },
                     fout = function () {
                         this.flag.animate({opacity: 0}, 300, function () {this.remove();});
@@ -26,7 +27,7 @@
                             y.push(this.bars[i].y);
                             res.push(this.bars[i].value || "0");
                         }
-                        this.flag = r.g.popup(this.bars[0].x, Math.min.apply(Math, y), res.join(", ")).insertBefore(this);
+                        this.flag = r.popup(this.bars[0].x, Math.min.apply(Math, y), res.join(", ")).insertBefore(this);
                     },
                     fout2 = function () {
                         this.flag.animate({opacity: 0}, 300, function () {this.remove();});