diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-05-17 15:04:43 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-05-17 16:38:28 +0200 |
| commit | cab2dce0d2a05d800027553e2919dfd75dda8b5d (patch) | |
| tree | 73389e075779f41e3011be3a44543067784dbcc5 /addons/web/static/src/js | |
| parent | 449a160ef99ec4e1723545a9499e821514517df6 (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.
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views/graph_widget.js | 1 |
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; |
