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
b7cb4ed9
Commit
b7cb4ed9
authored
Mar 19, 2018
by
Michael Zinsmaier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding two test cases for null values
parent
eea438c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
0 deletions
+113
-0
testNullFencepost.htm
tests/testNullFencepost.htm
+59
-0
testNullSplit.htm
tests/testNullSplit.htm
+54
-0
No files found.
tests/testNullFencepost.htm
0 → 100644
View file @
b7cb4ed9
<hmtl>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
/>
<title>
CurvedLines Plugin for flot
</title>
<script
language=
"javascript"
type=
"text/javascript"
src=
"../flot/jquery.min.js"
></script>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../flot/excanvas.min.js"></script><![endif]-->
<script
language=
"javascript"
type=
"text/javascript"
src=
"../flot/jquery.flot.min.js"
></script>
<script
language=
"JavaScript"
type=
"text/javascript"
src=
"../curvedLines.js"
></script>
<script
language=
"JavaScript"
type=
"text/javascript"
src=
"_TestSetup.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"_TestSetup.css"
></link>
</head>
<body>
<div
id=
"placeholder"
style=
"width: 800;height: 400;"
></div>
<div
id=
"parameters"
style=
"width: 800"
></div>
<script
id=
"source"
language=
"javascript"
type=
"text/javascript"
>
$
(
function
()
{
//data fencepost
var
d1
=
[[
null
,
200
],
[
40
,
60
],
[
50
,
30
],
[
80
,
80
],
[
90
,
80
],
[
200
,
null
]];
//general plot options
var
options
=
{
series
:
{
curvedLines
:
{
active
:
true
}
}
};
//curved line paramters
var
defaultParameters
=
{
apply
:
true
,
legacyOverride
:
false
}
//plot function
function
replot
(
parameters
)
{
$
.
plot
(
$
(
"#placeholder"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
parameters
},
{
data
:
d1
,
points
:
{
show
:
true
}
}],
options
);
}
//combine everything
TestSetup
(
$
(
"#parameters"
),
defaultParameters
,
[
replot
])
});
</script>
</body>
</hmtl>
\ No newline at end of file
tests/testNullSplit.htm
0 → 100644
View file @
b7cb4ed9
<hmtl>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
/>
<title>
CurvedLines Plugin for flot
</title>
<script
language=
"javascript"
type=
"text/javascript"
src=
"../flot/jquery.min.js"
></script>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../flot/excanvas.min.js"></script><![endif]-->
<script
language=
"javascript"
type=
"text/javascript"
src=
"../flot/jquery.flot.min.js"
></script>
<script
language=
"JavaScript"
type=
"text/javascript"
src=
"../curvedLines.js"
></script>
<script
language=
"JavaScript"
type=
"text/javascript"
src=
"_TestSetup.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"_TestSetup.css"
></link>
</head>
<body>
<div
id=
"placeholder"
style=
"width: 800;height: 400;"
></div>
<div
id=
"parameters"
style=
"width: 800"
></div>
<script
id=
"source"
language=
"javascript"
type=
"text/javascript"
>
$
(
function
()
{
//data split
var
d1
=
[[
20
,
20
],
[
42
,
60
],
[
54
,
null
],
[
80
,
80
],
[
90
,
80
]];
//general plot options
var
options
=
{
series
:
{
curvedLines
:
{
active
:
true
}
}
};
//curved line paramters
var
defaultParameters
=
{
apply
:
true
,
legacyOverride
:
false
}
//plot function
function
replot
(
parameters
)
{
$
.
plot
(
$
(
"#placeholder"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
parameters
}],
options
);
}
//combine everything
TestSetup
(
$
(
"#parameters"
),
defaultParameters
,
[
replot
])
});
</script>
</body>
</hmtl>
\ No newline at end of file
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