Roo/bootstrap/Graph.js
authorEdward <edward@roojs.com>
Tue, 16 Dec 2014 08:13:02 +0000 (16:13 +0800)
committerEdward <edward@roojs.com>
Tue, 16 Dec 2014 08:13:02 +0000 (16:13 +0800)
Roo/bootstrap/Graph.js

index bbe7a95..ef40400 100644 (file)
@@ -90,12 +90,12 @@ Roo.extend(Roo.bootstrap.Graph, Roo.bootstrap.Component,  {
     onRender : function(ct,position){
         Roo.bootstrap.Graph.superclass.onRender.call(this,ct,position);
         this.raphael = Raphael(this.el.dom);
-        this.raphael.setViewBox(0,0,500,200,true);
-        this.raphael.canvas.setAttribute('preserveAspectRatio', 'none');
+//        this.raphael.setViewBox(0,0,500,200,true);
+//        this.raphael.canvas.setAttribute('preserveAspectRatio', 'none');
         //         this.raphael.setViewBox(0,0,600,600,true);
 //        Roo.log(this.raphael);
 //         this.raphael.setViewBox(0,0,0,0,true);
-//        this.raphael.setSize('100%', 0);
+        this.raphael.setSize('100%', 0);
                     // data1 = [[55, 20, 13, 32, 5, 1, 2, 10], [10, 2, 1, 5, 32, 13, 20, 55], [12, 20, 30]],
                     // data2 = [[55, 20, 13, 32, 5, 1, 2, 10], [10, 2, 1, 5, 32, 13, 20, 55], [12, 20, 30]],
                     // data3 = [[55, 20, 13, 32, 5, 1, 2, 10], [10, 2, 1, 5, 32, 13, 20, 55], [12, 20, 30]],