Class: Ambling::Line::Settings::Graphs::Graph
- Inherits:
-
Object
- Object
- Ambling::Line::Settings::Graphs::Graph
- Includes:
- Base
- Defined in:
- lib/ambling/line.rb
Overview
if you are using XML data file, graph “gid” must match graph “gid” in data file
Constant Summary collapse
- VALUES =
[:axis,:title,:color,:color_hover,:line_alpha,:line_width,:fill_alpha,:fill_color,:balloon_color,:balloon_alpha,:balloon_text_color,:bullet,:bullet_size,:bullet_color,:bullet_alpha,:hidden,:selected,:balloon_text,:data_labels,:data_labels_text_color,:data_labels_text_size,:data_labels_position,:vertical_lines,:visible_in_legend]
- ATTRIBUTES =
[:gid]
Instance Attribute Summary collapse
-
#axis ⇒ Object
- left
-
(left/ right) indicates which y axis should be used.
-
#balloon_alpha ⇒ Object
- 100
-
(0 - 100).
-
#balloon_color ⇒ Object
- graph color
-
(hex color code) leave empty to use the same color as graph.
- #balloon_text ⇒ Object
-
#balloon_text_color ⇒ Object
- #FFFFFF
-
(hex color code).
-
#bullet ⇒ Object
The chart will look for this file in “path” folder (“path” is set in HTML).
-
#bullet_alpha ⇒ Object
- graph alpha
-
(hex color code) Leave empty to use the same alpha as graph.
-
#bullet_color ⇒ Object
- graph color
-
(hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets.
-
#bullet_size ⇒ Object
[8](Number) affects only predefined bullets, does not change size of custom loaded bullets.
-
#color ⇒ Object
-
(hex color code) if not defined, uses colors from this array: #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066.
-
#color_hover ⇒ Object
- #BBBB00
-
(hex color code).
-
#data_labels ⇒ Object
to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area.
-
#data_labels_position ⇒ Object
- above
-
(below / above).
-
#data_labels_text_color ⇒ Object
- text_color
-
(hex color code).
-
#data_labels_text_size ⇒ Object
- text_size
-
(Number).
-
#fill_alpha ⇒ Object
- 0
-
(0 - 100) if you want the chart to be area chart, use bigger than 0 value.
-
#fill_color ⇒ Object
- grpah.color
-
(hex color code).
-
#gid ⇒ Object
xml attribute.
-
#hidden ⇒ Object
- false
-
(true / false) vill not be visible until you check corresponding checkbox in the legend.
-
#line_alpha ⇒ Object
- 100
-
(0 - 100).
-
#line_width ⇒ Object
- 0
-
(Number) 0 for hairline.
-
#selected ⇒ Object
- true
-
(true / false) if true, balloon indicating value will be visible then roll over plot area.
-
#title ⇒ Object
-
(graph title).
-
#vertical_lines ⇒ Object
- false
-
(true / false) whether to draw vertical lines or not.
-
#visible_in_legend ⇒ Object
- true
-
(true / false) whether to show legend entry for this graph or not.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#axis ⇒ Object
- left
-
(left/ right) indicates which y axis should be used
1591 1592 1593 |
# File 'lib/ambling/line.rb', line 1591 def axis @axis end |
#balloon_alpha ⇒ Object
- 100
-
(0 - 100)
1636 1637 1638 |
# File 'lib/ambling/line.rb', line 1636 def balloon_alpha @balloon_alpha end |
#balloon_color ⇒ Object
- graph color
-
(hex color code) leave empty to use the same color as graph
1631 1632 1633 |
# File 'lib/ambling/line.rb', line 1631 def balloon_color @balloon_color end |
#balloon_text ⇒ Object
1676 1677 1678 |
# File 'lib/ambling/line.rb', line 1676 def balloon_text @balloon_text end |
#balloon_text_color ⇒ Object
- #FFFFFF
-
(hex color code)
1641 1642 1643 |
# File 'lib/ambling/line.rb', line 1641 def balloon_text_color @balloon_text_color end |
#bullet ⇒ Object
The chart will look for this file in “path” folder (“path” is set in HTML)
1646 1647 1648 |
# File 'lib/ambling/line.rb', line 1646 def bullet @bullet end |
#bullet_alpha ⇒ Object
- graph alpha
-
(hex color code) Leave empty to use the same alpha as graph
1661 1662 1663 |
# File 'lib/ambling/line.rb', line 1661 def bullet_alpha @bullet_alpha end |
#bullet_color ⇒ Object
- graph color
-
(hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets. Leave empty to use the same color as graph
1656 1657 1658 |
# File 'lib/ambling/line.rb', line 1656 def bullet_color @bullet_color end |
#bullet_size ⇒ Object
[8](Number) affects only predefined bullets, does not change size of custom loaded bullets
1651 1652 1653 |
# File 'lib/ambling/line.rb', line 1651 def bullet_size @bullet_size end |
#color ⇒ Object
-
(hex color code) if not defined, uses colors from this array: #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066
1601 1602 1603 |
# File 'lib/ambling/line.rb', line 1601 def color @color end |
#color_hover ⇒ Object
- #BBBB00
-
(hex color code)
1606 1607 1608 |
# File 'lib/ambling/line.rb', line 1606 def color_hover @color_hover end |
#data_labels ⇒ Object
to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area.
1681 1682 1683 |
# File 'lib/ambling/line.rb', line 1681 def data_labels @data_labels end |
#data_labels_position ⇒ Object
- above
-
(below / above)
1696 1697 1698 |
# File 'lib/ambling/line.rb', line 1696 def data_labels_position @data_labels_position end |
#data_labels_text_color ⇒ Object
- text_color
-
(hex color code)
1686 1687 1688 |
# File 'lib/ambling/line.rb', line 1686 def data_labels_text_color @data_labels_text_color end |
#data_labels_text_size ⇒ Object
- text_size
-
(Number)
1691 1692 1693 |
# File 'lib/ambling/line.rb', line 1691 def data_labels_text_size @data_labels_text_size end |
#fill_alpha ⇒ Object
- 0
-
(0 - 100) if you want the chart to be area chart, use bigger than 0 value
1621 1622 1623 |
# File 'lib/ambling/line.rb', line 1621 def fill_alpha @fill_alpha end |
#fill_color ⇒ Object
- grpah.color
-
(hex color code). Separate color codes with comas for gradient
1626 1627 1628 |
# File 'lib/ambling/line.rb', line 1626 def fill_color @fill_color end |
#gid ⇒ Object
xml attribute
1711 1712 1713 |
# File 'lib/ambling/line.rb', line 1711 def gid @gid end |
#hidden ⇒ Object
- false
-
(true / false) vill not be visible until you check corresponding checkbox in the legend
1666 1667 1668 |
# File 'lib/ambling/line.rb', line 1666 def hidden @hidden end |
#line_alpha ⇒ Object
- 100
-
(0 - 100)
1611 1612 1613 |
# File 'lib/ambling/line.rb', line 1611 def line_alpha @line_alpha end |
#line_width ⇒ Object
- 0
-
(Number) 0 for hairline
1616 1617 1618 |
# File 'lib/ambling/line.rb', line 1616 def line_width @line_width end |
#selected ⇒ Object
- true
-
(true / false) if true, balloon indicating value will be visible then roll over plot area
1671 1672 1673 |
# File 'lib/ambling/line.rb', line 1671 def selected @selected end |
#title ⇒ Object
-
(graph title)
1596 1597 1598 |
# File 'lib/ambling/line.rb', line 1596 def title @title end |
#vertical_lines ⇒ Object
- false
-
(true / false) whether to draw vertical lines or not. If you want to show vertical lines only (without the graph, set line_alpha to 0
1701 1702 1703 |
# File 'lib/ambling/line.rb', line 1701 def vertical_lines @vertical_lines end |
#visible_in_legend ⇒ Object
- true
-
(true / false) whether to show legend entry for this graph or not
1706 1707 1708 |
# File 'lib/ambling/line.rb', line 1706 def visible_in_legend @visible_in_legend end |