Sha256: b87a4bca649bd45c64e27ec6e2b4bcb6488511803934a1ab7e0e883794b2da4b
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
class StreamgraphGenerator < BaseGenerator # generate horizontal bar chart # element - div id or class for chart # data_url - csv file with data def generate( element, data_url ) add_assets( 'streamgraph'+element.to_s+'.js', js_code( element, data_url ) ) add_assets( 'streamgraph'+element.to_s+'.css', css_code( element ) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
d3js-charts-1.1.0 | lib/chart_generators/streamgraph_generator.rb |