From 089f4d14815ee799742add57624fe057cf36a413 Mon Sep 17 00:00:00 2001 From: zhiyang7 Date: Thu, 30 Dec 2021 14:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/charts.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/charts.html b/static/charts.html index da6c605..c959452 100644 --- a/static/charts.html +++ b/static/charts.html @@ -97,7 +97,7 @@ categories = new Set() $.map(positions, function (position) { $.map(result[rank][position], function (_, frame){ - categories.add(frame) + categories.add(parseInt(frame)) }) }) categories = Array.from(categories).sort() @@ -118,9 +118,9 @@ }, data: $.map(categories, function (frame) { if (result[rank][position].hasOwnProperty(frame)) { - return [[frame, (parseFloat(result[rank][position][frame].wp) * 100)]] + return [[parseInt(frame), (parseFloat(result[rank][position][frame].wp) * 100)]] } else { - return [[frame, null]] + return [[parseInt(frame), null]] } }) }, { @@ -134,9 +134,9 @@ }, data: $.map(categories, function (frame) { if (result[rank][position].hasOwnProperty(frame)) { - return [[frame, parseFloat(result[rank][position][frame].adp)]] + return [[parseInt(frame), parseFloat(result[rank][position][frame].adp)]] } else { - return [[frame, null]] + return [[parseInt(frame), null]] } }) }]