Commit 84251695 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

исправлен баг с построением новой диаграммы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48406 954022d7-b5bf-4e40-9824-e11837661b57
parent ea520b7f
......@@ -692,42 +692,7 @@ asc_CChart.prototype = {
asc_removeSeries: function() { this.series = []; },
asc_getChartEditorFlag: function() { return this.bChartEditor; },
asc_setChartEditorFlag: function(value) { this.bChartEditor = value; },
generateFontMap: function(oFontMap) {
/*var font;
font = this.header.asc_getFont();
if(null != font)
oFontMap[font.asc_getName()] = 1;
font = this.xAxis.asc_getTitleFont();
if(null != font)
oFontMap[font.asc_getName()] = 1;
font = this.xAxis.asc_getLabelFont();
if(null != font)
oFontMap[font.asc_getName()] = 1;
font = this.yAxis.asc_getTitleFont();
if(null != font)
oFontMap[font.asc_getName()] = 1;
font = this.yAxis.asc_getLabelFont();
if(null != font)
oFontMap[font.asc_getName()] = 1;
font = this.legend.asc_getFont();
if(null != font)
oFontMap[font.asc_getName()] = 1;
for(var i = 0, length = this.series.length; i < length; ++i)
{
var seria = this.series[i];
if(null != seria)
{
font = seria.asc_getTitleFont();
if(null != font)
oFontMap[font.asc_getName()] = 1;
font = seria.asc_getLabelFont();
if(null != font)
oFontMap[font.asc_getName()] = 1;
}
}*/
},
asc_setChartEditorFlag: function(value) { this.bChartEditor = value; },
rebuildSeries: function() {
var _t = this;
......
......@@ -2159,6 +2159,7 @@ function findPrevValue(originalData, num, max) {
}
return summ;
}
function setFontChart(chart)
{
var defaultColor = "#000000"
......@@ -2189,7 +2190,7 @@ function setFontChart(chart)
bar._xAxisTitle._bold = chart.xAxis.titleFont.bold ? chart.xAxis.titleFont.bold : true;
bar._xAxisTitle._color = chart.xAxis.titleFont.color ? chart.xAxis.titleFont.color : defaultColor;
bar._xAxisTitle._font = chart.xAxis.titleFont.name ? chart.xAxis.titleFont.name : defaultFont;
bar._xAxisTitle._size = chart.xAxis.titleFont.size ? chart.xAxis.titleFont.size : defaultFont;
bar._xAxisTitle._size = chart.xAxis.titleFont.size ? chart.xAxis.titleFont.size : defaultSize;
bar._xAxisTitle._italic = chart.xAxis.titleFont.italic ? chart.xAxis.titleFont.italic : false;
bar._xAxisTitle._underline = chart.xAxis.titleFont.underline ? chart.xAxis.titleFont.underline : false;
}
......@@ -2198,7 +2199,7 @@ function setFontChart(chart)
bar._xAxisTitle._bold = true;
bar._xAxisTitle._color = defaultColor;
bar._xAxisTitle._font = defaultFont;
bar._xAxisTitle._size = defaultFont;
bar._xAxisTitle._size = defaultSize;
bar._xAxisTitle._italic = false;
bar._xAxisTitle._underline = false;
}
......@@ -2208,7 +2209,7 @@ function setFontChart(chart)
bar._yAxisTitle._bold = chart.yAxis.titleFont.bold ? chart.yAxis.titleFont.bold : true;
bar._yAxisTitle._color = chart.yAxis.titleFont.color ? chart.yAxis.titleFont.color : defaultColor;
bar._yAxisTitle._font = chart.yAxis.titleFont.name ? chart.yAxis.titleFont.name : defaultFont;
bar._yAxisTitle._size = chart.yAxis.titleFont.size ? chart.yAxis.titleFont.size : defaultFont;
bar._yAxisTitle._size = chart.yAxis.titleFont.size ? chart.yAxis.titleFont.size : defaultSize;
bar._yAxisTitle._italic = chart.yAxis.titleFont.italic ? chart.yAxis.titleFont.italic : false;
bar._yAxisTitle._underline = chart.yAxis.titleFont.underline ? chart.yAxis.titleFont.underline : false;
}
......@@ -2217,7 +2218,7 @@ function setFontChart(chart)
bar._yAxisTitle._bold = true;
bar._yAxisTitle._color = defaultColor;
bar._yAxisTitle._font = defaultFont;
bar._yAxisTitle._size = defaultFont;
bar._yAxisTitle._size = defaultSize;
bar._yAxisTitle._italic = false;
bar._yAxisTitle._underline = false;
}
......@@ -2227,7 +2228,7 @@ function setFontChart(chart)
bar._otherProps._key_text_bold = chart.legend.font.bold ? chart.legend.font.bold : false;
bar._otherProps._key_text_color = chart.legend.font.color ? chart.legend.font.color : defaultColor;
bar._otherProps._key_text_font = chart.legend.font.name ? chart.legend.font.name : defaultFont;
bar._otherProps._key_text_size = chart.legend.font.size ? chart.legend.font.size : defaultFont;
bar._otherProps._key_text_size = chart.legend.font.size ? chart.legend.font.size : defaultSize;
bar._otherProps._key_text_italic = chart.legend.font.italic ? chart.legend.font.italic : false;
bar._otherProps._key_text_underline = chart.legend.font.underline ? chart.legend.font.underline : false;
}
......@@ -2236,7 +2237,7 @@ function setFontChart(chart)
bar._otherProps._key_text_bold = false;
bar._otherProps._key_text_color = defaultColor;
bar._otherProps._key_text_font = defaultFont;
bar._otherProps._key_text_size = defaultFont;
bar._otherProps._key_text_size = defaultSize;
bar._otherProps._key_text_italic = false;
bar._otherProps._key_text_underline = false;
}
......
......@@ -2157,16 +2157,6 @@ Woorksheet.prototype.generateFontMap=function(oFontMap){
}
}
}
//пробегаемся по chart
for(var i = 0, length = this.Drawings.length; i < length; ++i)
{
var drawing = this.Drawings[i];
if(drawing.isChart())
{
var chart = drawing.chart;
chart.generateFontMap(oFontMap);
}
}
}
Woorksheet.prototype.clone=function(sNewId){
var oNewWs;
......
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