Generates a Financial Line Chart. This feature is UNDOCUMENTED and EXPERIMENTAL. For a sample usage, visit (right at the bottom) 24ways.org/2007/tracking-christmas-cheer-with-google-charts
flc = GoogleChart::FinancialLineChart.new do |chart| chart.data "", [3,10,20,37,40,25,68,75,89,99], "ff0000" end puts flc.to_url
Specify the
chart_size
in WIDTHxHEIGHT format
chart_title
as a string
# File lib/google_chart/financial_line_chart.rb, line 18 def initialize(chart_size='100x15', chart_title=nil) # :yield: self super(chart_size, chart_title) self.chart_type = :lfi self.show_legend = false yield self if block_given? end
# File lib/google_chart/financial_line_chart.rb, line 25 def process_data join_encoded_data(@data.collect { |series| encode_data(series, max_data_value) }) end