def show_tables():
    tableDisplay = table()
    figureDisplay1 = plot1()
    figureDisplay2 = plot2()
    figureDisplay3 = plot3()
    figureDisplay4 = plot4()
    figureDisplay5 = plot5()
    dateWise = datewise()
    countryWise = countrywise()
    datewiseWorldwideCases = datewise_worldwide_cases()
    dailyConfirmedDeaths = daily_confirmed_deaths()
    countrywiseTests = countrywise_tests()
    totalVSNewCases = total_vs_new_cases()
    return render_template('index.html',
                           returnList=tableDisplay,
                           figure1=figureDisplay1,
                           figure2=figureDisplay2,
                           figure3=figureDisplay3,
                           figure4=figureDisplay4,
                           figure5=figureDisplay5,
                           dateWiseData=dateWise,
                           countryWiseData=countrywise,
                           datewiseWorldwideData=datewiseWorldwideCases,
                           dailyConfirmedDeath=dailyConfirmedDeaths,
                           countryWiseTests=countrywiseTests,
                           totalVsNewCases=totalVSNewCases)
Пример #2
0
def show_tables():
    totals = total()
    tableDisplay = table()
    first10case = first10cases()
    first10test = first10tests()
    second10case = second10cases()
    second10test = second10tests()
    third10case = third10cases()
    third10test = third10tests()
    plot1 = tourists()
    plot2 = gdp()
    plot3 = urbanpop()
    plot4 = touristslog()
    return render_template('index.html',
                           total_data=totals,
                           returnList=tableDisplay,
                           figure1=first10case,
                           figure2=first10test,
                           figure3=second10case,
                           figure4=second10test,
                           figure5=third10case,
                           figure6=third10test,
                           fig1=plot1,
                           fig2=plot2,
                           fig3=plot3,
                           fig4=plot4)
def show_tables():
    tableDisplay = table()
    figureDisplay1 = plot1()
    top10fig = top10()
    figureDisplay2=pie1()
    figureDisplay3=scatter1()
    totals=total()
    dateWise = datewise()
    ageWise=agewise()
    return render_template('index.html',  returnList = tableDisplay, figure1=figureDisplay1,top10list=top10fig,  figure2=figureDisplay2, figure3=figureDisplay3,total_data=totals,dateWiseData=dateWise,ageWiseDetails=ageWise)