[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:
Goffin Simon 2015-04-29 11:07:36 +02:00
parent dd88f3c82f
commit 7d79520559
1 changed files with 1 additions and 0 deletions

View File

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