From 9f273b0a36d14f008cc20304f2788d4f2c8e628d Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 8 May 2012 00:45:30 +0200 Subject: [IMP] remove print statement bzr revid: fp@openerp.com-20120507224530-3scu1akm6rpxwzzj --- addons/web_graph/static/src/js/graph.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'addons/web_graph/static/src/js/graph.js') 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); -- cgit v1.2.3