From 778e74bbf1f43b7703d1c3230a0a88b5c5f9f573 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 15 Jan 2017 22:43:52 +0100 Subject: dashboard: more stats --- examples/dashboard/templates/stats.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'examples/dashboard/templates/stats.js') 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(); }); -- cgit v1.3.1