def draw_graphs(): """Generate graphs for all statistics groups.""" if not os.path.exists(APP.config['GRAPH_STORAGE_FOLDER']): os.makedirs(APP.config['GRAPH_STORAGE_FOLDER']) for group in static.STATISTIC_GROUPS: statistic_plots.create_plot(group)
def draw_graphs(): """Generate graphs for all statistics groups.""" if not os.path.exists('eisitirio/'+APP.config['GRAPH_STORAGE_FOLDER']): os.makedirs('eisitirio/'+APP.config['GRAPH_STORAGE_FOLDER']) for group in static.STATISTIC_GROUPS: statistic_plots.create_plot(group)
def graph_sales(): """Render a graph showing sales statistics Shows statistics for number of tickets Available, Ordered, Paid, Collected, and Cancelled, plus the length of the waiting list. """ return statistic_plots.create_plot('Sales')
def graph_payments(): """Render graph showing payment statistics. Shows how many tickets have been paid for by each payment method. """ return statistic_plots.create_plot('Payments')
def graph_colleges(): """Render graph showing statistics on users' colleges. Shows how many users are registered from each college. """ return statistic_plots.create_plot('Colleges')