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
3db2c2ee
Commit
3db2c2ee
authored
Oct 20, 2014
by
Michael Zinsmaier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API break refactored the code to prepare it for a new algorithmic core
parent
3fa41abe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
304 additions
and
268 deletions
+304
-268
curvedLines.js
curvedLines.js
+270
-251
Issue18.htm
tests/Issue18.htm
+10
-6
Issue19.htm
tests/Issue19.htm
+5
-1
testDate.htm
tests/testDate.htm
+2
-0
testExample.htm
tests/testExample.htm
+1
-1
testExampleFillMultiAxis.htm
tests/testExampleFillMultiAxis.htm
+2
-2
testExampleFit.htm
tests/testExampleFit.htm
+6
-2
testSaddlePoint.htm
tests/testSaddlePoint.htm
+1
-1
testSinglePoint.htm
tests/testSinglePoint.htm
+2
-1
testThreshold.htm
tests/testThreshold.htm
+2
-1
testTooltip.htm
tests/testTooltip.htm
+2
-1
testZeroDrop.htm
tests/testZeroDrop.htm
+1
-1
No files found.
curvedLines.js
View file @
3db2c2ee
This diff is collapsed.
Click to expand it.
tests/Issue18.htm
View file @
3db2c2ee
...
@@ -121,10 +121,12 @@
...
@@ -121,10 +121,12 @@
},
},
curvedLines
:
{
curvedLines
:
{
apply
:
true
,
apply
:
true
,
legacyOverride
:
{
/*play with parameters (lines)*/
/*play with parameters (lines)*/
//fitPointDist: 86400,
//fitPointDist: 86400,
//curvePointFactor: 200,
//curvePointFactor: 200,
fit
:
true
fit
:
true
}
},
},
clickable
:
false
,
clickable
:
false
,
hoverable
:
false
,
hoverable
:
false
,
...
@@ -138,10 +140,12 @@
...
@@ -138,10 +140,12 @@
},
},
curvedLines
:
{
curvedLines
:
{
apply
:
true
,
apply
:
true
,
legacyOverride
:
{
/*play with parameters (points)*/
/*play with parameters (points)*/
//fitPointDist: 86400,
//fitPointDist: 86400,
//curvePointFactor: 200,
//curvePointFactor: 200,
fit
:
true
fit
:
true
}
},
},
color
:
'#FF0000'
color
:
'#FF0000'
};
};
...
...
tests/Issue19.htm
View file @
3db2c2ee
...
@@ -47,7 +47,11 @@ $(function() {
...
@@ -47,7 +47,11 @@ $(function() {
],
],
{
{
series
:
{
series
:
{
curvedLines
:
{
active
:
true
,
fit
:
true
}
curvedLines
:
{
active
:
true
,
apply
:
true
,
legacyOverride
:
{
fit
:
true
}
}
}
}
}
}
);
);
...
...
tests/testDate.htm
View file @
3db2c2ee
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
},
},
curvedLines
:
{
curvedLines
:
{
apply
:
true
,
apply
:
true
,
legacyOverride
:
true
}
}
},
{
},
{
data
:
d1
,
data
:
d1
,
...
@@ -87,6 +88,7 @@
...
@@ -87,6 +88,7 @@
},
},
curvedLines
:
{
curvedLines
:
{
apply
:
true
,
apply
:
true
,
legacyOverride
:
true
}
}
},
{
},
{
data
:
d1
,
data
:
d1
,
...
...
tests/testExample.htm
View file @
3db2c2ee
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
yaxis
:
{
min
:
10
,
max
:
90
}
yaxis
:
{
min
:
10
,
max
:
90
}
};
};
$
.
plot
(
$
(
"#flotOrig"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
$
.
plot
(
$
(
"#flotOrig"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
,
legacyOverride
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
});
});
</script>
</script>
</body>
</body>
...
...
tests/testExampleFillMultiAxis.htm
View file @
3db2c2ee
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
$
.
plot
(
$
(
"#fillAndMultiAxis"
),
$
.
plot
(
$
(
"#fillAndMultiAxis"
),
[
[
{
data
:
d1
,
lines
:
{
show
:
true
,
fill
:
true
,
fillColor
:
"rgba(195, 195, 195, 0.4)"
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}},
{
data
:
d1
,
lines
:
{
show
:
true
,
fill
:
true
,
fillColor
:
"rgba(195, 195, 195, 0.4)"
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
,
legacyOverride
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}},
{
data
:
d2
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
},
yaxis
:
2
},
{
data
:
d2
,
points
:
{
show
:
true
},
yaxis
:
2
}
{
data
:
d2
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
,
legacyOverride
:
true
},
yaxis
:
2
},
{
data
:
d2
,
points
:
{
show
:
true
},
yaxis
:
2
}
],
options
);
],
options
);
});
});
</script>
</script>
...
...
tests/testExampleFit.htm
View file @
3db2c2ee
...
@@ -36,9 +36,13 @@
...
@@ -36,9 +36,13 @@
show
:
true
,
show
:
true
,
lineWidth
:
3
lineWidth
:
3
},
},
curvedLines
:
{
apply
:
true
,
curvedLines
:
fit
:
true
,
{
apply
:
true
,
legacyOverride
:
{
fit
:
true
,
}
}
}
},
{
},
{
data
:
d1
,
data
:
d1
,
points
:
{
points
:
{
...
...
tests/testSaddlePoint.htm
View file @
3db2c2ee
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
yaxis
:
{
min
:
10
,
max
:
45
}
yaxis
:
{
min
:
10
,
max
:
45
}
};
};
$
.
plot
(
$
(
"#flotOrig"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
$
.
plot
(
$
(
"#flotOrig"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
,
legacyOverride
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
});
});
</script>
</script>
</body>
</body>
...
...
tests/testSinglePoint.htm
View file @
3db2c2ee
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
show
:
true
show
:
true
},
},
curvedLines
:
{
curvedLines
:
{
apply
:
true
apply
:
true
,
legacyOverride
:
true
}
}
},
{
},
{
data
:
d1
,
data
:
d1
,
...
...
tests/testThreshold.htm
View file @
3db2c2ee
...
@@ -41,7 +41,8 @@
...
@@ -41,7 +41,8 @@
lineWidth
:
3
lineWidth
:
3
},
},
curvedLines
:
{
curvedLines
:
{
apply
:
true
apply
:
true
,
legacyOverride
:
true
}
}
},
{
},
{
data
:
d1
,
data
:
d1
,
...
...
tests/testTooltip.htm
View file @
3db2c2ee
...
@@ -50,7 +50,8 @@ $(function () {
...
@@ -50,7 +50,8 @@ $(function () {
//general options
//general options
var
options
=
{
var
options
=
{
series
:
{
curvedLines
:
{
series
:
{
curvedLines
:
{
active
:
true
active
:
true
,
legacyOverride
:
true
},
},
lines
:
{
lineWidth
:
5
},
lines
:
{
lineWidth
:
5
},
points
:
{
radius
:
4
}
points
:
{
radius
:
4
}
...
...
tests/testZeroDrop.htm
View file @
3db2c2ee
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
yaxis
:
{
min
:
0
,
max
:
10
}
yaxis
:
{
min
:
0
,
max
:
10
}
};
};
$
.
plot
(
$
(
"#flotOrig"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
$
.
plot
(
$
(
"#flotOrig"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
,
legacyOverride
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
});
});
</script>
</script>
</body>
</body>
...
...
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