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

http://bugzserver/show_bug.cgi?id=27171 - [Chart] Построение диаграммы типа...

http://bugzserver/show_bug.cgi?id=27171 -  [Chart] Построение диаграммы типа Pie с особыми настройками не происходит и вызывает падение канвы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59109 954022d7-b5bf-4e40-9824-e11837661b57
parent 6f84a5ac
...@@ -3909,7 +3909,13 @@ drawPieChart.prototype = ...@@ -3909,7 +3909,13 @@ drawPieChart.prototype =
_calculateDLbl: function(chartSpace, ser, val) _calculateDLbl: function(chartSpace, ser, val)
{ {
var pxToMm = this.chartProp.pxToMM; var pxToMm = this.chartProp.pxToMM;
//TODO сделать через idx как у drawDoughnutChart!!!
if(!this.paths.series[val])
return;
var path = this.paths.series[val].ArrPathCommand; var path = this.paths.series[val].ArrPathCommand;
var centerX = path[0].X; var centerX = path[0].X;
var centerY = path[0].Y; var centerY = path[0].Y;
...@@ -3919,6 +3925,9 @@ drawPieChart.prototype = ...@@ -3919,6 +3925,9 @@ drawPieChart.prototype =
var point = this.chartProp.series[0].val.numRef ? this.chartProp.series[0].val.numRef.numCache.pts[val] : this.chartProp.series[0].val.numLit.pts[val]; var point = this.chartProp.series[0].val.numRef ? this.chartProp.series[0].val.numRef.numCache.pts[val] : this.chartProp.series[0].val.numLit.pts[val];
if(!point)
return;
var constMargin = 5 / pxToMm; var constMargin = 5 / pxToMm;
var width = point.compiledDlb.extX; var width = point.compiledDlb.extX;
......
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