Roo/bootstrap/Graph.js
authorEdward <edward@roojs.com>
Fri, 28 Nov 2014 09:29:02 +0000 (17:29 +0800)
committerEdward <edward@roojs.com>
Fri, 28 Nov 2014 09:29:02 +0000 (17:29 +0800)
Roo/bootstrap/Graph.js

index 351a000..dc4bd83 100644 (file)
@@ -129,15 +129,14 @@ Roo.extend(Roo.bootstrap.Graph, Roo.bootstrap.Component,  {
         if(!opts){
             opts = this.opts;
         }
-        Roo.log(this.bar);
         var chart_title = '',
-            r = this.raphael,
-            fin = function () {
-                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();});
-            };
+        r = this.raphael,
+        fin = function () {
+            this.flag = r.popup(10, 10, 'this.bar.value' || "0").insertBefore(this);
+        },
+        fout = function () {
+            this.flag.animate({opacity: 0}, 300, function () {this.remove();});
+        };
 
         switch(graphtype){
             case 'bar':