diff options
| author | rap-odoo <rap@odoo.com> | 2016-05-06 13:00:29 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-08-22 11:29:04 +0200 |
| commit | 1b1c0d07779b17e18db0ce13474b28b06ee4e12c (patch) | |
| tree | 8c2ef84ddf155f725df2d5fb7ee9343bf4211d05 | |
| parent | 198a0b8ff615531931c3515de12ca2d0761a3d03 (diff) | |
[IMP] account: Improve graph proportions in accounting dashboard
========
Purpose
========
The graphs on the accounting dashboard give the impression that we had $0 in the bank because the graph is at the bottom of the kanban kard.
==========
Specification
==========
The bottom should be zero, the top should be the maximum of the visible period, and the rest of the graph should be proportionate.
| -rw-r--r-- | addons/account/static/src/js/account_journal_dashboard_widget.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account/static/src/js/account_journal_dashboard_widget.js b/addons/account/static/src/js/account_journal_dashboard_widget.js index eb3ffbbeaa9..f89c8409c16 100644 --- a/addons/account/static/src/js/account_journal_dashboard_widget.js +++ b/addons/account/static/src/js/account_journal_dashboard_widget.js @@ -22,6 +22,7 @@ var JournalDashboardGraph = kanban_widgets.AbstractField.extend({ self.$svg.addClass('o_graph_linechart'); self.chart = nv.models.lineChart(); + self.chart.forceY([0]); self.chart.options({ x: function(d, u) { return u }, margin: {'left': 0, 'right': 0, 'top': 0, 'bottom': 0}, |
