diff --git a/WebHostLib/static/styles/stats.css b/WebHostLib/static/styles/stats.css index 9eb165abdc..6607c6485f 100644 --- a/WebHostLib/static/styles/stats.css +++ b/WebHostLib/static/styles/stats.css @@ -13,3 +13,7 @@ margin-bottom: 30px; } +.full-width { + width: 100%; +} + diff --git a/WebHostLib/stats.py b/WebHostLib/stats.py index 2ce25c2cc7..04c85e04c1 100644 --- a/WebHostLib/stats.py +++ b/WebHostLib/stats.py @@ -78,7 +78,7 @@ def stats(): from worlds import network_data_package known_games = set(network_data_package["games"]) plot = figure(title="Games Played Per Day", x_axis_type='datetime', x_axis_label="Date", - y_axis_label="Games Played", sizing_mode="scale_both", width=PLOT_WIDTH, height=500) + y_axis_label="Games Played", sizing_mode="scale_both", width=PLOT_WIDTH * 2, height=1000) total_games, games_played = get_db_data(known_games) days = sorted(games_played) @@ -96,7 +96,7 @@ def stats(): total = sum(total_games.values()) pie = figure(title=f"Games Played in the Last 30 Days (Total: {total})", toolbar_location=None, tools="hover", tooltips=[("Game:", "@games"), ("Played:", "@count")], - sizing_mode="scale_both", width=PLOT_WIDTH, height=500, x_range=(-0.5, 1.2)) + sizing_mode="scale_both", width=PLOT_WIDTH * 2, height=1000, x_range=(-0.5, 1.2)) pie.axis.visible = False pie.xgrid.visible = False pie.ygrid.visible = False diff --git a/WebHostLib/templates/stats.html b/WebHostLib/templates/stats.html index 3e60c7afdd..ea9736eb66 100644 --- a/WebHostLib/templates/stats.html +++ b/WebHostLib/templates/stats.html @@ -19,7 +19,7 @@
{% for chart in charts %} -
+
{{ chart|indent(16)|safe }}
{% endfor %}