Class: RubyvisCharts::BarTimelineChart
- Inherits:
-
AbstractTimelineChart
- Object
- AbstractChart
- AbstractTimelineChart
- RubyvisCharts::BarTimelineChart
- Defined in:
- lib/rubyvis_charts/bar_timeline_chart.rb
Defined Under Namespace
Modules: DefaultArguments
Constant Summary
Constants inherited from AbstractTimelineChart
AbstractTimelineChart::EXTRA_WEEKEND_BARS_WIDTH, AbstractTimelineChart::TITLE_TOP_INDENT
Instance Attribute Summary collapse
-
#bars_colors ⇒ Object
readonly
Returns the value of attribute bars_colors.
-
#bars_padding ⇒ Object
readonly
Returns the value of attribute bars_padding.
Attributes inherited from AbstractTimelineChart
#custom_legend_offset, #dates, #dates_color, #dates_font, #dates_formatter, #dates_height_ratio, #layer_dates, #layer_legend, #layer_marks, #layer_numbers, #layer_timeline, #layer_title, #legend_chars, #legend_colors, #legend_font, #legend_shape, #legend_text_color, #legend_titles, #marks, #marks_color, #marks_font, #marks_formatter, #marks_height_ratio, #numbers_color, #numbers_font, #numbers_formatter, #rules_color, #rules_count, #threshold_caption, #threshold_color, #threshold_number, #threshold_width, #timeline_width_ratio, #title_color, #title_font, #title_text, #weekend_bar_color, #y_scale_max
Attributes inherited from AbstractChart
#height, #inner_box_height, #inner_box_width, #padding, #parent_layer, #values, #width
Instance Method Summary collapse
-
#initialize(bars_padding: DefaultArguments::BARS_PADDING, bars_colors: DefaultArguments::BARS_COLORS, **other) ⇒ BarTimelineChart
constructor
A new instance of BarTimelineChart.
Methods inherited from AbstractTimelineChart
#dates_height, #dates_width, #legend_height, #legend_width, #marks_height, #marks_width, #numbers_height, #numbers_width, #timeline_height, #timeline_width, #title_height, #title_width
Methods inherited from AbstractChart
Constructor Details
#initialize(bars_padding: DefaultArguments::BARS_PADDING, bars_colors: DefaultArguments::BARS_COLORS, **other) ⇒ BarTimelineChart
Returns a new instance of BarTimelineChart.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rubyvis_charts/bar_timeline_chart.rb', line 10 def initialize( bars_padding: DefaultArguments::BARS_PADDING, bars_colors: DefaultArguments::BARS_COLORS, **other ) super(other) @bars_padding = @bars_colors = end |
Instance Attribute Details
#bars_colors ⇒ Object (readonly)
Returns the value of attribute bars_colors.
8 9 10 |
# File 'lib/rubyvis_charts/bar_timeline_chart.rb', line 8 def @bars_colors end |
#bars_padding ⇒ Object (readonly)
Returns the value of attribute bars_padding.
8 9 10 |
# File 'lib/rubyvis_charts/bar_timeline_chart.rb', line 8 def @bars_padding end |