mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-22 15:45:04 -07:00
Compare commits
1 Commits
webhost_ot
...
webhost_bi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
efe48fb432 |
@@ -13,3 +13,7 @@
|
|||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.full-width {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ def stats():
|
|||||||
from worlds import network_data_package
|
from worlds import network_data_package
|
||||||
known_games = set(network_data_package["games"])
|
known_games = set(network_data_package["games"])
|
||||||
plot = figure(title="Games Played Per Day", x_axis_type='datetime', x_axis_label="Date",
|
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)
|
total_games, games_played = get_db_data(known_games)
|
||||||
days = sorted(games_played)
|
days = sorted(games_played)
|
||||||
@@ -96,7 +96,7 @@ def stats():
|
|||||||
total = sum(total_games.values())
|
total = sum(total_games.values())
|
||||||
pie = figure(title=f"Games Played in the Last 30 Days (Total: {total})", toolbar_location=None,
|
pie = figure(title=f"Games Played in the Last 30 Days (Total: {total})", toolbar_location=None,
|
||||||
tools="hover", tooltips=[("Game:", "@games"), ("Played:", "@count")],
|
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.axis.visible = False
|
||||||
pie.xgrid.visible = False
|
pie.xgrid.visible = False
|
||||||
pie.ygrid.visible = False
|
pie.ygrid.visible = False
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<div id="charts-wrapper">
|
<div id="charts-wrapper">
|
||||||
{% for chart in charts %}
|
{% for chart in charts %}
|
||||||
<div class="chart-container">
|
<div class="chart-container{% if loop.index0 < 2 %} full-width{% endif %}">
|
||||||
{{ chart|indent(16)|safe }}
|
{{ chart|indent(16)|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user