Add charts about sold tickets

This commit is contained in:
nasia 2017-04-25 18:22:39 +03:00 committed by Stella Rouzi
parent 41503bb7a0
commit 8cd3326520
3 changed files with 28 additions and 1 deletions

View file

@ -60,6 +60,17 @@
unit: 'weeks' }
.col-md-4
= render partial: 'doughnut_chart', locals: { title: 'User', data: @user_distribution }
.row#tickets
.col-md-8
= render partial: 'line_chart', locals: { title: 'Tickets sold over time',
name: 'tickets',
conferences: @conferences,
active_conferences: @active_conferences,
deactive_conferences: @deactive_conferences,
y: @tickets,
x: @ticket_weeks,
unit: 'weeks' }
%br
.row
.col-md-8
%ul.nav.nav-tabs#recentTable