This commit is contained in:
zhiyang7 2021-12-30 14:33:54 +08:00
parent 2898568579
commit 089f4d1481
1 changed files with 5 additions and 5 deletions

View File

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