diff options
Diffstat (limited to 'examples/dashboard/templates/stats.js')
| -rw-r--r-- | examples/dashboard/templates/stats.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/dashboard/templates/stats.js b/examples/dashboard/templates/stats.js index cb68641..518bce8 100644 --- a/examples/dashboard/templates/stats.js +++ b/examples/dashboard/templates/stats.js @@ -1,4 +1,13 @@ $(function () { + $("#boots").text("{{ stats.boots }}"); + $("#potions").text("{{ stats.potions }}"); + $("#minions").text("{{ stats.minions }}"); + $("#topsold").text("{{ stats.topsold }}"); + $(".number").text("{{ stats.number }}"); + csstat = {{ stats.topcs|tojson|safe }}; + $("#cs-player").text(csstat.player); + $("#cs-actor").text(csstat.actor); + $("#cs-cs").text(csstat.cs); Highcharts.chart("gameType", { chart: { type: "pie" @@ -53,10 +62,14 @@ $(function () { enabled: false }, tickInterval: 1, + min: -0.5, + max: 1.5 }, title: { text: "Game durations" }, series: {{ stats.durations|tojson|safe }} }); + + $(".highcharts-credits").hide(); }); |
