class Integral::ChartRenderer::Donut
Private Instance Methods
process_data()
click to toggle source
Line
will fail if no 'period' option is supplied throw wrong argument error or w.e
# File lib/integral/chart_renderer/donut.rb, line 16 def process_data @dataset.map { |item| item[:scope].count } end
respond_with_chart(data)
click to toggle source
# File lib/integral/chart_renderer/donut.rb, line 7 def respond_with_chart(data) locals = { data: data, dataset: @dataset } render_partial('donut', locals) end