This commit is contained in:
parent
2898568579
commit
089f4d1481
|
@ -97,7 +97,7 @@
|
||||||
categories = new Set()
|
categories = new Set()
|
||||||
$.map(positions, function (position) {
|
$.map(positions, function (position) {
|
||||||
$.map(result[rank][position], function (_, frame){
|
$.map(result[rank][position], function (_, frame){
|
||||||
categories.add(frame)
|
categories.add(parseInt(frame))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
categories = Array.from(categories).sort()
|
categories = Array.from(categories).sort()
|
||||||
|
@ -118,9 +118,9 @@
|
||||||
},
|
},
|
||||||
data: $.map(categories, function (frame) {
|
data: $.map(categories, function (frame) {
|
||||||
if (result[rank][position].hasOwnProperty(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 {
|
} else {
|
||||||
return [[frame, null]]
|
return [[parseInt(frame), null]]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, {
|
}, {
|
||||||
|
@ -134,9 +134,9 @@
|
||||||
},
|
},
|
||||||
data: $.map(categories, function (frame) {
|
data: $.map(categories, function (frame) {
|
||||||
if (result[rank][position].hasOwnProperty(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 {
|
} else {
|
||||||
return [[frame, null]]
|
return [[parseInt(frame), null]]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in New Issue