Sha256: 86f5f6adc66f2de5728f987dd0d7db858335fa1ae0171611d511e01bc51258b0
Contents?: true
Size: 500 Bytes
Versions: 9
Compression:
Stored size: 500 Bytes
Contents
module Integral module ChartRenderer # http://www.chartjs.org/samples/latest/charts/doughnut.html class Donut < Base private def respond_with_chart(data) locals = { data: data, dataset: @dataset } render_partial('donut', locals) end # Line will fail if no 'period' option is supplied throw wrong argument error or w.e def process_data @dataset.map { |item| item[:scope].count } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems