From cab2dce0d2a05d800027553e2919dfd75dda8b5d Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 17 May 2016 15:04:43 +0200 Subject: [PATCH] [FIX] web: Y-axis formatting In case of a line graph, the values of the Y axis are not formatted as numbers, although they are on the bar graph. --- addons/web/static/src/js/views/graph_widget.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/views/graph_widget.js b/addons/web/static/src/js/views/graph_widget.js index a86ea35e449..048838ad9cd 100644 --- a/addons/web/static/src/js/views/graph_widget.js +++ b/addons/web/static/src/js/views/graph_widget.js @@ -301,6 +301,7 @@ return Widget.extend({ }); chart.xAxis.tickValues(tickValues) .tickFormat(tickFormat); + chart.yAxis.tickFormat(function(d) { return openerp.web.format_value(d, { type : 'float' });}); chart(svg); this.to_remove = chart.update;