Commit e69ef239 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54564 954022d7-b5bf-4e40-9824-e11837661b57
parent 334d4780
......@@ -84,9 +84,13 @@ CChartsDrawer.prototype =
this.areaChart.reCalculate(this.calcProp, null, this);
this.gridChart.reCalculate(this.calcProp, null, chartSpace);
this.allAreaChart.reCalculate(this.calcProp);
this.catAxisChart.reCalculate(this.calcProp, null, chartSpace);
this.valAxisChart.reCalculate(this.calcProp, null, chartSpace);
if(this.calcProp.type != "Pie")
{
this.catAxisChart.reCalculate(this.calcProp, null, chartSpace);
this.valAxisChart.reCalculate(this.calcProp, null, chartSpace);
}
this.chart.reCalculate(this, chartSpace);
},
......@@ -99,8 +103,13 @@ CChartsDrawer.prototype =
//отрисовываем без пересчёта
this.allAreaChart.draw(this.calcProp, cShapeDrawer, chartSpace);
this.areaChart.draw(this.calcProp, cShapeDrawer, chartSpace);
this.catAxisChart.draw(this.calcProp, cShapeDrawer, chartSpace);
this.valAxisChart.draw(this.calcProp, cShapeDrawer, chartSpace);
if(this.calcProp.type != "Pie")
{
this.catAxisChart.draw(this.calcProp, cShapeDrawer, chartSpace);
this.valAxisChart.draw(this.calcProp, cShapeDrawer, chartSpace);
}
this.gridChart.draw(this.calcProp, cShapeDrawer, chartSpace);
this.chart.draw(this, cShapeDrawer, chartSpace);
},
......@@ -193,44 +202,48 @@ CChartsDrawer.prototype =
//count line of chart grid
this.calcProp.numhlines = chartProp.chart.plotArea.valAx.yPoints.length - 1;
if(this.calcProp.type == "Bar")
{
this.calcProp.numvlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvMinorlines = 2;
this.calcProp.numhMinorlines = 5;
}
else if(this.calcProp.type == "HBar")
{
this.calcProp.numhlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvlines = chartProp.chart.plotArea.valAx.yPoints.length;
this.calcProp.numhMinorlines = 2;
this.calcProp.numvMinorlines = 5;
}
else if(this.calcProp.type == "Line" || this.calcProp.type == "Stock")
{
this.calcProp.numvlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvMinorlines = 2;
this.calcProp.numhMinorlines = 5;
}
else if(this.calcProp.type == "Scatter")
{
this.calcProp.numvlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvMinorlines = 5;
this.calcProp.numhMinorlines = 5;
}
else if(this.calcProp.type == "Area")
{
this.calcProp.numvlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvMinorlines = 2;
this.calcProp.numhMinorlines = 5;
if(chartProp.chart.plotArea.valAx.yPoints && chartProp.chart.plotArea.catAx.xPoints)
{
this.calcProp.numhlines = chartProp.chart.plotArea.valAx.yPoints.length - 1;
if(this.calcProp.type == "Bar")
{
this.calcProp.numvlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvMinorlines = 2;
this.calcProp.numhMinorlines = 5;
}
else if(this.calcProp.type == "HBar")
{
this.calcProp.numhlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvlines = chartProp.chart.plotArea.valAx.yPoints.length;
this.calcProp.numhMinorlines = 2;
this.calcProp.numvMinorlines = 5;
}
else if(this.calcProp.type == "Line" || this.calcProp.type == "Stock")
{
this.calcProp.numvlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvMinorlines = 2;
this.calcProp.numhMinorlines = 5;
}
else if(this.calcProp.type == "Scatter")
{
this.calcProp.numvlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvMinorlines = 5;
this.calcProp.numhMinorlines = 5;
}
else if(this.calcProp.type == "Area")
{
this.calcProp.numvlines = chartProp.chart.plotArea.catAx.xPoints.length;
this.calcProp.numvMinorlines = 2;
this.calcProp.numhMinorlines = 5;
}
}
if(this.calcProp.type != "Scatter")
this.calcProp.nullPositionOX = this._getNullPosition();
else
......
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