Class: Rubyplot::StackedBarGeometry

Inherits:
ArtistGeometry show all
Defined in:
lib/rubyplot/scripting/stacked_bar/geometry.rb

Constant Summary

Constants inherited from ArtistGeometry

ArtistGeometry::DEFAULT_MARGIN, ArtistGeometry::DEFAULT_TARGET_WIDTH, ArtistGeometry::LABEL_MARGIN, ArtistGeometry::LEGEND_MARGIN

Instance Attribute Summary collapse

Attributes inherited from ArtistGeometry

#additional_line_colors, #additional_line_values, #bottom_margin, #center_labels_over_point, #font, #font_color, #has_data, #has_left_labels, #hide_legend, #hide_line_markers, #hide_line_numbers, #hide_title, #increment, #increment_scaled, #increment_x_scaled, #label_formatting, #label_max_size, #label_stagger_height, #label_truncation_style, #labels, #labels_seen, #left_margin, #legend_at_bottom, #legend_box_size, #legend_font_size, #legend_margin, #marker_color, #marker_count, #marker_shadow_color, #maximum_value, #minimum_value, #norm_data, #raw_columns, #raw_rows, #right_margin, #show_labels_for_bar_values, #sorted_drawing, #stacked, #theme_options, #title, #title_margin, #top_margin, #use_data_label, #x_axis_increment, #x_axis_label, #y_axis_increment, #y_axis_label

Instance Method Summary collapse

Constructor Details

#initializeStackedBarGeometry


13
14
15
16
17
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 13

def initialize
  super
  @all_colors_array = Magick.colors
  @plot_colors = []
end

Instance Attribute Details

#all_colors_arrayObject

Returns the value of attribute all_colors_array


3
4
5
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 3

def all_colors_array
  @all_colors_array
end

#bar_spacingObject

Spacing factor applied between bars


7
8
9
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 7

def bar_spacing
  @bar_spacing
end

#bar_widthObject

Returns the value of attribute bar_width


9
10
11
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 9

def bar_width
  @bar_width
end

#column_countObject

Number of pixels between bar segments


11
12
13
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 11

def column_count
  @column_count
end

#graph_widthObject

Returns the value of attribute graph_width


9
10
11
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 9

def graph_width
  @graph_width
end

#paddingObject

Returns the value of attribute padding


9
10
11
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 9

def padding
  @padding
end

#plot_colorsObject

Returns the value of attribute plot_colors


4
5
6
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 4

def plot_colors
  @plot_colors
end

#segment_spacingObject

Number of pixels between bar segments


11
12
13
# File 'lib/rubyplot/scripting/stacked_bar/geometry.rb', line 11

def segment_spacing
  @segment_spacing
end