Class: Glimmer::View::BarChart
- Inherits:
-
Object
- Object
- Glimmer::View::BarChart
- Includes:
- LibUI::CustomControl
- Defined in:
- lib/glimmer/view/bar_chart.rb
Overview
General-Purpose Bar Chart Custom Control
Constant Summary collapse
- DEFAULT_CHART_PADDING_WIDTH =
5.0- DEFAULT_CHART_PADDING_HEIGHT =
5.0- DEFAULT_CHART_BAR_PADDING_WIDTH_PERCENTAGE =
30.0- DEFAULT_CHART_GRID_MARKER_PADDING_WIDTH =
This is y-axis grid marker padding that is to the left of the bar chart
37.0- DEFAULT_CHART_GRID_MARKER_PADDING_HEIGHT =
This is x-axis grid marker padding that is below the bar chart
30.0- DEFAULT_CHART_Y_AXIS_LABEL_PADDING_WIDTH =
This is y-axis label padding that is to the left of the bar chart
25.0- DEFAULT_CHART_X_AXIS_LABEL_PADDING_HEIGHT =
This is x-axis label padding that is below the bar chart
25.0- DEFAULT_CHART_STROKE_GRID =
[185, 184, 185]
- DEFAULT_CHART_STROKE_MARKER =
[185, 184, 185]
- DEFAULT_CHART_STROKE_MARKER_LINE =
[217, 217, 217, thickness: 1, dashes: [1, 1]]
- DEFAULT_CHART_COLOR_BAR =
[92, 122, 190]
- DEFAULT_CHART_COLOR_MARKER_TEXT =
[96, 96, 96]
- DEFAULT_CHART_FONT_MARKER_TEXT =
{family: "Arial", size: 14}
Instance Attribute Summary collapse
-
#bar_width_including_padding ⇒ Object
readonly
Returns the value of attribute bar_width_including_padding.
Class Method Summary collapse
Instance Attribute Details
#bar_width_including_padding ⇒ Object (readonly)
Returns the value of attribute bar_width_including_padding.
84 85 86 |
# File 'lib/glimmer/view/bar_chart.rb', line 84 def end |
Class Method Details
.interpret_color(color_object) ⇒ Object
8 9 10 11 12 |
# File 'lib/glimmer/view/bar_chart.rb', line 8 def interpret_color(color_object) # TODO refactor move this method to somewhere common like Glimmer module @color_cache ||= {} @color_cache[color_object] ||= Glimmer::LibUI.interpret_color(color_object) end |