summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-05-17 15:04:43 +0200
committerNicolas Martinelli <nim@odoo.com>2016-05-17 16:38:28 +0200
commitcab2dce0d2a05d800027553e2919dfd75dda8b5d (patch)
tree73389e075779f41e3011be3a44543067784dbcc5
parent449a160ef99ec4e1723545a9499e821514517df6 (diff)
[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.
-rw-r--r--addons/web/static/src/js/views/graph_widget.js1
1 files changed, 1 insertions, 0 deletions
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;