From 1b1c0d07779b17e18db0ce13474b28b06ee4e12c Mon Sep 17 00:00:00 2001 From: rap-odoo Date: Fri, 6 May 2016 13:00:29 +0530 Subject: [PATCH] [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. --- addons/account/static/src/js/account_journal_dashboard_widget.js | 1 + 1 file changed, 1 insertion(+) 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},