Sha256: 34468767a3d5a0d01038792a7ed03ce2db37d32e66e1bb850f3f7ea7d4bc229b

Contents?: true

Size: 265 Bytes

Versions: 4

Compression:

Stored size: 265 Bytes

Contents

module Histogram

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

    # TODO
    # duration histogram
    # http://bl.ocks.org/mbostock/3048166

end

Version data entries

4 entries across 4 versions & 2 rubygems

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