#1153: Few of the graphs converted to use Chartkick

This commit is contained in:
Jyri-Petteri Paloposki 2019-05-12 14:10:59 +03:00
parent b1fbc7202e
commit c9cae9421a
13 changed files with 185 additions and 192 deletions

View file

@ -13,15 +13,5 @@ module Stats
def running_actions
@running_actions ||= Stats::TopContextsQuery.new(user, :limit => 5, :running => true).result
end
def charts
@charts = %w{
context_total_actions_data
context_running_actions_data
}.map do |action|
Stats::Chart.new(action, :height => 325)
end
end
end
end