Module: GoogleChart

Defined in:
lib/google_chart/axis.rb,
lib/google_chart.rb,
lib/google_chart/data.rb,
lib/google_chart/color.rb,
lib/google_chart/title.rb,
lib/google_chart/legend.rb,
lib/google_chart/bar_chart.rb,
lib/google_chart/bar_style.rb,
lib/google_chart/grid_line.rb,
lib/google_chart/line_chart.rb,
lib/google_chart/line_style.rb,
lib/google_chart/range_marker.rb,
lib/google_chart/abstract_chart.rb

Overview

Defined Under Namespace

Modules: Axis, BarStyle, Color, Data, GridLine, Legend, LineStyle, RangeMarker, Title Classes: AbstractChart, BarChart, LineChart

Class Method Summary collapse

Class Method Details

.Bar(options = {}, &block) ⇒ Object



27
28
29
# File 'lib/google_chart.rb', line 27

def self.Bar(options = {}, &block)
  GoogleChart::BarChart.new(options, &block).to_url
end

.Line(options = {}, &block) ⇒ Object



23
24
25
# File 'lib/google_chart.rb', line 23

def self.Line(options = {}, &block)
  GoogleChart::LineChart.new(options, &block).to_url
end