Merge pull request #2469 from betagouv/fix-stats-graph

Fix stats graph
This commit is contained in:
gregoirenovel 2018-08-28 09:56:17 +02:00 committed by GitHub
commit c640de1c27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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