From fd89c4d708af3147bf0c67452090ac77963f172f Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 20 Jun 2011 15:04:27 +0200 Subject: [FIX] bug in dhtmlxChart in case of stacked bar chart where the first series contains a value of 0 bzr revid: xmo@openerp.com-20110620130427-kghvj8gbjth4z1aw --- .../base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js') diff --git a/addons/base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js b/addons/base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js index 57e5b5d5b0d..b2179c6f9f7 100644 --- a/addons/base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js +++ b/addons/base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js @@ -1487,7 +1487,7 @@ dhtmlx.chart.stackedBarH = { /*for the 2nd, 3rd, etc. series*/ if(sIndex) - x0 = data[i].$startX; + x0 = data[i].$startX || x0; if(value<0||(this._settings.yAxis&&value===0)){ this.renderTextAt(true, true, x0+Math.floor(barWidth/2),y0,this._settings.label(data[i])); @@ -1622,8 +1622,8 @@ dhtmlx.chart.stackedBar = { /*for the 2nd, 3rd, etc. series*/ if(sIndex) - y0 = data[i].$startY; - + y0 = data[i].$startY || y0; + /*the max height limit*/ if(y0 < (point0.y+1)) continue; -- cgit v1.2.3