Commit d0f2e81f 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@47567 954022d7-b5bf-4e40-9824-e11837661b57
parent ffe42081
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
/** /**
* This draws the pie chart * This draws the pie chart
*/ */
OfficeExcel.Pie.prototype.Draw = function () OfficeExcel.Pie.prototype.Draw = function (min,max,ymin,ymax,isSkip,isFormatCell)
{ {
/** /**
* Fire the onbeforedraw event * Fire the onbeforedraw event
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
/** /**
* Draw the labels * Draw the labels
*/ */
this.DrawLabels(); this.DrawLabels(isFormatCell);
/** /**
...@@ -635,7 +635,7 @@ ...@@ -635,7 +635,7 @@
/** /**
* Draws the graphs labels * Draws the graphs labels
*/ */
OfficeExcel.Pie.prototype.DrawLabels = function () OfficeExcel.Pie.prototype.DrawLabels = function (isFormatCell)
{ {
var hAlignment = 'left'; var hAlignment = 'left';
var vAlignment = 'center'; var vAlignment = 'center';
...@@ -729,7 +729,7 @@ ...@@ -729,7 +729,7 @@
text_size, text_size,
this.centerx + explosion_offsetx + ((this.radius + 10)* Math.cos(a)) + (this._otherProps._labels_sticks ? (a < 1.57 || a > 4.71 ? 2 : -2) : 0), this.centerx + explosion_offsetx + ((this.radius + 10)* Math.cos(a)) + (this._otherProps._labels_sticks ? (a < 1.57 || a > 4.71 ? 2 : -2) : 0),
this.centery + explosion_offsety + (((this.radius + 10) * Math.sin(a))), this.centery + explosion_offsety + (((this.radius + 10) * Math.sin(a))),
labels[i], OfficeExcel.numToFormatText(labels[i],isFormatCell),
vAlignment, vAlignment,
hAlignment, false, null,null, bold, null, textOptions); hAlignment, false, null,null, bold, null, textOptions);
} }
......
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