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]] } }) }]