From 784d6789fb3d592b6810ce4ea1d76d83381b49c8 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 28 Sep 2011 16:24:22 +0200 Subject: [PATCH] [ADD] placeholder info in charts which can not be displayed bzr revid: xmo@openerp.com-20110928142422-0uogjyg3sa1znaah --- addons/web_graph/static/src/js/graph.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index a440895cd2b..6255a74daa0 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -178,6 +178,9 @@ openerp.web_graph.GraphView = openerp.web.View.extend({ // columns on top of one another instead of side by side), but it // does not handle clustered stacked bar charts if (this.columns.length > 1) { + this.$element.text( + 'OpenERP Web does not support combining grouping and ' + + 'multiple columns in graph at this time.'); throw new Error( 'dhtmlx can not handle columns counts of that magnitude'); }