summaryrefslogtreecommitdiff
path: root/addons/web_graph/static
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2012-05-08 00:45:30 +0200
committerFabien Pinckaers <fp@openerp.com>2012-05-08 00:45:30 +0200
commit9f273b0a36d14f008cc20304f2788d4f2c8e628d (patch)
tree24a1bda8e03264f6cbcda14eef9a65824f387fb7 /addons/web_graph/static
parenta1f82317125a0745af7b568aee024c876523c21a (diff)
[IMP] remove print statement
bzr revid: fp@openerp.com-20120507224530-3scu1akm6rpxwzzj
Diffstat (limited to 'addons/web_graph/static')
-rw-r--r--addons/web_graph/static/src/js/graph.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index cebc51e5690..df2b11eb004 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -20,7 +20,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
this.view_id = view_id;
this.mode="bar"; // line, bar, area, pie, radar
- this.orientation=true; // true: horizontal, false: vertical
+ this.orientation=false; // true: horizontal, false: vertical
this.stacked=true;
this.spreadsheet=false; // Display data gris, allows copy to CSV
@@ -49,6 +49,9 @@ instance.web_graph.GraphView = instance.web.View.extend({
this.fields_view = fields_view_get;
this.container = this.$element.find("#editor-render-body");
+ this.mode = this.fields_view.arch.attrs.type || 'bar';
+ this.orientation = this.fields_view.arch.attrs.orientation == 'horizontal';
+
width = this.$element.parent().width();
this.container.css("width", width);
this.$element.css("width", width);