diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-06-20 15:04:27 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-06-20 15:04:27 +0200 |
| commit | fd89c4d708af3147bf0c67452090ac77963f172f (patch) | |
| tree | 5fa29c16e026e0a5dc561da433cb383e0793d481 /addons/base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js | |
| parent | ca34076fbd5d24f2a77954bd07f77d227daf45bd (diff) | |
[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
Diffstat (limited to 'addons/base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js')
| -rw-r--r-- | addons/base_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js | 6 |
1 files changed, 3 insertions, 3 deletions
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;
|
