Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
3328c59d
Commit
3328c59d
authored
Dec 15, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added param bShowPercent to SetShowDataLabels
parent
c38bcbc4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
30 deletions
+16
-30
cell/apiBuilder.js
cell/apiBuilder.js
+3
-2
common/Drawings/Format/Format.js
common/Drawings/Format/Format.js
+7
-3
slide/apiBuilder.js
slide/apiBuilder.js
+3
-2
word/apiBuilder.js
word/apiBuilder.js
+3
-23
No files found.
cell/apiBuilder.js
View file @
3328c59d
...
@@ -872,10 +872,11 @@
...
@@ -872,10 +872,11 @@
* @param {boolean} bShowSerName
* @param {boolean} bShowSerName
* @param {boolean} bShowCatName
* @param {boolean} bShowCatName
* @param {boolean} bShowVal
* @param {boolean} bShowVal
* @param {boolean} bShowPercent
* */
* */
ApiChart
.
prototype
.
SetShowDataLabels
=
function
(
bShowSerName
,
bShowCatName
,
bShowVal
)
ApiChart
.
prototype
.
SetShowDataLabels
=
function
(
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
)
{
{
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
);
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
};
};
...
...
common/Drawings/Format/Format.js
View file @
3328c59d
...
@@ -12530,10 +12530,11 @@ function CorrectUniColor(asc_color, unicolor, flag)
...
@@ -12530,10 +12530,11 @@ function CorrectUniColor(asc_color, unicolor, flag)
}
}
}
}
function
builder_SetShowDataLabels
(
oChartSpace
,
bShowSerName
,
bShowCatName
,
bShowVal
){
function
builder_SetShowDataLabels
(
oChartSpace
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPerecent
){
if
(
oChartSpace
&&
oChartSpace
.
chart
&&
oChartSpace
.
chart
.
plotArea
&&
oChartSpace
.
chart
.
plotArea
.
charts
[
0
]){
if
(
oChartSpace
&&
oChartSpace
.
chart
&&
oChartSpace
.
chart
.
plotArea
&&
oChartSpace
.
chart
.
plotArea
.
charts
[
0
]){
var
oChart
=
oChartSpace
.
chart
.
plotArea
.
charts
[
0
];
var
oChart
=
oChartSpace
.
chart
.
plotArea
.
charts
[
0
];
if
(
false
==
bShowSerName
&&
false
==
bShowCatName
&&
false
==
bShowVal
)
var
bPieChart
=
oChart
.
getObjectType
()
===
AscDFH
.
historyitem_type_PieChart
||
oChart
.
getObjectType
()
===
AscDFH
.
historyitem_type_DoughnutChart
;
if
(
false
==
bShowSerName
&&
false
==
bShowCatName
&&
false
==
bShowVal
&&
(
bPieChart
&&
bShowPerecent
===
false
))
{
{
if
(
oChart
.
dLbls
)
if
(
oChart
.
dLbls
)
{
{
...
@@ -12549,7 +12550,10 @@ function CorrectUniColor(asc_color, unicolor, flag)
...
@@ -12549,7 +12550,10 @@ function CorrectUniColor(asc_color, unicolor, flag)
oChart
.
dLbls
.
setShowCatName
(
true
==
bShowCatName
);
oChart
.
dLbls
.
setShowCatName
(
true
==
bShowCatName
);
oChart
.
dLbls
.
setShowVal
(
true
==
bShowVal
);
oChart
.
dLbls
.
setShowVal
(
true
==
bShowVal
);
oChart
.
dLbls
.
setShowLegendKey
(
false
);
oChart
.
dLbls
.
setShowLegendKey
(
false
);
//oChart.dLbls.setShowPercent(false);
if
(
bPieChart
){
oChart
.
dLbls
.
setShowPercent
(
true
===
bShowPerecent
);
}
oChart
.
dLbls
.
setShowBubbleSize
(
false
);
oChart
.
dLbls
.
setShowBubbleSize
(
false
);
}
}
}
}
...
...
slide/apiBuilder.js
View file @
3328c59d
...
@@ -678,10 +678,11 @@
...
@@ -678,10 +678,11 @@
* @param {boolean} bShowSerName
* @param {boolean} bShowSerName
* @param {boolean} bShowCatName
* @param {boolean} bShowCatName
* @param {boolean} bShowVal
* @param {boolean} bShowVal
* @param {boolean} bShowPercent
* */
* */
ApiChart
.
prototype
.
SetShowDataLabels
=
function
(
bShowSerName
,
bShowCatName
,
bShowVal
)
ApiChart
.
prototype
.
SetShowDataLabels
=
function
(
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
)
{
{
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
);
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
};
};
...
...
word/apiBuilder.js
View file @
3328c59d
...
@@ -4078,31 +4078,11 @@
...
@@ -4078,31 +4078,11 @@
* @param {boolean} bShowSerName
* @param {boolean} bShowSerName
* @param {boolean} bShowCatName
* @param {boolean} bShowCatName
* @param {boolean} bShowVal
* @param {boolean} bShowVal
* @param {boolean} bShowPercent
* */
* */
ApiChart
.
prototype
.
SetShowDataLabels
=
function
(
bShowSerName
,
bShowCatName
,
bShowVal
)
ApiChart
.
prototype
.
SetShowDataLabels
=
function
(
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
)
{
{
if
(
this
.
Chart
&&
this
.
Chart
.
chart
&&
this
.
Chart
.
chart
.
plotArea
&&
this
.
Chart
.
chart
.
plotArea
.
charts
[
0
])
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
{
var
oChart
=
this
.
Chart
.
chart
.
plotArea
.
charts
[
0
];
if
(
false
==
bShowSerName
&&
false
==
bShowCatName
&&
false
==
bShowVal
)
{
if
(
oChart
.
dLbls
)
{
oChart
.
setDLbls
(
null
);
}
}
if
(
!
oChart
.
dLbls
)
{
oChart
.
setDLbls
(
new
AscFormat
.
CDLbls
());
}
oChart
.
dLbls
.
setSeparator
(
"
,
"
);
oChart
.
dLbls
.
setShowSerName
(
true
==
bShowSerName
);
oChart
.
dLbls
.
setShowCatName
(
true
==
bShowCatName
);
oChart
.
dLbls
.
setShowVal
(
true
==
bShowVal
);
oChart
.
dLbls
.
setShowLegendKey
(
false
);
//oChart.dLbls.setShowPercent(false);
oChart
.
dLbls
.
setShowBubbleSize
(
false
);
}
};
};
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment