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

Minor chart fixes

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47274 954022d7-b5bf-4e40-9824-e11837661b57
parent 57cd3ca5
...@@ -888,10 +888,10 @@ function BinaryChartWriter(memory) ...@@ -888,10 +888,10 @@ function BinaryChartWriter(memory)
var oThis = this; var oThis = this;
if(null != chart.legend && true == chart.legend.bShow) if(null != chart.legend && true == chart.legend.bShow)
this.bs.WriteItem(c_oSer_ChartType.Legend, function(){oThis.WriteLegend(chart.legend);}); this.bs.WriteItem(c_oSer_ChartType.Legend, function(){oThis.WriteLegend(chart.legend);});
if(null != chart.title && ("" != chart.title || true == chart.bDefaultTitle)) if (null != chart.header.title && ("" != chart.header.title || true == chart.header.bDefaultTitle))
{ {
this.memory.WriteByte(c_oSer_ChartType.Title); this.memory.WriteByte(c_oSer_ChartType.Title);
this.memory.WriteString2(chart.title); this.memory.WriteString2(chart.header.title);
} }
this.bs.WriteItem(c_oSer_ChartType.PlotArea, function(){oThis.WritePlotArea(chart);}); this.bs.WriteItem(c_oSer_ChartType.PlotArea, function(){oThis.WritePlotArea(chart);});
if(null != chart.styleId) if(null != chart.styleId)
...@@ -1212,7 +1212,7 @@ function BinaryChartWriter(memory) ...@@ -1212,7 +1212,7 @@ function BinaryChartWriter(memory)
{ {
this.memory.WriteByte(c_oSer_ChartSeriesMarkerType.Symbol); this.memory.WriteByte(c_oSer_ChartSeriesMarkerType.Symbol);
this.memory.WriteByte(c_oSerPropLenType.Byte); this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteByte(marker.bShowValue); this.memory.WriteByte(marker.Symbol);
} }
}; };
this.WriteDataLabels = function(chart) this.WriteDataLabels = function(chart)
......
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