Skip to content

Commit

Permalink
Fix handling of nulls in auto-axis
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Jan 24, 2022
1 parent 8c71a59 commit 218cf95
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Removed superfluous features to simplify code base.
Fixed handling of `null` values when calculating auto-axis range.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "advantage-scope",
"productName": "Advantage Scope",
"version": "1.13.1",
"version": "1.13.2",
"description": "Logging tool from FRC Team 6328.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions www/modules/tabControllers/lineGraphController.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ export class LineGraphController {
function arrayMin(arr) {
var len = arr.length, min = Infinity;
while (len--) {
if (arr[len] == null) continue
if (arr[len] < min) {
min = arr[len];
}
Expand All @@ -581,6 +582,7 @@ export class LineGraphController {
function arrayMax(arr) {
var len = arr.length, max = -Infinity;
while (len--) {
if (arr[len] == null) continue
if (arr[len] > max) {
max = arr[len];
}
Expand Down

0 comments on commit 218cf95

Please sign in to comment.