Commit be93b275 authored by Igor.Zotov's avatar Igor.Zotov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54209 954022d7-b5bf-4e40-9824-e11837661b57
parent d925f655
......@@ -2222,11 +2222,16 @@ drawBarChart.prototype =
var xaxispos = this.chartProp.xaxispos;
var widthGraph = this.chartProp.widthCanvas - this.chartProp.chartGutter._left - this.chartProp.chartGutter._right;
var width = widthGraph / this.chartProp.series[0].val.numRef.numCache.pts.length;
var hmargin = this.chartProp.hmargin;
var val;
var paths;
var individualBarWidth;
var individualBarWidth = width / (this.chartProp.series.length + this.cShapeDrawer.chart.plotArea.chart.gapWidth / 100);
if(this.chartProp.subType == "stacked" || this.chartProp.subType == "stackedPer")
individualBarWidth = width / (1 + this.cShapeDrawer.chart.plotArea.chart.gapWidth / 100);
var hmargin = (this.cShapeDrawer.chart.plotArea.chart.gapWidth / 100 * individualBarWidth) / 2;
var height;
var startX;
var startY;
......@@ -2242,11 +2247,6 @@ drawBarChart.prototype =
seriesHeight[i] = [];
for (var j = 0; j < seria.length; j++) {
individualBarWidth = (width - (2 * hmargin)) / this.chartProp.series.length;
if(this.chartProp.subType == "stacked" || this.chartProp.subType == "stackedPer")
individualBarWidth = width - (2 * hmargin);
val = parseFloat(seria[j].val);
if(this.chartProp.scale[0] > 0 && this.chartProp.scale[this.chartProp.scale.length - 1] > 0)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment