Sha256: 45d17c83c0233eb5f48a9543316193547a69392602e30368c5b6590f50eda771

Contents?: true

Size: 347 Bytes

Versions: 56

Compression:

Stored size: 347 Bytes

Contents

require_dependency "avo/base_controller"

module Avo
  class ChartsController < BaseController
    def distribution_chart
      @values_summary = resource.model_class.group(params[:field_id]).reorder("count_all desc").count
      @field_id = params[:field_id]

      render "avo/partials/distribution_chart", layout: "avo/blank"
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
avo-3.14.3 app/controllers/avo/charts_controller.rb
avo-3.14.2 app/controllers/avo/charts_controller.rb
avo-3.14.1 app/controllers/avo/charts_controller.rb
avo-3.14.0 app/controllers/avo/charts_controller.rb
avo-3.13.7 app/controllers/avo/charts_controller.rb
avo-3.13.6 app/controllers/avo/charts_controller.rb
avo-3.13.5 app/controllers/avo/charts_controller.rb
avo-3.13.4 app/controllers/avo/charts_controller.rb
avo-3.13.3 app/controllers/avo/charts_controller.rb
avo-3.13.2 app/controllers/avo/charts_controller.rb
avo-3.13.1 app/controllers/avo/charts_controller.rb
avo-3.13.0 app/controllers/avo/charts_controller.rb
avo-3.12.0 app/controllers/avo/charts_controller.rb
avo-3.11.10 app/controllers/avo/charts_controller.rb
avo-3.11.9 app/controllers/avo/charts_controller.rb
avo-3.11.8 app/controllers/avo/charts_controller.rb
avo-3.11.7 app/controllers/avo/charts_controller.rb
avo-3.11.6 app/controllers/avo/charts_controller.rb
avo-3.11.5 app/controllers/avo/charts_controller.rb
avo-3.11.4 app/controllers/avo/charts_controller.rb