Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
CurvedLines
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
CurvedLines
Commits
552fc797
Commit
552fc797
authored
Sep 21, 2013
by
Michael
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14 from scivisum/fix_missing_data_crash
Return "empty array" rather than "null" if data is missing
parents
bee6f09b
283a92bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
curvedLines.js
curvedLines.js
+2
-2
No files found.
curvedLines.js
View file @
552fc797
...
...
@@ -290,7 +290,7 @@
for
(
var
i
=
1
;
i
<
n
-
1
;
++
i
)
{
var
d
=
(
xdata
[
i
+
1
]
-
xdata
[
i
-
1
]);
if
(
d
==
0
)
{
return
null
;
return
[]
;
}
var
s
=
(
xdata
[
i
]
-
xdata
[
i
-
1
])
/
d
;
...
...
@@ -334,7 +334,7 @@
var
h
=
(
xdata
[
max
]
-
xdata
[
min
]);
if
(
h
==
0
)
{
return
null
;
return
[]
;
}
var
a
=
(
xdata
[
max
]
-
xnew
[
j
])
/
h
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment