[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
This commit is contained in:
Gery Debongnie 2013-12-27 16:07:19 +01:00
parent 650d792413
commit fb63eb63ed
1 changed files with 2 additions and 3 deletions

View File

@ -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});