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
53b159b6
Commit
53b159b6
authored
Oct 06, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in calculating fill of plot area in pie charts
parent
3b4e5c44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
common/Drawings/Format/ChartSpace.js
common/Drawings/Format/ChartSpace.js
+17
-9
No files found.
common/Drawings/Format/ChartSpace.js
View file @
53b159b6
...
...
@@ -8443,15 +8443,23 @@ CChartSpace.prototype.recalculatePlotAreaChartBrush = function()
}
else
{
var
tint
=
0.20000
;
if
(
this
.
style
>=
1
&&
this
.
style
<=
32
)
default_brush
=
CreateUnifillSolidFillSchemeColor
(
6
,
tint
);
else
if
(
this
.
style
>=
33
&&
this
.
style
<=
34
)
default_brush
=
CreateUnifillSolidFillSchemeColor
(
8
,
0.20000
);
else
if
(
this
.
style
>=
35
&&
this
.
style
<=
40
)
default_brush
=
CreateUnifillSolidFillSchemeColor
(
this
.
style
-
35
,
0
+
tint
);
else
default_brush
=
CreateUnifillSolidFillSchemeColor
(
8
,
0.95000
);
if
(
this
.
chart
.
plotArea
&&
this
.
chart
.
plotArea
.
charts
[
0
]
&&
(
this
.
chart
.
plotArea
.
charts
[
0
].
getObjectType
()
===
AscDFH
.
historyitem_type_PieChart
||
this
.
chart
.
plotArea
.
charts
[
0
].
getObjectType
()
===
AscDFH
.
historyitem_type_DoughnutChart
))
{
default_brush
=
CreateNoFillUniFill
();
}
else
{
var
tint
=
0.20000
;
if
(
this
.
style
>=
1
&&
this
.
style
<=
32
)
default_brush
=
CreateUnifillSolidFillSchemeColor
(
6
,
tint
);
else
if
(
this
.
style
>=
33
&&
this
.
style
<=
34
)
default_brush
=
CreateUnifillSolidFillSchemeColor
(
8
,
0.20000
);
else
if
(
this
.
style
>=
35
&&
this
.
style
<=
40
)
default_brush
=
CreateUnifillSolidFillSchemeColor
(
this
.
style
-
35
,
tint
);
else
default_brush
=
CreateUnifillSolidFillSchemeColor
(
8
,
0.95000
);
}
}
if
(
plot_area
.
spPr
&&
plot_area
.
spPr
.
Fill
)
{
...
...
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