diff options
| author | Gery Debongnie <ged@openerp.com> | 2013-12-27 16:07:19 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2013-12-27 16:07:19 +0100 |
| commit | fb63eb63ededd5dd5c747728cd0d23a3b409f77b (patch) | |
| tree | d7d50c2b5e810f6d67fd2644bdecfc0e90c7e5c6 /addons/web_graph/static/src/js/graph.js | |
| parent | 650d792413ebb6fa0af8783a97f7de032dd47d42 (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.js | 5 |
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}); |
