Sha256: 6959cd735152f63979b261fcf7f7cbc3c799199765ea870039a41dc8252ce530
Contents?: true
Size: 502 Bytes
Versions: 23
Compression:
Stored size: 502 Bytes
Contents
initializeCharts = -> $('.effective-datatables-chart').each -> $chart = $(this) data = $chart.data('data') || [] type = $chart.data('type') || 'BarChart' options = $chart.data('options') || {} chart = new google.visualization[type](document.getElementById($chart.attr('id'))) chart.draw(google.visualization.arrayToDataTable(data), options) $ -> initializeCharts() $(document).on 'page:change', -> initializeCharts() $(document).on 'turbolinks:load', -> initializeCharts()
Version data entries
23 entries across 23 versions & 1 rubygems