From 283f110e9bc465acc7e70ae594c240835c3f972e Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 28 Jan 2019 15:17:06 +0100 Subject: [PATCH] stats: improve numeric separators and suffixes --- app/views/stats/index.html.haml | 1 + config/initializers/chartkick.rb | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/stats/index.html.haml b/app/views/stats/index.html.haml index c0483ce45..6db06810e 100644 --- a/app/views/stats/index.html.haml +++ b/app/views/stats/index.html.haml @@ -27,6 +27,7 @@ .chart = area_chart @satisfaction_usagers, stacked: true, + suffix: ' %', max: 100, colors: ["#BD0107", "#F28900", "#15AD70"] diff --git a/config/initializers/chartkick.rb b/config/initializers/chartkick.rb index 213fa9164..cf507c8be 100644 --- a/config/initializers/chartkick.rb +++ b/config/initializers/chartkick.rb @@ -1,5 +1,7 @@ Chartkick.options = { content_for: :charts_js, defer: true, - colors: ["rgba(61, 149, 236, 1)"] + colors: ["rgba(61, 149, 236, 1)"], + thousands: ' ', + decimal: ',' }