Sha256: 53f72ee6d8d67e6d270c702f6aad3925dfe49a20d7e0c006f5c35f8baaa5144c

Contents?: true

Size: 471 Bytes

Versions: 4

Compression:

Stored size: 471 Bytes

Contents

module BarChart

    def horizontal_bar_chart( data, element='.horizontal_bar_chart' )
      HorizontalBarChartGenerator.new.generate( element, data )
      content_tag( :div, '', class: element[1..-1] )
    end

    def vertical_bar_chart( data_url, element='.vertical_bar_chart' )
      VerticalBarChartGenerator.new.generate( element, data_url )
      content_tag( :div, '', class: element[1..-1] )
    end

    # TODO
    # vertical_bar_chart with csv, json, txt

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
d3js-charts-1.1.0 lib/chart_helpers/common/bar_chart.rb
d3-charts-1.1.0 lib/chart_helpers/common/bar_chart.rb
d3-charts-1.0.1 lib/chart_helpers/common/bar_chart.rb
d3-charts-1.0.0 lib/chart_helpers/common/bar_chart.rb