Class: VerticalBarChartGenerator

Inherits:
BaseGenerator show all
Defined in:
lib/chart_generators/bar_chart_generator.rb

Instance Method Summary collapse

Methods inherited from BaseGenerator

#add_assets, #css_code, #js_code

Instance Method Details

#generate(element, tsv_url) ⇒ Object

generate horizontal bar chart

element - div id or class for chart
tsv_url - file with [ X , Y ] data table


18
19
20
21
# File 'lib/chart_generators/bar_chart_generator.rb', line 18

def generate( element, tsv_url )
  add_assets( "#{element[1..-1]}"+'.js', js_code( element, tsv_url ) )
  add_assets( "#{element[1..-1]}"+'.scss', css_code( element ) )   
end