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

рефакторинг

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51824 954022d7-b5bf-4e40-9824-e11837661b57
parent 0a0191d7
......@@ -1592,18 +1592,7 @@ function drawChart(chart, arrValues, width, height, options) {
var axis;
calcGutter(axis,chart.min,chart.max,chart.ymin,chart.ymax,chart.isSkip,chart.isFormatCell);
if (chart.xAxis.title && !chart.margins)
{
bar._xAxisTitle._vpos = bar.canvas.height - 23 - legendTop;
bar._xAxisTitle._hpos = bar._chartGutter._left + (bar.canvas.width - bar._chartGutter._left - bar._chartGutter._right ) / 2 ;
}
if (chart.yAxis.title && !chart.margins)
{
bar._yAxisTitle._vpos = bar._chartGutter._top + (bar.canvas.height - bar._chartGutter._top - bar._chartGutter._bottom) / 2 ;
bar._yAxisTitle._hpos = 23 + keyLeft;
}
bar.arrFormatAdobeLabels = chart.arrFormatAdobeLabels;
//bar._otherProps._labels
if(bar._otherProps._labels.length && typeof bar._otherProps._labels[0] == 'object')
......
......@@ -25,12 +25,6 @@
// Chart gutter
this._chartGutter = new OfficeExcel.Gutter();
// Chart Title
this._chartTitle = new OfficeExcel.Title();
// xAxis Title
this._xAxisTitle = new OfficeExcel.Title();
// yAxis Title
this._yAxisTitle = new OfficeExcel.Title();
// Other Props
this._otherProps = new OfficeExcel.OtherProps();
......
......@@ -67,7 +67,6 @@
var hpos = obj._otherProps._yaxispos == 'right' ? gutterLeft + 10 : OfficeExcel.GetWidth(obj) - gutterRight - 10;
var vpos = gutterTop + 10;
var title = obj._chartTitle._text;
var blob_size = text_size; // The blob of color
var hmargin = 8; // This is the size of the gaps between the blob of color and the text
var vmargin = 4; // This is the vertical margin of the key
......
......@@ -28,12 +28,6 @@
// Chart gutter
this._chartGutter = new OfficeExcel.Gutter();
// Chart Title
this._chartTitle = new OfficeExcel.Title();
// xAxis Title
this._xAxisTitle = new OfficeExcel.Title();
// yAxis Title
this._yAxisTitle = new OfficeExcel.Title();
// Other Props
this._otherProps = new OfficeExcel.OtherProps();
......
......@@ -25,12 +25,6 @@
// Chart gutter
this._chartGutter = new OfficeExcel.Gutter();
// Chart Title
this._chartTitle = new OfficeExcel.Title();
// xAxis Title
this._xAxisTitle = new OfficeExcel.Title();
// yAxis Title
this._yAxisTitle = new OfficeExcel.Title();
// Other Props
this._otherProps = new OfficeExcel.OtherProps();
......
......@@ -26,12 +26,6 @@
// Chart gutter
this._chartGutter = new OfficeExcel.Gutter();
// Chart Title
this._chartTitle = new OfficeExcel.Title();
// xAxis Title
this._xAxisTitle = new OfficeExcel.Title();
// yAxis Title
this._yAxisTitle = new OfficeExcel.Title();
// Other Props
this._otherProps = new OfficeExcel.OtherProps();
......
......@@ -27,12 +27,6 @@
// Chart gutter
this._chartGutter = new OfficeExcel.Gutter();
// Chart Title
this._chartTitle = new OfficeExcel.Title();
// xAxis Title
this._xAxisTitle = new OfficeExcel.Title();
// yAxis Title
this._yAxisTitle = new OfficeExcel.Title();
// Other Props
this._otherProps = new OfficeExcel.OtherProps();
......
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