Class: Ambling::Xy::Settings::Grid::Y
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::Grid::Y
- Includes:
- Base
- Defined in:
- lib/ambling/xy.rb
Overview
y axis grid
Constant Summary collapse
- VALUES =
[:color,:enabled,:alpha,:dashed,:dash_length,:approx_count,:fill_color,:fill_alpha]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 15
-
(0 - 100).
-
#approx_count ⇒ Object
- 10
-
(Number) approximate number of gridlines.
-
#color ⇒ Object
- #000000
-
(hex color code).
-
#dash_length ⇒ Object
- 5
-
(Number).
-
#dashed ⇒ Object
- false
-
(true / false).
-
#enabled ⇒ Object
- true
-
(true / false).
-
#fill_alpha ⇒ Object
- 0
-
(0 - 100) opacity of fill.
-
#fill_color ⇒ Object
- #FFFFFF
-
(hex color code) every second area between gridlines will be filled with this color (you will need to set fill_alpha > 0).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 15
-
(0 - 100)
367 368 369 |
# File 'lib/ambling/xy.rb', line 367 def alpha @alpha end |
#approx_count ⇒ Object
- 10
-
(Number) approximate number of gridlines
382 383 384 |
# File 'lib/ambling/xy.rb', line 382 def approx_count @approx_count end |
#color ⇒ Object
- #000000
-
(hex color code)
357 358 359 |
# File 'lib/ambling/xy.rb', line 357 def color @color end |
#dash_length ⇒ Object
- 5
-
(Number)
377 378 379 |
# File 'lib/ambling/xy.rb', line 377 def dash_length @dash_length end |
#dashed ⇒ Object
- false
-
(true / false)
372 373 374 |
# File 'lib/ambling/xy.rb', line 372 def dashed @dashed end |
#enabled ⇒ Object
- true
-
(true / false)
362 363 364 |
# File 'lib/ambling/xy.rb', line 362 def enabled @enabled end |
#fill_alpha ⇒ Object
- 0
-
(0 - 100) opacity of fill
392 393 394 |
# File 'lib/ambling/xy.rb', line 392 def fill_alpha @fill_alpha end |
#fill_color ⇒ Object
- #FFFFFF
-
(hex color code) every second area between gridlines will be filled with this color (you will need to set fill_alpha > 0)
387 388 389 |
# File 'lib/ambling/xy.rb', line 387 def fill_color @fill_color end |