[FIX] web_graph: graduations on Y axe
For bar chart, the graduations along Y axe must be in language format of the user. opw:631659
This commit is contained in:
parent
dd88f3c82f
commit
7d79520559
|
@ -757,6 +757,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({
|
|||
.reduceXTicks(false)
|
||||
.stacked(self.bar_ui === 'stack')
|
||||
.showControls(show_controls);
|
||||
chart.yAxis.tickFormat(function(d) { return openerp.web.format_value(d, { type : 'float' });});
|
||||
|
||||
if (self.width / data[0].values.length < 80) {
|
||||
chart.rotateLabels(-15);
|
||||
|
|
Loading…
Reference in New Issue