diff options
| author | Goffin Simon <sig@odoo.com> | 2015-04-29 11:07:36 +0200 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2015-05-04 12:16:17 +0200 |
| commit | 7d795205592872325961925106cb7d13d5b67b23 (patch) | |
| tree | 05fe6398ab5e081cf011ae370e607ecce198dbb2 /addons/web_graph/static/src/js/graph_widget.js | |
| parent | dd88f3c82f8be67fc2224e7107a5511675873718 (diff) | |
[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
Diffstat (limited to 'addons/web_graph/static/src/js/graph_widget.js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph_widget.js | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
