diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index c24489b83..b9e4adacc 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -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 diff --git a/app/views/stats/index.html.haml b/app/views/stats/index.html.haml index 666c3033c..27d5e1b75 100644 --- a/app/views/stats/index.html.haml +++ b/app/views/stats/index.html.haml @@ -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