[REF] web: review graphs layout

This commit is contained in:
stefanorigano
2017-09-06 17:55:49 +02:00
committed by qsm-odoo
parent 9380169c74
commit 9e69958099
2 changed files with 6 additions and 5 deletions
@@ -2040,7 +2040,8 @@ var JournalDashboardGraph = AbstractField.extend({
.y(function (d) { return d.value; })
.showValues(false)
.showYAxis(false)
.margin({'left': 0, 'right': 0, 'top': 0, 'bottom': 40});
.color(['#875A7B', '#526774', '#FA8072'])
.margin({'left': 0, 'right': 0, 'top': 20, 'bottom': 20});
self.chart.xAxis.axisLabel(self.data[0].title);
self.chart.yAxis.tickFormat(d3.format(',.2f'));
@@ -2056,7 +2057,7 @@ var JournalDashboardGraph = AbstractField.extend({
}
d3.select(self.$('svg')[0])
.datum(self.data)
.transition().duration(1200)
.transition().duration(600)
.call(self.chart);
self._customizeChart();