Class: GoogleChart::LineChart
- Inherits:
-
AbstractChart
- Object
- AbstractChart
- GoogleChart::LineChart
- Defined in:
- lib/google_chart/line_chart.rb
Constant Summary collapse
- @@chart_types =
{ :line => 'lc', :xy => 'lxy', :sparkline => 'ls' }
Instance Attribute Summary
Attributes included from Data
Attributes inherited from AbstractChart
Instance Method Summary collapse
- #chart_type ⇒ Object
- #chart_type=(chart_type) ⇒ Object (also: #type=)
Methods included from Title
Methods included from RangeMarker
Methods included from LineStyle
included, #style, #style=, #width=
Methods included from Legend
Methods included from GridLine
Methods included from Data
Methods included from Color
Methods included from Axis
Methods inherited from AbstractChart
inherited, #initialize, register!, registered?, registry, #to_url
Constructor Details
This class inherits a constructor from GoogleChart::AbstractChart
Instance Method Details
#chart_type ⇒ Object
14 15 16 17 |
# File 'lib/google_chart/line_chart.rb', line 14 def chart_type @chart_type ||= @@chart_types[:line] 'cht=' + @chart_type if @chart_type end |
#chart_type=(chart_type) ⇒ Object Also known as: type=
19 20 21 |
# File 'lib/google_chart/line_chart.rb', line 19 def chart_type=(chart_type) @chart_type = @@chart_types[chart_type] end |