Commit 84f14495 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

вызов функции расчета позиции заголовков

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54107 954022d7-b5bf-4e40-9824-e11837661b57
parent f1bb2f19
......@@ -1944,6 +1944,7 @@ function CreateLineChart(asc_series, type)
chart.setLegend(new CLegend());
chart.setPlotVisOnly(true);
chart.setTitle(new CTitle());
chart.title.setOverlay(false);
var disp_blanks_as;
if(type === GROUPING_STANDARD)
{
......
......@@ -251,6 +251,24 @@ CChartSpace.prototype.recalculate = function()
this.recalcInfo.dataLbls[i].setPosition(pos.x, pos.y);
}
this.recalcInfo.dataLbls.length = 0;
if(this.chart && this.chart.title)
{
var pos = this.chartObj.reCalculatePositionText("title", this, this.chart.title);
this.chart.title.setPosition(pos.x, pos.y);
}
if(this.chart && this.chart.plotArea && this.chart.plotArea.valAx && this.chart.plotArea.valAx.title)
{
var pos = this.chartObj.reCalculatePositionText("valAx", this, this.chart.plotArea.valAx.title);
this.chart.plotArea.valAx.title.setPosition(pos.x, pos.y);
}
if(this.chart && this.chart.plotArea && this.chart.plotArea.catAx && this.chart.plotArea.catAx.title)
{
var pos = this.chartObj.reCalculatePositionText("catAx", this, this.chart.plotArea.catAx.title);
this.chart.plotArea.catAx.title.setPosition(pos.x, pos.y);
}
this.recalcInfo.axisLabels.length = 0;
}, this, []);
};
......
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