-
Notifications
You must be signed in to change notification settings - Fork 65
/
excel.chartdatalabels.yml
367 lines (363 loc) · 14.6 KB
/
excel.chartdatalabels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
### YamlMime:TSType
name: Excel.ChartDataLabels
uid: 'excel!Excel.ChartDataLabels:class'
package: excel!
fullName: Excel.ChartDataLabels
summary: Represents a collection of all the data labels on a chart point.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
type: class
properties:
- name: autoText
uid: 'excel!Excel.ChartDataLabels#autoText:member'
package: excel!
fullName: autoText
summary: Specifies if data labels automatically generate appropriate text based on context.
remarks: '\[ [API set: ExcelApi 1.8](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'autoText: boolean;'
return:
type: boolean
- name: context
uid: 'excel!Excel.ChartDataLabels#context:member'
package: excel!
fullName: context
summary: >-
The request context associated with the object. This connects the add-in's process to the Office host
application's process.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'context: RequestContext;'
return:
type: '<xref uid="excel!Excel.RequestContext:class" />'
- name: format
uid: 'excel!Excel.ChartDataLabels#format:member'
package: excel!
fullName: format
summary: 'Specifies the format of chart data labels, which includes fill and font formatting.'
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'readonly format: Excel.ChartDataLabelFormat;'
return:
type: '<xref uid="excel!Excel.ChartDataLabelFormat:class" />'
- name: horizontalAlignment
uid: 'excel!Excel.ChartDataLabels#horizontalAlignment:member'
package: excel!
fullName: horizontalAlignment
summary: >-
Specifies the horizontal alignment for chart data label. See `Excel.ChartTextHorizontalAlignment` for details.
This property is valid only when the `TextOrientation` of data label is 0.
remarks: '\[ [API set: ExcelApi 1.8](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: >-
horizontalAlignment: Excel.ChartTextHorizontalAlignment | "Center" | "Left" | "Right" | "Justify" |
"Distributed";
return:
type: >-
<xref uid="excel!Excel.ChartTextHorizontalAlignment:enum" /> | "Center" | "Left" | "Right" | "Justify" |
"Distributed"
- name: linkNumberFormat
uid: 'excel!Excel.ChartDataLabels#linkNumberFormat:member'
package: excel!
fullName: linkNumberFormat
summary: >-
Specifies if the number format is linked to the cells. If `true`<!-- -->, the number format will change in the
labels when it changes in the cells.
remarks: '\[ [API set: ExcelApi 1.9](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'linkNumberFormat: boolean;'
return:
type: boolean
- name: numberFormat
uid: 'excel!Excel.ChartDataLabels#numberFormat:member'
package: excel!
fullName: numberFormat
summary: Specifies the format code for data labels.
remarks: '\[ [API set: ExcelApi 1.8](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'numberFormat: string;'
return:
type: string
- name: position
uid: 'excel!Excel.ChartDataLabels#position:member'
package: excel!
fullName: position
summary: Value that represents the position of the data label. See `Excel.ChartDataLabelPosition` for details.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: >-
position: Excel.ChartDataLabelPosition | "Invalid" | "None" | "Center" | "InsideEnd" | "InsideBase" |
"OutsideEnd" | "Left" | "Right" | "Top" | "Bottom" | "BestFit" | "Callout";
return:
type: >-
<xref uid="excel!Excel.ChartDataLabelPosition:enum" /> | "Invalid" | "None" | "Center" | "InsideEnd" |
"InsideBase" | "OutsideEnd" | "Left" | "Right" | "Top" | "Bottom" | "BestFit" | "Callout"
- name: separator
uid: 'excel!Excel.ChartDataLabels#separator:member'
package: excel!
fullName: separator
summary: String representing the separator used for the data labels on a chart.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'separator: string;'
return:
type: string
- name: showBubbleSize
uid: 'excel!Excel.ChartDataLabels#showBubbleSize:member'
package: excel!
fullName: showBubbleSize
summary: Specifies if the data label bubble size is visible.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'showBubbleSize: boolean;'
return:
type: boolean
- name: showCategoryName
uid: 'excel!Excel.ChartDataLabels#showCategoryName:member'
package: excel!
fullName: showCategoryName
summary: Specifies if the data label category name is visible.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'showCategoryName: boolean;'
return:
type: boolean
- name: showLegendKey
uid: 'excel!Excel.ChartDataLabels#showLegendKey:member'
package: excel!
fullName: showLegendKey
summary: Specifies if the data label legend key is visible.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'showLegendKey: boolean;'
return:
type: boolean
- name: showPercentage
uid: 'excel!Excel.ChartDataLabels#showPercentage:member'
package: excel!
fullName: showPercentage
summary: Specifies if the data label percentage is visible.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'showPercentage: boolean;'
return:
type: boolean
- name: showSeriesName
uid: 'excel!Excel.ChartDataLabels#showSeriesName:member'
package: excel!
fullName: showSeriesName
summary: Specifies if the data label series name is visible.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'showSeriesName: boolean;'
return:
type: boolean
- name: showValue
uid: 'excel!Excel.ChartDataLabels#showValue:member'
package: excel!
fullName: showValue
summary: Specifies if the data label value is visible.
remarks: '\[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'showValue: boolean;'
return:
type: boolean
- name: textOrientation
uid: 'excel!Excel.ChartDataLabels#textOrientation:member'
package: excel!
fullName: textOrientation
summary: >-
Represents the angle to which the text is oriented for data labels. The value should either be an integer from -90
to 90 or the integer 180 for vertically-oriented text.
remarks: '\[ [API set: ExcelApi 1.8](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'textOrientation: number;'
return:
type: number
- name: verticalAlignment
uid: 'excel!Excel.ChartDataLabels#verticalAlignment:member'
package: excel!
fullName: verticalAlignment
summary: >-
Represents the vertical alignment of chart data label. See `Excel.ChartTextVerticalAlignment` for details. This
property is valid only when `TextOrientation` of the data label is -90, 90, or 180.
remarks: '\[ [API set: ExcelApi 1.8](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
isPreview: false
isDeprecated: false
syntax:
content: 'verticalAlignment: Excel.ChartTextVerticalAlignment | "Center" | "Bottom" | "Top" | "Justify" | "Distributed";'
return:
type: >-
<xref uid="excel!Excel.ChartTextVerticalAlignment:enum" /> | "Center" | "Bottom" | "Top" | "Justify" |
"Distributed"
methods:
- name: load(options)
uid: 'excel!Excel.ChartDataLabels#load:member(1)'
package: excel!
fullName: load(options)
summary: >-
Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading
the properties.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'load(options?: Excel.Interfaces.ChartDataLabelsLoadOptions): Excel.ChartDataLabels;'
parameters:
- id: options
description: Provides options for which properties of the object to load.
type: '<xref uid="excel!Excel.Interfaces.ChartDataLabelsLoadOptions:interface" />'
return:
type: '<xref uid="excel!Excel.ChartDataLabels:class" />'
description: ''
- name: load(propertyNames)
uid: 'excel!Excel.ChartDataLabels#load:member(2)'
package: excel!
fullName: load(propertyNames)
summary: >-
Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading
the properties.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'load(propertyNames?: string | string[]): Excel.ChartDataLabels;'
parameters:
- id: propertyNames
description: A comma-delimited string or an array of strings that specify the properties to load.
type: 'string | string[]'
return:
type: '<xref uid="excel!Excel.ChartDataLabels:class" />'
description: |-
#### Examples
```TypeScript
// Show the series name in data labels and set the position of the data labels to "top".
await Excel.run(async (context) => {
const chart = context.workbook.worksheets.getItem("Sheet1").charts.getItem("Chart1");
chart.dataLabels.showValue = true;
chart.dataLabels.position = Excel.ChartDataLabelPosition.top;
chart.dataLabels.showSeriesName = true;
await context.sync();
console.log("Data labels shown");
});
```
- name: load(propertyNamesAndPaths)
uid: 'excel!Excel.ChartDataLabels#load:member(3)'
package: excel!
fullName: load(propertyNamesAndPaths)
summary: >-
Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading
the properties.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: |-
load(propertyNamesAndPaths?: {
select?: string;
expand?: string;
}): Excel.ChartDataLabels;
parameters:
- id: propertyNamesAndPaths
description: >-
`propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and
`propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
type: |-
{
select?: string;
expand?: string;
}
return:
type: '<xref uid="excel!Excel.ChartDataLabels:class" />'
description: ''
- name: 'set(properties, options)'
uid: 'excel!Excel.ChartDataLabels#set:member(1)'
package: excel!
fullName: 'set(properties, options)'
summary: >-
Sets multiple properties of an object at the same time. You can pass either a plain object with the appropriate
properties, or another API object of the same type.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'set(properties: Interfaces.ChartDataLabelsUpdateData, options?: OfficeExtension.UpdateOptions): void;'
parameters:
- id: properties
description: >-
A JavaScript object with properties that are structured isomorphically to the properties of the object on
which the method is called.
type: '<xref uid="excel!Excel.Interfaces.ChartDataLabelsUpdateData:interface" />'
- id: options
description: Provides an option to suppress errors if the properties object tries to set any read-only properties.
type: '<xref uid="office!OfficeExtension.UpdateOptions:interface" />'
return:
type: void
description: ''
- name: set(properties)
uid: 'excel!Excel.ChartDataLabels#set:member(2)'
package: excel!
fullName: set(properties)
summary: 'Sets multiple properties on the object at the same time, based on an existing loaded object.'
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'set(properties: Excel.ChartDataLabels): void;'
parameters:
- id: properties
description: ''
type: '<xref uid="excel!Excel.ChartDataLabels:class" />'
return:
type: void
description: ''
- name: toJSON()
uid: 'excel!Excel.ChartDataLabels#toJSON:member(1)'
package: excel!
fullName: toJSON()
summary: >-
Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to
`JSON.stringify()`<!-- -->. (`JSON.stringify`<!-- -->, in turn, calls the `toJSON` method of the object that is
passed to it.) Whereas the original `Excel.ChartDataLabels` object is an API object, the `toJSON` method returns a
plain JavaScript object (typed as `Excel.Interfaces.ChartDataLabelsData`<!-- -->) that contains shallow copies of
any loaded child properties from the original object.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'toJSON(): Excel.Interfaces.ChartDataLabelsData;'
return:
type: '<xref uid="excel!Excel.Interfaces.ChartDataLabelsData:interface" />'
description: ''
extends: '<xref uid="office!OfficeExtension.ClientObject:class" />'