Class: Ambling::Line::Settings::VerticalLines
- Inherits:
-
Object
- Object
- Ambling::Line::Settings::VerticalLines
- Includes:
- Base
- Defined in:
- lib/ambling/line.rb
Overview
line chart can also display vertical lines/columns (set <vertical_lines>true</vertical_lines> in graph settings for that). If you also set <line_alpha>0</line_alpha> your line chart will become column chart
Constant Summary collapse
- VALUES =
[:width,:alpha,:clustered,:mask]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 100
-
(0 - 100).
-
#clustered ⇒ Object
- false
-
in case you have more then one graph with vertical lines enabled, you might want to place your columns next to each other, set true for that.
-
#mask ⇒ Object
- true
-
(true / false) as line chart by default starts on axis, and your column width is >0, then some part of first and last column will be outside plot area (incase you don’t set <start_on_axis>false</false> Mask will cut off the part outside the plot area. Set to false if you don’t want this..
-
#width ⇒ Object
- 0
-
(0 - 100) width of vertical line in percents.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 100
-
(0 - 100)
1166 1167 1168 |
# File 'lib/ambling/line.rb', line 1166 def alpha @alpha end |
#clustered ⇒ Object
- false
-
in case you have more then one graph with vertical lines enabled, you might want to place your columns next to each other, set true for that.
1171 1172 1173 |
# File 'lib/ambling/line.rb', line 1171 def clustered @clustered end |
#mask ⇒ Object
- true
-
(true / false) as line chart by default starts on axis, and your column width is >0, then some part of first and last column will be outside plot area (incase you don’t set <start_on_axis>false</false> Mask will cut off the part outside the plot area. Set to false if you don’t want this.
1176 1177 1178 |
# File 'lib/ambling/line.rb', line 1176 def mask @mask end |
#width ⇒ Object
- 0
-
(0 - 100) width of vertical line in percents. 0 for hairline. Set > 0 if you want to have column
1161 1162 1163 |
# File 'lib/ambling/line.rb', line 1161 def width @width end |