From 7d795205592872325961925106cb7d13d5b67b23 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 29 Apr 2015 11:07:36 +0200 Subject: [PATCH] [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 --- addons/web_graph/static/src/js/graph_widget.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js index ca031039263..d936791d6a4 100644 --- a/addons/web_graph/static/src/js/graph_widget.js +++ b/addons/web_graph/static/src/js/graph_widget.js @@ -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);