summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph.js
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2013-12-27 16:07:19 +0100
committerGery Debongnie <ged@openerp.com>2013-12-27 16:07:19 +0100
commitfb63eb63ededd5dd5c747728cd0d23a3b409f77b (patch)
treed7d50c2b5e810f6d67fd2644bdecfc0e90c7e5c6 /addons/web_graph/static/src/js/graph.js
parent650d792413ebb6fa0af8783a97f7de032dd47d42 (diff)
[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
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
-rw-r--r--addons/web_graph/static/src/js/graph.js5
1 files 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});