Skip to content

Commit

Permalink
fix(eighth): correct stats dates
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFish232 committed Jun 10, 2024
1 parent 94f02ed commit 3fd1236
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions intranet/static/js/eighth/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ $(document).ready(function() {
datasets: [{
label: "A Block",
backgroundColor: "rgba(200,100,100,0.5)",
data: $.map(parsedData, function(v) {
return "A" in v[1] ? v[1].A : null;
data: parsedData.filter((v) => "A" in v[1]).map((v) => {
return {x: v[0]._i, y: v[1].A};
})
}, {
label: "B Block",
backgroundColor: "rgba(100,100,200,0.5)",
data: $.map(parsedData, function(v) {
return "B" in v[1] ? v[1].B : null;
data: parsedData.filter((v) => "B" in v[1]).map((v) => {
return {x: v[0]._i, y: v[1].B};
})
}]
};
Expand Down

0 comments on commit 3fd1236

Please sign in to comment.