mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 15:44:09 +01:00
#1153: Few of the graphs converted to use Chartkick
This commit is contained in:
parent
b1fbc7202e
commit
c9cae9421a
13 changed files with 185 additions and 192 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue