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