Class: Xlsxrb::ChartBuilder::SeriesBuilder
- Inherits:
-
Object
- Object
- Xlsxrb::ChartBuilder::SeriesBuilder
- Defined in:
- lib/xlsxrb.rb,
sig/generated/xlsxrb.rbs
Overview
Builder for a single series entry in block-style chart definitions.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
: Hash[Symbol, untyped].
Instance Method Summary collapse
-
#categories(*args, **kwargs) ⇒ Object
Configures the categories property for this series.
-
#data_labels(*args, **kwargs) ⇒ Object
Configures the data_labels property for this series.
-
#fill(*args, **kwargs) ⇒ Object
Configures the fill property for this series.
-
#initialize ⇒ SeriesBuilder
constructor
: () -> void.
-
#line(*args, **kwargs) ⇒ Object
Configures the line property for this series.
-
#marker(*args, **kwargs) ⇒ Object
Configures the marker property for this series.
-
#name(*args, **kwargs) ⇒ Object
Configures the name property for this series.
-
#shape(*args, **kwargs) ⇒ Object
Configures the shape property for this series.
-
#smooth(*args, **kwargs) ⇒ Object
Configures the smooth property for this series.
-
#trendline(*args, **kwargs) ⇒ Object
Configures the trendline property for this series.
-
#type(*args, **kwargs) ⇒ Object
Configures the type property for this series.
-
#values(*args, **kwargs) ⇒ Object
Configures the values property for this series.
Constructor Details
#initialize ⇒ SeriesBuilder
: () -> void
220 221 222 |
# File 'lib/xlsxrb.rb', line 220 def initialize @options = {} end |
Instance Attribute Details
#options ⇒ Object (readonly)
: Hash[Symbol, untyped]
224 225 226 |
# File 'lib/xlsxrb.rb', line 224 def @options end |
Instance Method Details
#categories(*args, **kwargs) ⇒ Object
Configures the categories property for this series. : (*untyped args, **untyped kwargs) -> untyped
232 233 234 |
# File 'lib/xlsxrb.rb', line 232 def categories(*args, **kwargs) @options[:categories] = kwargs.empty? ? args.first : kwargs end |
#data_labels(*args, **kwargs) ⇒ Object
Configures the data_labels property for this series. : (*(Hash[Symbol, String | Integer | bool | nil] | String) args, **String | Integer | bool | nil kwargs) -> (Hash[Symbol, String | Integer | bool | nil] | String)
302 303 304 |
# File 'lib/xlsxrb.rb', line 302 def data_labels(*args, **kwargs) @options[:data_labels] = kwargs.empty? ? args.first : kwargs end |
#fill(*args, **kwargs) ⇒ Object
Configures the fill property for this series. : (*(Hash[Symbol, String | Integer | bool | nil] | String) args, **String | Integer | bool | nil kwargs) -> (Hash[Symbol, String | Integer | bool | nil] | String)
272 273 274 |
# File 'lib/xlsxrb.rb', line 272 def fill(*args, **kwargs) @options[:fill] = kwargs.empty? ? args.first : kwargs end |
#line(*args, **kwargs) ⇒ Object
Configures the line property for this series. : (*(Hash[Symbol, String | Integer | bool | nil] | String) args, **String | Integer | bool | nil kwargs) -> (Hash[Symbol, String | Integer | bool | nil] | String)
282 283 284 |
# File 'lib/xlsxrb.rb', line 282 def line(*args, **kwargs) @options[:line] = kwargs.empty? ? args.first : kwargs end |
#marker(*args, **kwargs) ⇒ Object
Configures the marker property for this series. : (*untyped args, **untyped kwargs) -> untyped
262 263 264 |
# File 'lib/xlsxrb.rb', line 262 def marker(*args, **kwargs) @options[:marker] = kwargs.empty? ? args.first : kwargs end |
#name(*args, **kwargs) ⇒ Object
Configures the name property for this series. : (*untyped args, **untyped kwargs) -> untyped
252 253 254 |
# File 'lib/xlsxrb.rb', line 252 def name(*args, **kwargs) @options[:name] = kwargs.empty? ? args.first : kwargs end |
#shape(*args, **kwargs) ⇒ Object
Configures the shape property for this series. : (*(String) args, **String | Integer | bool | nil kwargs) -> String
322 323 324 |
# File 'lib/xlsxrb.rb', line 322 def shape(*args, **kwargs) @options[:shape] = kwargs.empty? ? args.first : kwargs end |
#smooth(*args, **kwargs) ⇒ Object
Configures the smooth property for this series. : (*(bool | String) args, **String | Integer | bool | nil kwargs) -> (bool | String)
312 313 314 |
# File 'lib/xlsxrb.rb', line 312 def smooth(*args, **kwargs) @options[:smooth] = kwargs.empty? ? args.first : kwargs end |
#trendline(*args, **kwargs) ⇒ Object
Configures the trendline property for this series. : (*(Hash[Symbol, String | Integer | bool | nil] | String) args, **String | Integer | bool | nil kwargs) -> (Hash[Symbol, String | Integer | bool | nil] | String)
292 293 294 |
# File 'lib/xlsxrb.rb', line 292 def trendline(*args, **kwargs) @options[:trendline] = kwargs.empty? ? args.first : kwargs end |
#type(*args, **kwargs) ⇒ Object
Configures the type property for this series. : (*(String) args, **String | Integer | bool | nil kwargs) -> String
332 333 334 |
# File 'lib/xlsxrb.rb', line 332 def type(*args, **kwargs) @options[:type] = kwargs.empty? ? args.first : kwargs end |
#values(*args, **kwargs) ⇒ Object
Configures the values property for this series. : (*untyped args, **untyped kwargs) -> untyped
242 243 244 |
# File 'lib/xlsxrb.rb', line 242 def values(*args, **kwargs) @options[:values] = kwargs.empty? ? args.first : kwargs end |