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
08b86c90
Commit
08b86c90
authored
Dec 19, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Methods for set axis tick labels
parent
f3710dbf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
147 additions
and
31 deletions
+147
-31
cell/apiBuilder.js
cell/apiBuilder.js
+38
-15
common/Drawings/Format/Format.js
common/Drawings/Format/Format.js
+41
-0
slide/apiBuilder.js
slide/apiBuilder.js
+33
-8
word/apiBuilder.js
word/apiBuilder.js
+35
-8
No files found.
cell/apiBuilder.js
View file @
08b86c90
...
@@ -125,6 +125,11 @@
...
@@ -125,6 +125,11 @@
* "yellowGreen")} PresetColor
* "yellowGreen")} PresetColor
* */
* */
/**
*
* @typedef {("none" | "nextTo" | "low" | "high")} TickLabelPosition
* **/
/**
/**
* Class representing a base class for color types
* Class representing a base class for color types
* @constructor
* @constructor
...
@@ -918,6 +923,22 @@
...
@@ -918,6 +923,22 @@
{
{
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
};
};
/**
* Spicifies tick labels position vertical axis
* @param {TickLabelPosition} sTickLabelPosition
* */
ApiChart
.
prototype
.
SetVertAxisTickLabelPosition
=
function
(
sTickLabelPosition
)
{
AscFormat
.
builder_SetChartVertAxisTickLablePosition
(
this
.
Chart
,
sTickLabelPosition
);
};
/**
* Spicifies tick labels position horizontal axis
* @param {TickLabelPosition} sTickLabelPosition
* */
ApiChart
.
prototype
.
SetHorAxisTickLabelPosition
=
function
(
sTickLabelPosition
)
{
AscFormat
.
builder_SetChartHorAxisTickLablePosition
(
this
.
Chart
,
sTickLabelPosition
);
};
Api
.
prototype
[
"
GetActiveSheet
"
]
=
Api
.
prototype
.
GetActiveSheet
;
Api
.
prototype
[
"
GetActiveSheet
"
]
=
Api
.
prototype
.
GetActiveSheet
;
...
@@ -957,24 +978,26 @@
...
@@ -957,24 +978,26 @@
ApiRange
.
prototype
[
"
UnMerge
"
]
=
ApiRange
.
prototype
.
UnMerge
;
ApiRange
.
prototype
[
"
UnMerge
"
]
=
ApiRange
.
prototype
.
UnMerge
;
ApiDrawing
.
prototype
[
"
GetClassType
"
]
=
ApiDrawing
.
prototype
.
GetClassType
;
ApiDrawing
.
prototype
[
"
GetClassType
"
]
=
ApiDrawing
.
prototype
.
GetClassType
;
ApiDrawing
.
prototype
[
"
SetSize
"
]
=
ApiDrawing
.
prototype
.
SetSize
;
ApiDrawing
.
prototype
[
"
SetSize
"
]
=
ApiDrawing
.
prototype
.
SetSize
;
ApiDrawing
.
prototype
[
"
SetPosition
"
]
=
ApiDrawing
.
prototype
.
SetPosition
;
ApiDrawing
.
prototype
[
"
SetPosition
"
]
=
ApiDrawing
.
prototype
.
SetPosition
;
ApiImage
.
prototype
[
"
GetClassType
"
]
=
ApiImage
.
prototype
.
GetClassType
;
ApiImage
.
prototype
[
"
GetClassType
"
]
=
ApiImage
.
prototype
.
GetClassType
;
ApiShape
.
prototype
[
"
GetClassType
"
]
=
ApiShape
.
prototype
.
GetClassType
;
ApiShape
.
prototype
[
"
GetClassType
"
]
=
ApiShape
.
prototype
.
GetClassType
;
ApiShape
.
prototype
[
"
GetDocContent
"
]
=
ApiShape
.
prototype
.
GetDocContent
;
ApiShape
.
prototype
[
"
GetDocContent
"
]
=
ApiShape
.
prototype
.
GetDocContent
;
ApiShape
.
prototype
[
"
SetVerticalTextAlign
"
]
=
ApiShape
.
prototype
.
SetVerticalTextAlign
;
ApiShape
.
prototype
[
"
SetVerticalTextAlign
"
]
=
ApiShape
.
prototype
.
SetVerticalTextAlign
;
ApiChart
.
prototype
[
"
GetClassType
"
]
=
ApiChart
.
prototype
.
GetClassType
;
ApiChart
.
prototype
[
"
GetClassType
"
]
=
ApiChart
.
prototype
.
GetClassType
;
ApiChart
.
prototype
[
"
SetTitle
"
]
=
ApiChart
.
prototype
.
SetTitle
;
ApiChart
.
prototype
[
"
SetTitle
"
]
=
ApiChart
.
prototype
.
SetTitle
;
ApiChart
.
prototype
[
"
SetHorAxisTitle
"
]
=
ApiChart
.
prototype
.
SetHorAxisTitle
;
ApiChart
.
prototype
[
"
SetHorAxisTitle
"
]
=
ApiChart
.
prototype
.
SetHorAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisTitle
"
]
=
ApiChart
.
prototype
.
SetVerAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisTitle
"
]
=
ApiChart
.
prototype
.
SetVerAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetVerAxisOrientation
;
ApiChart
.
prototype
[
"
SetVerAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetVerAxisOrientation
;
ApiChart
.
prototype
[
"
SetHorAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetHorAxisOrientation
;
ApiChart
.
prototype
[
"
SetHorAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetHorAxisOrientation
;
ApiChart
.
prototype
[
"
SetLegendPos
"
]
=
ApiChart
.
prototype
.
SetLegendPos
;
ApiChart
.
prototype
[
"
SetLegendPos
"
]
=
ApiChart
.
prototype
.
SetLegendPos
;
ApiChart
.
prototype
[
"
SetShowDataLabels
"
]
=
ApiChart
.
prototype
.
SetShowDataLabels
;
ApiChart
.
prototype
[
"
SetShowDataLabels
"
]
=
ApiChart
.
prototype
.
SetShowDataLabels
;
ApiChart
.
prototype
[
"
SetVertAxisTickLabelPosition
"
]
=
ApiChart
.
prototype
.
SetVertAxisTickLabelPosition
;
ApiChart
.
prototype
[
"
SetHorAxisTickLabelPosition
"
]
=
ApiChart
.
prototype
.
SetHorAxisTickLabelPosition
;
function
private_SetCoords
(
oDrawing
,
oWorksheet
,
nExtX
,
nExtY
,
nFromCol
,
nColOffset
,
nFromRow
,
nRowOffset
){
function
private_SetCoords
(
oDrawing
,
oWorksheet
,
nExtX
,
nExtY
,
nFromCol
,
nColOffset
,
nFromRow
,
nRowOffset
){
...
...
common/Drawings/Format/Format.js
View file @
08b86c90
...
@@ -12559,6 +12559,45 @@ function CorrectUniColor(asc_color, unicolor, flag)
...
@@ -12559,6 +12559,45 @@ function CorrectUniColor(asc_color, unicolor, flag)
}
}
function
builder_SetChartAxisLabelsPos
(
oAxis
,
sPosition
){
if
(
!
oAxis
||
!
oAxis
.
setTickLblPos
){
return
;
}
var
nPositionType
=
null
;
var
c_oAscTickLabelsPos
=
window
[
'
Asc
'
].
c_oAscTickLabelsPos
;
switch
(
sPosition
){
case
"
high
"
:{
nPositionType
=
c_oAscTickLabelsPos
.
TICK_LABEL_POSITION_HIGH
;
break
;
}
case
"
low
"
:{
nPositionType
=
c_oAscTickLabelsPos
.
TICK_LABEL_POSITION_LOW
;
break
;
}
case
"
nextTo
"
:{
nPositionType
=
c_oAscTickLabelsPos
.
TICK_LABEL_POSITION_LOW
;
break
;
}
case
"
none
"
:{
nPositionType
=
c_oAscTickLabelsPos
.
TICK_LABEL_POSITION_NONE
;
break
;
}
}
if
(
nPositionType
!==
null
){
oAxis
.
setTickLblPos
(
nPositionType
);
}
}
function
builder_SetChartVertAxisTickLablePosition
(
oChartSpace
,
sPosition
){
if
(
oChartSpace
){
builder_SetChartAxisLabelsPos
(
oChartSpace
.
chart
.
plotArea
.
getVerticalAxis
(),
sPosition
);
}
}
function
builder_SetChartHorAxisTickLablePosition
(
oChartSpace
,
sPosition
){
if
(
oChartSpace
){
builder_SetChartAxisLabelsPos
(
oChartSpace
.
chart
.
plotArea
.
getHorizontalAxis
(),
sPosition
);
}
}
//----------------------------------------------------------export----------------------------------------------------
//----------------------------------------------------------export----------------------------------------------------
window
[
'
AscFormat
'
]
=
window
[
'
AscFormat
'
]
||
{};
window
[
'
AscFormat
'
]
=
window
[
'
AscFormat
'
]
||
{};
...
@@ -12679,6 +12718,8 @@ function CorrectUniColor(asc_color, unicolor, flag)
...
@@ -12679,6 +12718,8 @@ function CorrectUniColor(asc_color, unicolor, flag)
window
[
'
AscFormat
'
].
builder_SetChartVertAxisOrientation
=
builder_SetChartVertAxisOrientation
;
window
[
'
AscFormat
'
].
builder_SetChartVertAxisOrientation
=
builder_SetChartVertAxisOrientation
;
window
[
'
AscFormat
'
].
builder_SetChartHorAxisOrientation
=
builder_SetChartHorAxisOrientation
;
window
[
'
AscFormat
'
].
builder_SetChartHorAxisOrientation
=
builder_SetChartHorAxisOrientation
;
window
[
'
AscFormat
'
].
builder_SetChartVertAxisTickLablePosition
=
builder_SetChartVertAxisTickLablePosition
;
window
[
'
AscFormat
'
].
builder_SetChartHorAxisTickLablePosition
=
builder_SetChartHorAxisTickLablePosition
;
window
[
'
AscFormat
'
].
Ax_Counter
=
Ax_Counter
;
window
[
'
AscFormat
'
].
Ax_Counter
=
Ax_Counter
;
window
[
'
AscFormat
'
].
TYPE_TRACK
=
TYPE_TRACK
;
window
[
'
AscFormat
'
].
TYPE_TRACK
=
TYPE_TRACK
;
...
...
slide/apiBuilder.js
View file @
08b86c90
...
@@ -183,6 +183,12 @@
...
@@ -183,6 +183,12 @@
* @typedef {("aliceBlue" | "antiqueWhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedAlmond" | "blue" | "blueViolet" | "brown" | "burlyWood" | "cadetBlue" | "chartreuse" | "chocolate" | "coral" | "cornflowerBlue" | "cornsilk" | "crimson" | "cyan" | "darkBlue" | "darkCyan" | "darkGoldenrod" | "darkGray" | "darkGreen" | "darkGrey" | "darkKhaki" | "darkMagenta" | "darkOliveGreen" | "darkOrange" | "darkOrchid" | "darkRed" | "darkSalmon" | "darkSeaGreen" | "darkSlateBlue" | "darkSlateGray" | "darkSlateGrey" | "darkTurquoise" | "darkViolet" | "deepPink" | "deepSkyBlue" | "dimGray" | "dimGrey" | "dkBlue" | "dkCyan" | "dkGoldenrod" | "dkGray" | "dkGreen" | "dkGrey" | "dkKhaki" | "dkMagenta" | "dkOliveGreen" | "dkOrange" | "dkOrchid" | "dkRed" | "dkSalmon" | "dkSeaGreen" | "dkSlateBlue" | "dkSlateGray" | "dkSlateGrey" | "dkTurquoise" | "dkViolet" | "dodgerBlue" | "firebrick" | "floralWhite" | "forestGreen" | "fuchsia" | "gainsboro" | "ghostWhite" | "gold" | "goldenrod" | "gray" | "green" | "greenYellow" | "grey" | "honeydew" | "hotPink" | "indianRed" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderBlush" | "lawnGreen" | "lemonChiffon" | "lightBlue" | "lightCoral" | "lightCyan" | "lightGoldenrodYellow" | "lightGray" | "lightGreen" | "lightGrey" | "lightPink" | "lightSalmon" | "lightSeaGreen" | "lightSkyBlue" | "lightSlateGray" | "lightSlateGrey" | "lightSteelBlue" | "lightYellow" | "lime" | "limeGreen" | "linen" | "ltBlue" | "ltCoral" | "ltCyan" | "ltGoldenrodYellow" | "ltGray" | "ltGreen" | "ltGrey" | "ltPink" | "ltSalmon" | "ltSeaGreen" | "ltSkyBlue" | "ltSlateGray" | "ltSlateGrey" | "ltSteelBlue" | "ltYellow" | "magenta" | "maroon" | "medAquamarine" | "medBlue" | "mediumAquamarine" | "mediumBlue" | "mediumOrchid" | "mediumPurple" | "mediumSeaGreen" | "mediumSlateBlue" | "mediumSpringGreen" | "mediumTurquoise" | "mediumVioletRed" | "medOrchid" | "medPurple" | "medSeaGreen" | "medSlateBlue" | "medSpringGreen" | "medTurquoise" | "medVioletRed" | "midnightBlue" | "mintCream" | "mistyRose" | "moccasin" | "navajoWhite" | "navy" | "oldLace" | "olive" | "oliveDrab" | "orange" | "orangeRed" | "orchid" | "paleGoldenrod" | "paleGreen" | "paleTurquoise" | "paleVioletRed" | "papayaWhip" | "peachPuff" | "peru" | "pink" | "plum" | "powderBlue" | "purple" | "red" | "rosyBrown" | "royalBlue" | "saddleBrown" | "salmon" | "sandyBrown" | "seaGreen" | "seaShell" | "sienna" | "silver" | "skyBlue" | "slateBlue" | "slateGray" | "slateGrey" | "snow" | "springGreen" | "steelBlue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whiteSmoke" | "yellow" | "yellowGreen")} PresetColor
* @typedef {("aliceBlue" | "antiqueWhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedAlmond" | "blue" | "blueViolet" | "brown" | "burlyWood" | "cadetBlue" | "chartreuse" | "chocolate" | "coral" | "cornflowerBlue" | "cornsilk" | "crimson" | "cyan" | "darkBlue" | "darkCyan" | "darkGoldenrod" | "darkGray" | "darkGreen" | "darkGrey" | "darkKhaki" | "darkMagenta" | "darkOliveGreen" | "darkOrange" | "darkOrchid" | "darkRed" | "darkSalmon" | "darkSeaGreen" | "darkSlateBlue" | "darkSlateGray" | "darkSlateGrey" | "darkTurquoise" | "darkViolet" | "deepPink" | "deepSkyBlue" | "dimGray" | "dimGrey" | "dkBlue" | "dkCyan" | "dkGoldenrod" | "dkGray" | "dkGreen" | "dkGrey" | "dkKhaki" | "dkMagenta" | "dkOliveGreen" | "dkOrange" | "dkOrchid" | "dkRed" | "dkSalmon" | "dkSeaGreen" | "dkSlateBlue" | "dkSlateGray" | "dkSlateGrey" | "dkTurquoise" | "dkViolet" | "dodgerBlue" | "firebrick" | "floralWhite" | "forestGreen" | "fuchsia" | "gainsboro" | "ghostWhite" | "gold" | "goldenrod" | "gray" | "green" | "greenYellow" | "grey" | "honeydew" | "hotPink" | "indianRed" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderBlush" | "lawnGreen" | "lemonChiffon" | "lightBlue" | "lightCoral" | "lightCyan" | "lightGoldenrodYellow" | "lightGray" | "lightGreen" | "lightGrey" | "lightPink" | "lightSalmon" | "lightSeaGreen" | "lightSkyBlue" | "lightSlateGray" | "lightSlateGrey" | "lightSteelBlue" | "lightYellow" | "lime" | "limeGreen" | "linen" | "ltBlue" | "ltCoral" | "ltCyan" | "ltGoldenrodYellow" | "ltGray" | "ltGreen" | "ltGrey" | "ltPink" | "ltSalmon" | "ltSeaGreen" | "ltSkyBlue" | "ltSlateGray" | "ltSlateGrey" | "ltSteelBlue" | "ltYellow" | "magenta" | "maroon" | "medAquamarine" | "medBlue" | "mediumAquamarine" | "mediumBlue" | "mediumOrchid" | "mediumPurple" | "mediumSeaGreen" | "mediumSlateBlue" | "mediumSpringGreen" | "mediumTurquoise" | "mediumVioletRed" | "medOrchid" | "medPurple" | "medSeaGreen" | "medSlateBlue" | "medSpringGreen" | "medTurquoise" | "medVioletRed" | "midnightBlue" | "mintCream" | "mistyRose" | "moccasin" | "navajoWhite" | "navy" | "oldLace" | "olive" | "oliveDrab" | "orange" | "orangeRed" | "orchid" | "paleGoldenrod" | "paleGreen" | "paleTurquoise" | "paleVioletRed" | "papayaWhip" | "peachPuff" | "peru" | "pink" | "plum" | "powderBlue" | "purple" | "red" | "rosyBrown" | "royalBlue" | "saddleBrown" | "salmon" | "sandyBrown" | "seaGreen" | "seaShell" | "sienna" | "silver" | "skyBlue" | "slateBlue" | "slateGray" | "slateGrey" | "snow" | "springGreen" | "steelBlue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whiteSmoke" | "yellow" | "yellowGreen")} PresetColor
* */
* */
/**
*
* @typedef {("none" | "nextTo" | "low" | "high")} TickLabelPosition
* **/
/**
/**
* @typedef {"tile" | "stretch"} BlipFillType
* @typedef {"tile" | "stretch"} BlipFillType
* */
* */
...
@@ -685,6 +691,23 @@
...
@@ -685,6 +691,23 @@
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
};
};
/**
* Spicifies tick labels position vertical axis
* @param {TickLabelPosition} sTickLabelPosition
* */
ApiChart
.
prototype
.
SetVertAxisTickLabelPosition
=
function
(
sTickLabelPosition
)
{
AscFormat
.
builder_SetChartVertAxisTickLablePosition
(
this
.
Chart
,
sTickLabelPosition
);
};
/**
* Spicifies tick labels position horizontal axis
* @param {TickLabelPosition} sTickLabelPosition
* */
ApiChart
.
prototype
.
SetHorAxisTickLabelPosition
=
function
(
sTickLabelPosition
)
{
AscFormat
.
builder_SetChartHorAxisTickLablePosition
(
this
.
Chart
,
sTickLabelPosition
);
};
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Export
// Export
...
@@ -722,14 +745,16 @@
...
@@ -722,14 +745,16 @@
ApiShape
.
prototype
[
"
GetDocContent
"
]
=
ApiShape
.
prototype
.
GetDocContent
;
ApiShape
.
prototype
[
"
GetDocContent
"
]
=
ApiShape
.
prototype
.
GetDocContent
;
ApiShape
.
prototype
[
"
SetVerticalTextAlign
"
]
=
ApiShape
.
prototype
.
SetVerticalTextAlign
;
ApiShape
.
prototype
[
"
SetVerticalTextAlign
"
]
=
ApiShape
.
prototype
.
SetVerticalTextAlign
;
ApiChart
.
prototype
[
"
GetClassType
"
]
=
ApiChart
.
prototype
.
GetClassType
;
ApiChart
.
prototype
[
"
GetClassType
"
]
=
ApiChart
.
prototype
.
GetClassType
;
ApiChart
.
prototype
[
"
SetTitle
"
]
=
ApiChart
.
prototype
.
SetTitle
;
ApiChart
.
prototype
[
"
SetTitle
"
]
=
ApiChart
.
prototype
.
SetTitle
;
ApiChart
.
prototype
[
"
SetHorAxisTitle
"
]
=
ApiChart
.
prototype
.
SetHorAxisTitle
;
ApiChart
.
prototype
[
"
SetHorAxisTitle
"
]
=
ApiChart
.
prototype
.
SetHorAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisTitle
"
]
=
ApiChart
.
prototype
.
SetVerAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisTitle
"
]
=
ApiChart
.
prototype
.
SetVerAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetVerAxisOrientation
;
ApiChart
.
prototype
[
"
SetVerAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetVerAxisOrientation
;
ApiChart
.
prototype
[
"
SetHorAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetHorAxisOrientation
;
ApiChart
.
prototype
[
"
SetHorAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetHorAxisOrientation
;
ApiChart
.
prototype
[
"
SetLegendPos
"
]
=
ApiChart
.
prototype
.
SetLegendPos
;
ApiChart
.
prototype
[
"
SetLegendPos
"
]
=
ApiChart
.
prototype
.
SetLegendPos
;
ApiChart
.
prototype
[
"
SetShowDataLabels
"
]
=
ApiChart
.
prototype
.
SetShowDataLabels
;
ApiChart
.
prototype
[
"
SetShowDataLabels
"
]
=
ApiChart
.
prototype
.
SetShowDataLabels
;
ApiChart
.
prototype
[
"
SetVertAxisTickLabelPosition
"
]
=
ApiChart
.
prototype
.
SetVertAxisTickLabelPosition
;
ApiChart
.
prototype
[
"
SetHorAxisTickLabelPosition
"
]
=
ApiChart
.
prototype
.
SetHorAxisTickLabelPosition
;
function
private_GetCurrentSlide
(){
function
private_GetCurrentSlide
(){
var
oApiPresentation
=
editor
.
GetPresentation
();
var
oApiPresentation
=
editor
.
GetPresentation
();
...
...
word/apiBuilder.js
View file @
08b86c90
...
@@ -532,6 +532,12 @@
...
@@ -532,6 +532,12 @@
* "greenYellow" | "grey" | "honeydew" | "hotPink" | "indianRed" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderBlush" | "lawnGreen" | "lemonChiffon" | "lightBlue" | "lightCoral" | "lightCyan" | "lightGoldenrodYellow" | "lightGray" | "lightGreen" | "lightGrey" | "lightPink" | "lightSalmon" | "lightSeaGreen" | "lightSkyBlue" | "lightSlateGray" | "lightSlateGrey" | "lightSteelBlue" | "lightYellow" | "lime" | "limeGreen" | "linen" | "ltBlue" | "ltCoral" | "ltCyan" | "ltGoldenrodYellow" | "ltGray" | "ltGreen" | "ltGrey" | "ltPink" | "ltSalmon" | "ltSeaGreen" | "ltSkyBlue" | "ltSlateGray" | "ltSlateGrey" | "ltSteelBlue" | "ltYellow" | "magenta" | "maroon" | "medAquamarine" | "medBlue" | "mediumAquamarine" | "mediumBlue" | "mediumOrchid" | "mediumPurple" | "mediumSeaGreen" | "mediumSlateBlue" | "mediumSpringGreen" | "mediumTurquoise" | "mediumVioletRed" | "medOrchid" | "medPurple" | "medSeaGreen" | "medSlateBlue" | "medSpringGreen" | "medTurquoise" | "medVioletRed" | "midnightBlue" | "mintCream" | "mistyRose" | "moccasin" | "navajoWhite" | "navy" | "oldLace" | "olive" | "oliveDrab" | "orange" | "orangeRed" | "orchid" | "paleGoldenrod" | "paleGreen" | "paleTurquoise" | "paleVioletRed" | "papayaWhip" | "peachPuff" | "peru" | "pink" | "plum" | "powderBlue" | "purple" | "red" | "rosyBrown" | "royalBlue" | "saddleBrown" | "salmon" | "sandyBrown" | "seaGreen" | "seaShell" | "sienna" | "silver" | "skyBlue" | "slateBlue" | "slateGray" | "slateGrey" | "snow" | "springGreen" | "steelBlue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whiteSmoke" | "yellow" | "yellowGreen")} PresetColor
* "greenYellow" | "grey" | "honeydew" | "hotPink" | "indianRed" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderBlush" | "lawnGreen" | "lemonChiffon" | "lightBlue" | "lightCoral" | "lightCyan" | "lightGoldenrodYellow" | "lightGray" | "lightGreen" | "lightGrey" | "lightPink" | "lightSalmon" | "lightSeaGreen" | "lightSkyBlue" | "lightSlateGray" | "lightSlateGrey" | "lightSteelBlue" | "lightYellow" | "lime" | "limeGreen" | "linen" | "ltBlue" | "ltCoral" | "ltCyan" | "ltGoldenrodYellow" | "ltGray" | "ltGreen" | "ltGrey" | "ltPink" | "ltSalmon" | "ltSeaGreen" | "ltSkyBlue" | "ltSlateGray" | "ltSlateGrey" | "ltSteelBlue" | "ltYellow" | "magenta" | "maroon" | "medAquamarine" | "medBlue" | "mediumAquamarine" | "mediumBlue" | "mediumOrchid" | "mediumPurple" | "mediumSeaGreen" | "mediumSlateBlue" | "mediumSpringGreen" | "mediumTurquoise" | "mediumVioletRed" | "medOrchid" | "medPurple" | "medSeaGreen" | "medSlateBlue" | "medSpringGreen" | "medTurquoise" | "medVioletRed" | "midnightBlue" | "mintCream" | "mistyRose" | "moccasin" | "navajoWhite" | "navy" | "oldLace" | "olive" | "oliveDrab" | "orange" | "orangeRed" | "orchid" | "paleGoldenrod" | "paleGreen" | "paleTurquoise" | "paleVioletRed" | "papayaWhip" | "peachPuff" | "peru" | "pink" | "plum" | "powderBlue" | "purple" | "red" | "rosyBrown" | "royalBlue" | "saddleBrown" | "salmon" | "sandyBrown" | "seaGreen" | "seaShell" | "sienna" | "silver" | "skyBlue" | "slateBlue" | "slateGray" | "slateGrey" | "snow" | "springGreen" | "steelBlue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whiteSmoke" | "yellow" | "yellowGreen")} PresetColor
* */
* */
/**
*
* @typedef {("none" | "nextTo" | "low" | "high")} TickLabelPosition
* **/
/**
/**
* @typedef {"tile" | "stretch"} BlipFillType
* @typedef {"tile" | "stretch"} BlipFillType
* */
* */
...
@@ -4085,6 +4091,25 @@
...
@@ -4085,6 +4091,25 @@
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
AscFormat
.
builder_SetShowDataLabels
(
this
.
Chart
,
bShowSerName
,
bShowCatName
,
bShowVal
,
bShowPercent
);
};
};
/**
* Spicifies tick labels position vertical axis
* @param {TickLabelPosition} sTickLabelPosition
* */
ApiChart
.
prototype
.
SetVertAxisTickLabelPosition
=
function
(
sTickLabelPosition
)
{
AscFormat
.
builder_SetChartVertAxisTickLablePosition
(
this
.
Chart
,
sTickLabelPosition
);
};
/**
* Spicifies tick labels position horizontal axis
* @param {TickLabelPosition} sTickLabelPosition
* */
ApiChart
.
prototype
.
SetHorAxisTickLabelPosition
=
function
(
sTickLabelPosition
)
{
AscFormat
.
builder_SetChartHorAxisTickLablePosition
(
this
.
Chart
,
sTickLabelPosition
);
};
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
//
//
// ApiFill
// ApiFill
...
@@ -4433,14 +4458,16 @@
...
@@ -4433,14 +4458,16 @@
ApiShape
.
prototype
[
"
SetVerticalTextAlign
"
]
=
ApiShape
.
prototype
.
SetVerticalTextAlign
;
ApiShape
.
prototype
[
"
SetVerticalTextAlign
"
]
=
ApiShape
.
prototype
.
SetVerticalTextAlign
;
ApiShape
.
prototype
[
"
SetPaddings
"
]
=
ApiShape
.
prototype
.
SetPaddings
;
ApiShape
.
prototype
[
"
SetPaddings
"
]
=
ApiShape
.
prototype
.
SetPaddings
;
ApiChart
.
prototype
[
"
GetClassType
"
]
=
ApiChart
.
prototype
.
GetClassType
;
ApiChart
.
prototype
[
"
GetClassType
"
]
=
ApiChart
.
prototype
.
GetClassType
;
ApiChart
.
prototype
[
"
SetTitle
"
]
=
ApiChart
.
prototype
.
SetTitle
;
ApiChart
.
prototype
[
"
SetTitle
"
]
=
ApiChart
.
prototype
.
SetTitle
;
ApiChart
.
prototype
[
"
SetHorAxisTitle
"
]
=
ApiChart
.
prototype
.
SetHorAxisTitle
;
ApiChart
.
prototype
[
"
SetHorAxisTitle
"
]
=
ApiChart
.
prototype
.
SetHorAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisTitle
"
]
=
ApiChart
.
prototype
.
SetVerAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisTitle
"
]
=
ApiChart
.
prototype
.
SetVerAxisTitle
;
ApiChart
.
prototype
[
"
SetVerAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetVerAxisOrientation
;
ApiChart
.
prototype
[
"
SetVerAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetVerAxisOrientation
;
ApiChart
.
prototype
[
"
SetHorAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetHorAxisOrientation
;
ApiChart
.
prototype
[
"
SetHorAxisOrientation
"
]
=
ApiChart
.
prototype
.
SetHorAxisOrientation
;
ApiChart
.
prototype
[
"
SetLegendPos
"
]
=
ApiChart
.
prototype
.
SetLegendPos
;
ApiChart
.
prototype
[
"
SetLegendPos
"
]
=
ApiChart
.
prototype
.
SetLegendPos
;
ApiChart
.
prototype
[
"
SetShowDataLabels
"
]
=
ApiChart
.
prototype
.
SetShowDataLabels
;
ApiChart
.
prototype
[
"
SetShowDataLabels
"
]
=
ApiChart
.
prototype
.
SetShowDataLabels
;
ApiChart
.
prototype
[
"
SetVertAxisTickLabelPosition
"
]
=
ApiChart
.
prototype
.
SetVertAxisTickLabelPosition
;
ApiChart
.
prototype
[
"
SetHorAxisTickLabelPosition
"
]
=
ApiChart
.
prototype
.
SetHorAxisTickLabelPosition
;
ApiFill
.
prototype
[
"
GetClassType
"
]
=
ApiFill
.
prototype
.
GetClassType
;
ApiFill
.
prototype
[
"
GetClassType
"
]
=
ApiFill
.
prototype
.
GetClassType
;
...
...
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