class Rubyxls::Builders::ChartBuilder

Attributes

bar_dir[R]
cat_axis_gridlines[R]
cat_axis_title[R]
end_at[R]
rot_x[R]
rot_y[R]
series[R]
show_legend[R]
start_at[R]
title[R]
type[R]
val_axis_gridlines[R]
val_axis_title[R]

Public Class Methods

new(**opts) click to toggle source
# File lib/rubyxls/builders/chart_builder.rb, line 21
def initialize(**opts)
  @type = opts.fetch(:type, Axlsx::Bar3DChart)
  @start_at = opts.fetch(:start_at, "A1")
  @end_at = opts.fetch(:end_at, "A1")
  @title = opts.fetch(:title, " ")
  @rot_x = opts.fetch(:rot_x, 30)
  @rot_y = opts.fetch(:rot_y, 20)
  @show_legend = opts.fetch(:show_legend, false)
  @bar_dir = opts.fetch(:bar_dir, :col)
  @cat_axis_title = opts.fetch(:cat_axis_title, " ")
  @val_axis_title = opts.fetch(:val_axis_title, " ")
  @cat_axis_gridlines = opts.fetch(:cat_axis_gridlines, false)
  @val_axis_gridlines = opts.fetch(:val_axis_gridlines, false)
  @series = opts.fetch(:series, [])
end