commit
c640de1c27
2 changed files with 3 additions and 3 deletions
|
@ -89,9 +89,9 @@ class StatsController < ApplicationController
|
|||
|
||||
def satisfaction_usagers
|
||||
legend = {
|
||||
Feedback.ratings.fetch(:unhappy) => "Mécontents",
|
||||
Feedback.ratings.fetch(:happy) => "Satisfaits",
|
||||
Feedback.ratings.fetch(:neutral) => "Neutres",
|
||||
Feedback.ratings.fetch(:happy) => "Satisfaits"
|
||||
Feedback.ratings.fetch(:unhappy) => "Mécontents"
|
||||
}
|
||||
|
||||
totals = Feedback.where(created_at: 5.weeks.ago..Time.now).group_by_week(:created_at).count
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
.chart-container
|
||||
.chart
|
||||
= line_chart @satisfaction_usagers,
|
||||
colors: ["#F28900", "rgba(161, 0, 5, 0.9)", "#15AD70"]
|
||||
colors: ["#15AD70", "#F28900", "rgba(161, 0, 5, 0.9)"]
|
||||
|
||||
.stat-card.stat-card-half.pull-left
|
||||
%span.stat-card-title
|
||||
|
|
Loading…
Reference in a new issue