From 99b7fa4272081ac74ce56fe534760ee40db88e17 Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Tue, 26 Nov 2013 17:14:15 +0100 Subject: [PATCH] [FIX] gives the correct data to the charts function instead of undefined (addon web_graph) bzr revid: ged@openerp.com-20131126161415-3thwtp25wm1hvks0 --- addons/web_graph/static/src/js/charts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/web_graph/static/src/js/charts.js b/addons/web_graph/static/src/js/charts.js index e0b41eaff41..16dfe2ed105 100644 --- a/addons/web_graph/static/src/js/charts.js +++ b/addons/web_graph/static/src/js/charts.js @@ -2,9 +2,11 @@ function draw_chart (mode, pivot) { var values = _.map(pivot.rows.main.children, function (pt) { var val = pivot.get_value(pt.id, pivot.cols.main.id); - return {x: pt.name, y: val}; + return {x: pt.title, y: val}; }); + console.log("values",values); + switch (mode) { case 'bar_chart': bar_chart(values);