[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:
parent
650d792413
commit
fb63eb63ed
|
@ -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});
|
||||
|
|
Loading…
Reference in New Issue