Sha256: a19a0e153c19ff60fb7169e678d3788ebdde34c2193ce6fc1d99ba61b8bc632c
Contents?: true
Size: 457 Bytes
Versions: 14
Compression:
Stored size: 457 Bytes
Contents
class ChartCandy constructor: () -> @charts = [] if @d3IsLoaded() $('div[data-chart-candy]').each (i, chart) => switch $(chart).data('chart-candy') when 'counter' then @charts.push new ChartCandyCounter $(chart) when 'donut' then @charts.push new ChartCandyDonut $(chart) when 'line' then @charts.push new ChartCandyLine $(chart) d3IsLoaded: () -> if d3? then true else false $ -> new ChartCandy
Version data entries
14 entries across 14 versions & 1 rubygems