From fb63eb63ededd5dd5c747728cd0d23a3b409f77b Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Fri, 27 Dec 2013 16:07:19 +0100 Subject: [PATCH] [IMP] removes the stagger labels in bar charts, only uses the inclined labels when necessary (addon web_graph) bzr revid: ged@openerp.com-20131227150719-olinm65mh515quc2 --- addons/web_graph/static/src/js/graph.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 6a70a9c4459..ffc94e6dd84 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -594,10 +594,9 @@ instance.web_graph.Graph = instance.web.Widget.extend({ .height(self.height) .reduceXTicks(false) .stacked(self.bar_ui === 'stack') - .showControls(false) - .staggerLabels(true); + .showControls(false); - if (self.width / data[0].values.length < 100) { + if (self.width / data[0].values.length < 80) { chart.rotateLabels(-15); chart.reduceXTicks(true); chart.margin({bottom:40});