Show charts for survey replies

This commit is contained in:
Stella Rouzi 2018-02-13 16:11:52 +02:00
parent 683f62a27c
commit e1adf28081
10 changed files with 13 additions and 1 deletions

View file

@ -125,6 +125,7 @@ gem 'jquery-datatables-rails', '~> 2.2.1'
# for charts
gem 'chart-js-rails'
gem 'chartkick'
# for displaying maps
gem 'leaflet-rails'

View file

@ -113,6 +113,7 @@ GEM
fastimage
chart-js-rails (0.0.6)
railties (> 3.1)
chartkick (2.2.5)
chronic (0.10.2)
chunky_png (1.3.8)
climate_control (0.2.0)
@ -590,6 +591,7 @@ DEPENDENCIES
carrierwave
carrierwave-bombshelter
chart-js-rails
chartkick
climate_control
cloudinary
cocoon

View file

@ -20,7 +20,6 @@
//= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
//= require cocoon
//= require bootstrap
//= require Chart
//= require osem
//= require osem-dashboard
//= require ahoy

View file

@ -1,3 +1,4 @@
= javascript_include_tag 'Chart'
.row
.col-sm-3.col-xs-3
.dashbox.text-center

View file

@ -1,3 +1,5 @@
= javascript_include_tag 'Chart'
%h1
%span.fa.fa-tachometer
Dashboard for #{@conference.title}

View file

@ -1,3 +1,5 @@
= javascript_include_tag 'Chart'
.row
.col-md-12
.page-header

View file

@ -1,3 +1,5 @@
= javascript_include_tag 'Chart'
.container
.row
.col-md-12.page-header

View file

@ -1,3 +1,5 @@
= javascript_include_tag 'Chart'
.row
.col-md-12
.page-header

View file

@ -9,3 +9,4 @@ Rails.application.config.assets.version = '1.0'
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )
Rails.application.config.assets.precompile += %w( Chart.js )