xlsxrb 0.1.17 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +256 -1
- data/README.md +111 -28
- data/lib/ruby_lsp/xlsxrb/completion_listener.rb +439 -139
- data/lib/xlsxrb/chart_builder.rb +540 -193
- data/lib/xlsxrb/dsl_helpers.rb +178 -73
- data/lib/xlsxrb/elements/cell.rb +197 -130
- data/lib/xlsxrb/elements/column.rb +88 -7
- data/lib/xlsxrb/elements/coordinate_access.rb +86 -59
- data/lib/xlsxrb/elements/image.rb +18 -19
- data/lib/xlsxrb/elements/metadata.rb +2379 -0
- data/lib/xlsxrb/elements/row.rb +84 -118
- data/lib/xlsxrb/elements/styles.rb +140 -90
- data/lib/xlsxrb/elements/types.rb +164 -22
- data/lib/xlsxrb/elements/workbook.rb +122 -140
- data/lib/xlsxrb/elements/worksheet.rb +451 -226
- data/lib/xlsxrb/elements.rb +1 -0
- data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +16 -5
- data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +14 -9
- data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +296 -34
- data/lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb +17 -3
- data/lib/xlsxrb/ooxml/reader.rb +52 -50
- data/lib/xlsxrb/ooxml/styles_parser.rb +36 -5
- data/lib/xlsxrb/ooxml/utils.rb +2 -2
- data/lib/xlsxrb/ooxml/workbook_parser.rb +0 -1
- data/lib/xlsxrb/ooxml/workbook_writer.rb +242 -109
- data/lib/xlsxrb/ooxml/worksheet_parser.rb +63 -31
- data/lib/xlsxrb/ooxml/worksheet_writer.rb +119 -56
- data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +33 -13
- data/lib/xlsxrb/ooxml/writer/features_xml.rb +75 -15
- data/lib/xlsxrb/ooxml/writer/styles_xml.rb +18 -8
- data/lib/xlsxrb/ooxml/writer.rb +124 -44
- data/lib/xlsxrb/ooxml/xml_parser.rb +78 -5
- data/lib/xlsxrb/ooxml/zip_generator.rb +2 -0
- data/lib/xlsxrb/ooxml/zip_reader.rb +112 -25
- data/lib/xlsxrb/ooxml/zip_writer.rb +119 -30
- data/lib/xlsxrb/stream_row.rb +56 -81
- data/lib/xlsxrb/stream_sheet.rb +542 -273
- data/lib/xlsxrb/stream_writer.rb +1536 -870
- data/lib/xlsxrb/style_builder.rb +667 -221
- data/lib/xlsxrb/version.rb +1 -1
- data/lib/xlsxrb/workbook_builder.rb +406 -143
- data/lib/xlsxrb/worksheet_builder.rb +1009 -900
- data/lib/xlsxrb.rb +1179 -1056
- data/sig/generated/xlsxrb/chart_builder.rbs +385 -159
- data/sig/generated/xlsxrb/dsl_helpers.rbs +81 -15
- data/sig/generated/xlsxrb/elements/cell.rbs +78 -70
- data/sig/generated/xlsxrb/elements/column.rbs +55 -3
- data/sig/generated/xlsxrb/elements/coordinate_access.rbs +35 -29
- data/sig/generated/xlsxrb/elements/image.rbs +7 -11
- data/sig/generated/xlsxrb/elements/metadata.rbs +1574 -0
- data/sig/generated/xlsxrb/elements/row.rbs +39 -42
- data/sig/generated/xlsxrb/elements/styles.rbs +66 -66
- data/sig/generated/xlsxrb/elements/types.rbs +27 -0
- data/sig/generated/xlsxrb/elements/workbook.rbs +46 -99
- data/sig/generated/xlsxrb/elements/worksheet.rbs +121 -96
- data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +61 -4
- data/sig/generated/xlsxrb/ooxml/reader.rbs +2 -2
- data/sig/generated/xlsxrb/ooxml/styles_parser.rbs +1 -1
- data/sig/generated/xlsxrb/ooxml/utils.rbs +3 -3
- data/sig/generated/xlsxrb/ooxml/workbook_writer.rbs +13 -1
- data/sig/generated/xlsxrb/ooxml/worksheet_parser.rbs +16 -0
- data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +6 -4
- data/sig/generated/xlsxrb/ooxml/writer/features_xml.rbs +7 -0
- data/sig/generated/xlsxrb/ooxml/writer.rbs +22 -13
- data/sig/generated/xlsxrb/ooxml/xml_parser.rbs +70 -0
- data/sig/generated/xlsxrb/ooxml/zip_generator.rbs +2 -0
- data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +24 -9
- data/sig/generated/xlsxrb/ooxml/zip_writer.rbs +26 -1
- data/sig/generated/xlsxrb/stream_row.rbs +32 -33
- data/sig/generated/xlsxrb/stream_sheet.rbs +233 -181
- data/sig/generated/xlsxrb/stream_writer.rbs +961 -667
- data/sig/generated/xlsxrb/style_builder.rbs +402 -128
- data/sig/generated/xlsxrb/workbook_builder.rbs +223 -71
- data/sig/generated/xlsxrb/worksheet_builder.rbs +579 -453
- data/sig/generated/xlsxrb.rbs +205 -144
- data/sig/rexml.rbs +8 -0
- metadata +5 -5
- data/lib/xlsxrb/utils.rb +0 -291
- data/sig/generated/xlsxrb/utils.rbs +0 -184
|
@@ -5,12 +5,12 @@ module Xlsxrb
|
|
|
5
5
|
#
|
|
6
6
|
# @example Create a chart definition
|
|
7
7
|
# builder = ChartBuilder.new
|
|
8
|
-
# builder.type
|
|
9
|
-
# builder.title
|
|
8
|
+
# builder.type = :bar
|
|
9
|
+
# builder.title = "Quarterly Sales"
|
|
10
10
|
# builder.series do |s|
|
|
11
|
-
# s.name
|
|
12
|
-
# s.categories
|
|
13
|
-
# s.values
|
|
11
|
+
# s.name = "2026"
|
|
12
|
+
# s.categories = "Sheet1!$A$2:$A$5"
|
|
13
|
+
# s.values = "Sheet1!$B$2:$B$5"
|
|
14
14
|
# end
|
|
15
15
|
#
|
|
16
16
|
# @api public
|
|
@@ -23,148 +23,285 @@ module Xlsxrb
|
|
|
23
23
|
# : Hash[Symbol, untyped]
|
|
24
24
|
attr_reader options: untyped
|
|
25
25
|
|
|
26
|
-
#
|
|
26
|
+
# Gets the chart type (e.g. :line, :bar, :pie, :area, :radar, :scatter).
|
|
27
27
|
#
|
|
28
|
-
# @
|
|
29
|
-
# @return [Symbol, String]
|
|
28
|
+
# @return [Symbol, String, nil]
|
|
30
29
|
# @api public
|
|
31
|
-
# : (
|
|
32
|
-
def type: (
|
|
30
|
+
# : () -> (Symbol | String | nil)
|
|
31
|
+
def type: () -> (Symbol | String | nil)
|
|
32
|
+
|
|
33
|
+
# Sets the chart type.
|
|
34
|
+
#
|
|
35
|
+
# @param value [Symbol, String, nil]
|
|
36
|
+
# @return [Symbol, String, nil]
|
|
37
|
+
# @api public
|
|
38
|
+
# : (Symbol | String | nil value) -> (Symbol | String | nil)
|
|
39
|
+
def type=: (Symbol | String | nil value) -> (Symbol | String | nil)
|
|
40
|
+
|
|
41
|
+
# Gets or configures the chart title.
|
|
42
|
+
#
|
|
43
|
+
# @overload title
|
|
44
|
+
# Returns the configured title options or text.
|
|
45
|
+
# @return [String, Hash{Symbol => Object}, nil]
|
|
46
|
+
# @overload title(**kwargs)
|
|
47
|
+
# Configures title using keyword arguments.
|
|
48
|
+
# @return [void]
|
|
49
|
+
# @api public
|
|
50
|
+
# : (**untyped kwargs) -> (String | Hash[Symbol, untyped] | nil)
|
|
51
|
+
def title: (**untyped kwargs) -> (String | Hash[Symbol, untyped] | nil)
|
|
33
52
|
|
|
34
53
|
# Sets the chart title.
|
|
35
54
|
#
|
|
36
|
-
# @param value [String, Hash, nil]
|
|
37
|
-
# @return [String, Hash, nil]
|
|
55
|
+
# @param value [String, Hash{Symbol => Object}, nil]
|
|
56
|
+
# @return [String, Hash{Symbol => Object}, nil]
|
|
38
57
|
# @api public
|
|
39
58
|
# : (String | Hash[Symbol, untyped] | nil value) -> (String | Hash[Symbol, untyped] | nil)
|
|
40
|
-
def title
|
|
59
|
+
def title=: (String | Hash[Symbol, untyped] | nil value) -> (String | Hash[Symbol, untyped] | nil)
|
|
41
60
|
|
|
42
|
-
# Adds a data series to the chart.
|
|
61
|
+
# Adds a data series to the chart or returns the configured series list.
|
|
43
62
|
#
|
|
44
|
-
# @overload series
|
|
45
|
-
#
|
|
46
|
-
# @param value [Hash{Symbol => Object}] Series options hash.
|
|
63
|
+
# @overload series
|
|
64
|
+
# Returns the configured series options list.
|
|
47
65
|
# @return [Array<Hash{Symbol => Object}>]
|
|
48
|
-
#
|
|
66
|
+
# @overload series(**kwargs)
|
|
67
|
+
# Adds a series configured via keyword arguments.
|
|
68
|
+
# @return [void]
|
|
49
69
|
# @overload series(&block)
|
|
50
70
|
# Configures a series using a block.
|
|
51
71
|
# @yield [series_builder]
|
|
52
72
|
# @yieldparam series_builder [SeriesBuilder]
|
|
53
|
-
# @return [
|
|
73
|
+
# @return [void]
|
|
74
|
+
# @api public
|
|
75
|
+
# : (**untyped kwargs) ?{ (SeriesBuilder) -> void } -> (Array[Hash[Symbol, untyped]] | nil)
|
|
76
|
+
def series: (**untyped kwargs) ?{ (SeriesBuilder) -> void } -> (Array[Hash[Symbol, untyped]] | nil)
|
|
77
|
+
|
|
78
|
+
# Sets series array.
|
|
54
79
|
#
|
|
80
|
+
# @param value [Array<Hash{Symbol => Object}>, Hash{Symbol => Object}]
|
|
81
|
+
# @return [Array<Hash{Symbol => Object}>]
|
|
55
82
|
# @api public
|
|
56
|
-
# : (
|
|
57
|
-
def series
|
|
83
|
+
# : (Array[Hash[Symbol, untyped]] | Hash[Symbol, untyped] value) -> (Array[Hash[Symbol, untyped]] | Hash[Symbol, untyped])
|
|
84
|
+
def series=: (Array[Hash[Symbol, untyped]] | Hash[Symbol, untyped] value) -> (Array[Hash[Symbol, untyped]] | Hash[Symbol, untyped])
|
|
58
85
|
|
|
59
|
-
#
|
|
86
|
+
# Gets or configures the legend property for this chart.
|
|
60
87
|
#
|
|
61
|
-
# @
|
|
62
|
-
#
|
|
63
|
-
#
|
|
88
|
+
# @overload legend
|
|
89
|
+
# Returns the configured legend property.
|
|
90
|
+
# @return [Object]
|
|
91
|
+
# @overload legend(**kwargs)
|
|
92
|
+
# Configures legend using keyword arguments.
|
|
93
|
+
# @return [void]
|
|
64
94
|
# @api public
|
|
65
|
-
# : (
|
|
66
|
-
def legend: (
|
|
95
|
+
# : (**untyped kwargs) -> untyped
|
|
96
|
+
def legend: (**untyped kwargs) -> untyped
|
|
67
97
|
|
|
68
|
-
#
|
|
98
|
+
# Sets the legend property.
|
|
69
99
|
#
|
|
70
|
-
# @param
|
|
71
|
-
# @
|
|
72
|
-
# @return [Object] The configured plot_area property.
|
|
100
|
+
# @param value [Object]
|
|
101
|
+
# @return [Object]
|
|
73
102
|
# @api public
|
|
74
|
-
# : (
|
|
75
|
-
def
|
|
103
|
+
# : (untyped value) -> untyped
|
|
104
|
+
def legend=: (untyped value) -> untyped
|
|
76
105
|
|
|
77
|
-
#
|
|
106
|
+
# Gets or configures the plot_area property for this chart.
|
|
78
107
|
#
|
|
79
|
-
# @
|
|
80
|
-
#
|
|
81
|
-
#
|
|
108
|
+
# @overload plot_area
|
|
109
|
+
# Returns the configured plot_area property.
|
|
110
|
+
# @return [Object]
|
|
111
|
+
# @overload plot_area(**kwargs)
|
|
112
|
+
# Configures plot_area using keyword arguments.
|
|
113
|
+
# @return [void]
|
|
82
114
|
# @api public
|
|
83
|
-
# : (
|
|
84
|
-
def
|
|
115
|
+
# : (**untyped kwargs) -> untyped
|
|
116
|
+
def plot_area: (**untyped kwargs) -> untyped
|
|
85
117
|
|
|
86
|
-
#
|
|
118
|
+
# Sets the plot_area property.
|
|
87
119
|
#
|
|
88
|
-
# @param
|
|
89
|
-
# @
|
|
90
|
-
# @return [Object] The configured style property.
|
|
120
|
+
# @param value [Object]
|
|
121
|
+
# @return [Object]
|
|
91
122
|
# @api public
|
|
92
|
-
# : (
|
|
93
|
-
def
|
|
123
|
+
# : (untyped value) -> untyped
|
|
124
|
+
def plot_area=: (untyped value) -> untyped
|
|
94
125
|
|
|
95
|
-
#
|
|
126
|
+
# Gets or configures the chart_space property for this chart.
|
|
96
127
|
#
|
|
97
|
-
# @
|
|
98
|
-
#
|
|
99
|
-
#
|
|
128
|
+
# @overload chart_space
|
|
129
|
+
# Returns the configured chart_space property.
|
|
130
|
+
# @return [Object]
|
|
131
|
+
# @overload chart_space(**kwargs)
|
|
132
|
+
# Configures chart_space using keyword arguments.
|
|
133
|
+
# @return [void]
|
|
100
134
|
# @api public
|
|
101
|
-
# : (
|
|
102
|
-
def
|
|
135
|
+
# : (**untyped kwargs) -> untyped
|
|
136
|
+
def chart_space: (**untyped kwargs) -> untyped
|
|
103
137
|
|
|
104
|
-
#
|
|
138
|
+
# Sets the chart_space property.
|
|
105
139
|
#
|
|
106
|
-
# @param
|
|
107
|
-
# @
|
|
108
|
-
# @return [Boolean, String]
|
|
140
|
+
# @param value [Object]
|
|
141
|
+
# @return [Object]
|
|
109
142
|
# @api public
|
|
110
|
-
# : (
|
|
111
|
-
def
|
|
143
|
+
# : (untyped value) -> untyped
|
|
144
|
+
def chart_space=: (untyped value) -> untyped
|
|
112
145
|
|
|
113
|
-
#
|
|
146
|
+
# Gets the style index/id for this chart.
|
|
114
147
|
#
|
|
115
|
-
# @
|
|
116
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
117
|
-
# @return [String]
|
|
148
|
+
# @return [Integer, String, Hash, nil] The configured style property.
|
|
118
149
|
# @api public
|
|
119
|
-
# : (
|
|
120
|
-
def
|
|
150
|
+
# : () -> untyped
|
|
151
|
+
def style: () -> untyped
|
|
121
152
|
|
|
122
|
-
#
|
|
153
|
+
# Sets the style property.
|
|
123
154
|
#
|
|
124
|
-
# @param
|
|
125
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
155
|
+
# @param value [Object]
|
|
126
156
|
# @return [Object]
|
|
127
157
|
# @api public
|
|
128
|
-
# : (
|
|
129
|
-
def
|
|
158
|
+
# : (untyped value) -> untyped
|
|
159
|
+
def style=: (untyped value) -> untyped
|
|
160
|
+
|
|
161
|
+
# Gets or configures data labels for this chart.
|
|
162
|
+
#
|
|
163
|
+
# @overload data_labels
|
|
164
|
+
# Returns the configured data_labels property.
|
|
165
|
+
# @return [Object]
|
|
166
|
+
# @overload data_labels(**kwargs)
|
|
167
|
+
# Configures data_labels using keyword arguments.
|
|
168
|
+
# @return [void]
|
|
169
|
+
# @api public
|
|
170
|
+
# : (**untyped kwargs) -> untyped
|
|
171
|
+
def data_labels: (**untyped kwargs) -> untyped
|
|
130
172
|
|
|
131
|
-
#
|
|
173
|
+
# Sets data labels.
|
|
132
174
|
#
|
|
133
|
-
# @param
|
|
134
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
175
|
+
# @param value [Object]
|
|
135
176
|
# @return [Object]
|
|
136
177
|
# @api public
|
|
137
|
-
# : (
|
|
138
|
-
def
|
|
178
|
+
# : (untyped value) -> untyped
|
|
179
|
+
def data_labels=: (untyped value) -> untyped
|
|
180
|
+
|
|
181
|
+
# Returns whether to plot visible cells only.
|
|
182
|
+
#
|
|
183
|
+
# @return [Boolean]
|
|
184
|
+
# @api public
|
|
185
|
+
# : () -> bool
|
|
186
|
+
def plot_visible_only?: () -> bool
|
|
187
|
+
|
|
188
|
+
# Sets whether to plot visible cells only.
|
|
189
|
+
#
|
|
190
|
+
# @param value [Boolean, nil]
|
|
191
|
+
# @return [Boolean, nil]
|
|
192
|
+
# @api public
|
|
193
|
+
# : (bool? value) -> bool?
|
|
194
|
+
def plot_visible_only=: (bool? value) -> bool?
|
|
195
|
+
|
|
196
|
+
# Gets how blank cells are displayed in the chart.
|
|
197
|
+
#
|
|
198
|
+
# @return [String, nil]
|
|
199
|
+
# @api public
|
|
200
|
+
# : () -> String?
|
|
201
|
+
def display_blanks_as: () -> String?
|
|
202
|
+
|
|
203
|
+
# Sets display blanks as mode.
|
|
204
|
+
#
|
|
205
|
+
# @param value [String, nil]
|
|
206
|
+
# @return [String, nil]
|
|
207
|
+
# @api public
|
|
208
|
+
# : (String? value) -> String?
|
|
209
|
+
def display_blanks_as=: (String? value) -> String?
|
|
210
|
+
|
|
211
|
+
# Gets or configures 3D view properties for 3D charts.
|
|
212
|
+
#
|
|
213
|
+
# @overload view3d
|
|
214
|
+
# Returns the configured view3d property.
|
|
215
|
+
# @return [Object]
|
|
216
|
+
# @overload view3d(**kwargs)
|
|
217
|
+
# Configures view3d using keyword arguments.
|
|
218
|
+
# @return [void]
|
|
219
|
+
# @api public
|
|
220
|
+
# : (**untyped kwargs) -> untyped
|
|
221
|
+
def view3d: (**untyped kwargs) -> untyped
|
|
222
|
+
|
|
223
|
+
# Sets 3D view properties.
|
|
224
|
+
#
|
|
225
|
+
# @param value [Object]
|
|
226
|
+
# @return [Object]
|
|
227
|
+
# @api public
|
|
228
|
+
# : (untyped value) -> untyped
|
|
229
|
+
def view3d=: (untyped value) -> untyped
|
|
230
|
+
|
|
231
|
+
# Gets or configures the category axis properties for this chart.
|
|
232
|
+
#
|
|
233
|
+
# @overload category_axis
|
|
234
|
+
# Returns the configured category axis property.
|
|
235
|
+
# @return [Object]
|
|
236
|
+
# @overload category_axis(**kwargs)
|
|
237
|
+
# Configures category axis using keyword arguments.
|
|
238
|
+
# @return [void]
|
|
239
|
+
# @api public
|
|
240
|
+
# : (**untyped kwargs) -> untyped
|
|
241
|
+
def category_axis: (**untyped kwargs) -> untyped
|
|
242
|
+
|
|
243
|
+
# Sets category axis properties.
|
|
244
|
+
#
|
|
245
|
+
# @param value [Object]
|
|
246
|
+
# @return [Object]
|
|
247
|
+
# @api public
|
|
248
|
+
# : (untyped value) -> untyped
|
|
249
|
+
def category_axis=: (untyped value) -> untyped
|
|
250
|
+
|
|
251
|
+
# Gets or configures the value axis properties for this chart.
|
|
252
|
+
#
|
|
253
|
+
# @overload value_axis
|
|
254
|
+
# Returns the configured value axis property.
|
|
255
|
+
# @return [Object]
|
|
256
|
+
# @overload value_axis(**kwargs)
|
|
257
|
+
# Configures value axis using keyword arguments.
|
|
258
|
+
# @return [void]
|
|
259
|
+
# @api public
|
|
260
|
+
# : (**untyped kwargs) -> untyped
|
|
261
|
+
def value_axis: (**untyped kwargs) -> untyped
|
|
139
262
|
|
|
140
|
-
#
|
|
263
|
+
# Sets value axis properties.
|
|
141
264
|
#
|
|
142
|
-
# @param
|
|
143
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
265
|
+
# @param value [Object]
|
|
144
266
|
# @return [Object]
|
|
145
267
|
# @api public
|
|
146
|
-
# : (
|
|
147
|
-
def value_axis
|
|
268
|
+
# : (untyped value) -> untyped
|
|
269
|
+
def value_axis=: (untyped value) -> untyped
|
|
270
|
+
|
|
271
|
+
# Gets or configures the secondary value axis properties for combo charts.
|
|
272
|
+
#
|
|
273
|
+
# @overload secondary_value_axis
|
|
274
|
+
# Returns the configured secondary value axis property.
|
|
275
|
+
# @return [Object]
|
|
276
|
+
# @overload secondary_value_axis(**kwargs)
|
|
277
|
+
# Configures secondary value axis using keyword arguments.
|
|
278
|
+
# @return [void]
|
|
279
|
+
# @api public
|
|
280
|
+
# : (**untyped kwargs) -> untyped
|
|
281
|
+
def secondary_value_axis: (**untyped kwargs) -> untyped
|
|
148
282
|
|
|
149
|
-
#
|
|
283
|
+
# Sets secondary value axis properties.
|
|
150
284
|
#
|
|
151
|
-
# @param
|
|
152
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
285
|
+
# @param value [Object]
|
|
153
286
|
# @return [Object]
|
|
154
287
|
# @api public
|
|
155
|
-
# : (
|
|
156
|
-
def secondary_value_axis
|
|
288
|
+
# : (untyped value) -> untyped
|
|
289
|
+
def secondary_value_axis=: (untyped value) -> untyped
|
|
157
290
|
|
|
158
|
-
|
|
291
|
+
# Returns whether to show the legend key in data labels.
|
|
292
|
+
#
|
|
293
|
+
# @return [Boolean]
|
|
294
|
+
# @api public
|
|
295
|
+
# : () -> bool
|
|
296
|
+
def show_legend_key?: () -> bool
|
|
159
297
|
|
|
160
|
-
#
|
|
298
|
+
# Sets whether to show the legend key in data labels.
|
|
161
299
|
#
|
|
162
|
-
# @param
|
|
163
|
-
# @
|
|
164
|
-
# @return [Boolean, String]
|
|
300
|
+
# @param value [Boolean, nil]
|
|
301
|
+
# @return [Boolean, nil]
|
|
165
302
|
# @api public
|
|
166
|
-
# : (
|
|
167
|
-
def show_legend_key
|
|
303
|
+
# : (bool? value) -> bool?
|
|
304
|
+
def show_legend_key=: (bool? value) -> bool?
|
|
168
305
|
|
|
169
306
|
# Builder for a single series entry in block-style chart definitions.
|
|
170
307
|
#
|
|
@@ -177,121 +314,210 @@ module Xlsxrb
|
|
|
177
314
|
# : Hash[Symbol, untyped]
|
|
178
315
|
attr_reader options: untyped
|
|
179
316
|
|
|
180
|
-
#
|
|
317
|
+
# Gets categories reference for this series (e.g. "Sheet1!$A$2:$A$10").
|
|
318
|
+
#
|
|
319
|
+
# @return [Object]
|
|
320
|
+
# @api public
|
|
321
|
+
# : () -> untyped
|
|
322
|
+
def categories: () -> untyped
|
|
323
|
+
|
|
324
|
+
# Sets categories reference for this series.
|
|
181
325
|
#
|
|
182
|
-
# @param
|
|
183
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
326
|
+
# @param value [Object]
|
|
184
327
|
# @return [Object]
|
|
185
328
|
# @api public
|
|
186
|
-
# : (
|
|
187
|
-
def categories
|
|
329
|
+
# : (untyped value) -> untyped
|
|
330
|
+
def categories=: (untyped value) -> untyped
|
|
188
331
|
|
|
189
|
-
#
|
|
332
|
+
# Gets values reference for this series (e.g. "Sheet1!$B$2:$B$10").
|
|
190
333
|
#
|
|
191
|
-
# @param args [Array] Positional arguments.
|
|
192
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
193
334
|
# @return [Object]
|
|
194
335
|
# @api public
|
|
195
|
-
# : (
|
|
196
|
-
def values: (
|
|
336
|
+
# : () -> untyped
|
|
337
|
+
def values: () -> untyped
|
|
197
338
|
|
|
198
|
-
#
|
|
339
|
+
# Sets values reference for this series.
|
|
199
340
|
#
|
|
200
|
-
# @param
|
|
201
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
341
|
+
# @param value [Object]
|
|
202
342
|
# @return [Object]
|
|
203
343
|
# @api public
|
|
204
|
-
# : (
|
|
205
|
-
def
|
|
344
|
+
# : (untyped value) -> untyped
|
|
345
|
+
def values=: (untyped value) -> untyped
|
|
206
346
|
|
|
207
|
-
#
|
|
347
|
+
# Gets the name for this series (e.g. "Total Sales" or cell reference "Sheet1!$B$1").
|
|
208
348
|
#
|
|
209
|
-
# @param args [Array] Positional arguments.
|
|
210
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
211
349
|
# @return [Object]
|
|
212
350
|
# @api public
|
|
213
|
-
# : (
|
|
214
|
-
def
|
|
351
|
+
# : () -> untyped
|
|
352
|
+
def name: () -> untyped
|
|
215
353
|
|
|
216
|
-
#
|
|
354
|
+
# Sets name for this series.
|
|
217
355
|
#
|
|
218
|
-
# @param
|
|
219
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
356
|
+
# @param value [Object]
|
|
220
357
|
# @return [Object]
|
|
221
358
|
# @api public
|
|
222
|
-
# : (
|
|
223
|
-
def
|
|
359
|
+
# : (untyped value) -> untyped
|
|
360
|
+
def name=: (untyped value) -> untyped
|
|
224
361
|
|
|
225
|
-
#
|
|
362
|
+
# Gets or configures data markers for this series.
|
|
226
363
|
#
|
|
227
|
-
# @
|
|
228
|
-
#
|
|
364
|
+
# @overload marker
|
|
365
|
+
# Returns the configured marker property.
|
|
366
|
+
# @return [Object]
|
|
367
|
+
# @overload marker(**kwargs)
|
|
368
|
+
# Configures marker using keyword arguments.
|
|
369
|
+
# @return [void]
|
|
370
|
+
# @api public
|
|
371
|
+
# : (**untyped kwargs) -> untyped
|
|
372
|
+
def marker: (**untyped kwargs) -> untyped
|
|
373
|
+
|
|
374
|
+
# Sets marker for this series.
|
|
375
|
+
#
|
|
376
|
+
# @param value [Object]
|
|
229
377
|
# @return [Object]
|
|
230
378
|
# @api public
|
|
231
|
-
# : (
|
|
232
|
-
def
|
|
379
|
+
# : (untyped value) -> untyped
|
|
380
|
+
def marker=: (untyped value) -> untyped
|
|
381
|
+
|
|
382
|
+
# Gets or configures fill color/pattern for this series.
|
|
383
|
+
#
|
|
384
|
+
# @overload fill
|
|
385
|
+
# Returns the configured fill property.
|
|
386
|
+
# @return [Object]
|
|
387
|
+
# @overload fill(**kwargs)
|
|
388
|
+
# Configures fill using keyword arguments.
|
|
389
|
+
# @return [void]
|
|
390
|
+
# @api public
|
|
391
|
+
# : (**untyped kwargs) -> untyped
|
|
392
|
+
def fill: (**untyped kwargs) -> untyped
|
|
233
393
|
|
|
234
|
-
#
|
|
394
|
+
# Sets fill for this series.
|
|
235
395
|
#
|
|
236
|
-
# @param
|
|
237
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
396
|
+
# @param value [Object]
|
|
238
397
|
# @return [Object]
|
|
239
398
|
# @api public
|
|
240
|
-
# : (
|
|
241
|
-
def
|
|
399
|
+
# : (untyped value) -> untyped
|
|
400
|
+
def fill=: (untyped value) -> untyped
|
|
242
401
|
|
|
243
|
-
#
|
|
402
|
+
# Gets or configures line color/thickness for this series.
|
|
244
403
|
#
|
|
245
|
-
# @
|
|
246
|
-
#
|
|
404
|
+
# @overload line
|
|
405
|
+
# Returns the configured line property.
|
|
406
|
+
# @return [Object]
|
|
407
|
+
# @overload line(**kwargs)
|
|
408
|
+
# Configures line using keyword arguments.
|
|
409
|
+
# @return [void]
|
|
410
|
+
# @api public
|
|
411
|
+
# : (**untyped kwargs) -> untyped
|
|
412
|
+
def line: (**untyped kwargs) -> untyped
|
|
413
|
+
|
|
414
|
+
# Sets line for this series.
|
|
415
|
+
#
|
|
416
|
+
# @param value [Object]
|
|
247
417
|
# @return [Object]
|
|
248
418
|
# @api public
|
|
249
|
-
# : (
|
|
250
|
-
def
|
|
419
|
+
# : (untyped value) -> untyped
|
|
420
|
+
def line=: (untyped value) -> untyped
|
|
421
|
+
|
|
422
|
+
# Gets or configures trendline for this series.
|
|
423
|
+
#
|
|
424
|
+
# @overload trendline
|
|
425
|
+
# Returns the configured trendline property.
|
|
426
|
+
# @return [Object]
|
|
427
|
+
# @overload trendline(**kwargs)
|
|
428
|
+
# Configures trendline using keyword arguments.
|
|
429
|
+
# @return [void]
|
|
430
|
+
# @api public
|
|
431
|
+
# : (**untyped kwargs) -> untyped
|
|
432
|
+
def trendline: (**untyped kwargs) -> untyped
|
|
433
|
+
|
|
434
|
+
# Sets trendline for this series.
|
|
435
|
+
#
|
|
436
|
+
# @param value [Object]
|
|
437
|
+
# @return [Object]
|
|
438
|
+
# @api public
|
|
439
|
+
# : (untyped value) -> untyped
|
|
440
|
+
def trendline=: (untyped value) -> untyped
|
|
441
|
+
|
|
442
|
+
# Gets or configures data labels for this series.
|
|
443
|
+
#
|
|
444
|
+
# @overload data_labels
|
|
445
|
+
# Returns the configured data_labels property.
|
|
446
|
+
# @return [Object]
|
|
447
|
+
# @overload data_labels(**kwargs)
|
|
448
|
+
# Configures data_labels using keyword arguments.
|
|
449
|
+
# @return [void]
|
|
450
|
+
# @api public
|
|
451
|
+
# : (**untyped kwargs) -> untyped
|
|
452
|
+
def data_labels: (**untyped kwargs) -> untyped
|
|
453
|
+
|
|
454
|
+
# Sets data labels for this series.
|
|
455
|
+
#
|
|
456
|
+
# @param value [Object]
|
|
457
|
+
# @return [Object]
|
|
458
|
+
# @api public
|
|
459
|
+
# : (untyped value) -> untyped
|
|
460
|
+
def data_labels=: (untyped value) -> untyped
|
|
461
|
+
|
|
462
|
+
# Returns line smoothing for this series.
|
|
463
|
+
#
|
|
464
|
+
# @return [Boolean]
|
|
465
|
+
# @api public
|
|
466
|
+
# : () -> bool
|
|
467
|
+
def smooth?: () -> bool
|
|
468
|
+
|
|
469
|
+
# Sets line smoothing for this series.
|
|
470
|
+
#
|
|
471
|
+
# @param value [Boolean, nil]
|
|
472
|
+
# @return [Boolean, nil]
|
|
473
|
+
# @api public
|
|
474
|
+
# : (bool? value) -> bool?
|
|
475
|
+
def smooth=: (bool? value) -> bool?
|
|
476
|
+
|
|
477
|
+
# Gets 3D bar/column shape (e.g. "cylinder", "cone", "pyramid").
|
|
478
|
+
#
|
|
479
|
+
# @return [String, nil]
|
|
480
|
+
# @api public
|
|
481
|
+
# : () -> String?
|
|
482
|
+
def shape: () -> String?
|
|
251
483
|
|
|
252
|
-
#
|
|
484
|
+
# Sets 3D bar/column shape for this series.
|
|
253
485
|
#
|
|
254
|
-
# @param
|
|
255
|
-
# @
|
|
256
|
-
# @return [Boolean, String]
|
|
486
|
+
# @param value [String, nil]
|
|
487
|
+
# @return [String, nil]
|
|
257
488
|
# @api public
|
|
258
|
-
# : (
|
|
259
|
-
def
|
|
489
|
+
# : (String? value) -> String?
|
|
490
|
+
def shape=: (String? value) -> String?
|
|
260
491
|
|
|
261
|
-
#
|
|
492
|
+
# Gets individual series chart type override in combo charts.
|
|
262
493
|
#
|
|
263
|
-
# @
|
|
264
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
265
|
-
# @return [String]
|
|
494
|
+
# @return [Symbol, String, nil]
|
|
266
495
|
# @api public
|
|
267
|
-
# : (
|
|
268
|
-
def
|
|
496
|
+
# : () -> (Symbol | String | nil)
|
|
497
|
+
def type: () -> (Symbol | String | nil)
|
|
269
498
|
|
|
270
|
-
#
|
|
499
|
+
# Sets individual series chart type override.
|
|
271
500
|
#
|
|
272
|
-
# @param
|
|
273
|
-
# @
|
|
274
|
-
# @return [Symbol, String, Hash, nil]
|
|
501
|
+
# @param value [Symbol, String, nil]
|
|
502
|
+
# @return [Symbol, String, nil]
|
|
275
503
|
# @api public
|
|
276
|
-
# : (
|
|
277
|
-
def type
|
|
504
|
+
# : (Symbol | String | nil value) -> (Symbol | String | nil)
|
|
505
|
+
def type=: (Symbol | String | nil value) -> (Symbol | String | nil)
|
|
278
506
|
|
|
279
|
-
#
|
|
507
|
+
# Gets the axis (:primary or :secondary) for this series.
|
|
280
508
|
#
|
|
281
|
-
# @
|
|
282
|
-
# @param kwargs [Hash] Keyword arguments.
|
|
283
|
-
# @return [Boolean, Hash]
|
|
509
|
+
# @return [Symbol, String, nil]
|
|
284
510
|
# @api public
|
|
285
|
-
# : (
|
|
286
|
-
def
|
|
511
|
+
# : () -> (Symbol | String | nil)
|
|
512
|
+
def axis: () -> (Symbol | String | nil)
|
|
287
513
|
|
|
288
|
-
#
|
|
514
|
+
# Sets the axis for this series.
|
|
289
515
|
#
|
|
290
|
-
# @param value [Symbol, String]
|
|
291
|
-
# @return [Symbol, String]
|
|
516
|
+
# @param value [Symbol, String, nil]
|
|
517
|
+
# @return [Symbol, String, nil]
|
|
292
518
|
# @api public
|
|
293
|
-
# : (Symbol | String value) -> (Symbol | String)
|
|
294
|
-
def axis
|
|
519
|
+
# : (Symbol | String | nil value) -> (Symbol | String | nil)
|
|
520
|
+
def axis=: (Symbol | String | nil value) -> (Symbol | String | nil)
|
|
295
521
|
end
|
|
296
522
|
end
|
|
297
523
|
end
|