Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
Add func for generate chart
Browse files Browse the repository at this point in the history
  • Loading branch information
carlogilmar committed Sep 22, 2019
1 parent 2b92225 commit ca26741
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/spawnfest/engine/frequency_engine.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ defmodule FrequencyEngine do
days[day]
end

def get_chart_with_means(frequency) do
frequency
|> get_means()
|> Utils.generate_chart_for_percentajes()
end

def get_means(frequency) do
day_keys = [:monday, :tuesday, :wednesday, :thursday, :friday, :saturday, :sunday]
day_hours =
Expand Down

0 comments on commit ca26741

Please sign in to comment.