summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/graph/graph_renderer.js
diff options
context:
space:
mode:
authorDipalee Bhalodia <dbh@odoo.com>2018-06-28 18:21:11 +0530
committerAaron Bohy <aab@odoo.com>2018-08-27 08:21:40 +0200
commit3c9aa50449681efc5b4bcc680a6200c964d45804 (patch)
tree2b58d33a70bd8ac4e99e764ec564ebe1330ff1d0 /addons/web/static/src/js/views/graph/graph_renderer.js
parent8bda4744b5a2d6faa5e6900bdbaade460b7e1a6b (diff)
[FIX] web: Graph: group by two fields on line chart
Before this commit, when we applied two or more groupbys in line graph, the groups displayed on the X axis where shifted to the left, and the first one wasn't displayed at all. related task: #1848289 Closes: #25037
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_renderer.js')
-rw-r--r--addons/web/static/src/js/views/graph/graph_renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/graph/graph_renderer.js b/addons/web/static/src/js/views/graph/graph_renderer.js
index 58ce4b2fc39..2b193bbdccb 100644
--- a/addons/web/static/src/js/views/graph/graph_renderer.js
+++ b/addons/web/static/src/js/views/graph/graph_renderer.js
@@ -313,7 +313,7 @@ return AbstractRenderer.extend({
};
}
data_dict[serie].values.push({
- x: tick, y: this.state.data[i].value,
+ x: tick - 1, y: this.state.data[i].value,
});
data = _.map(data_dict, identity);
}