[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.
This commit is contained in:
committed by
Yannick Tivisse
parent
198a0b8ff6
commit
1b1c0d0777
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user