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
84d7785c
Commit
84d7785c
authored
Apr 25, 2013
by
MichaelZinsmaier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix to stay compatible with flot 0.8
parent
f277e912
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
362 additions
and
363 deletions
+362
-363
curvedLines.js
curvedLines.js
+362
-363
No files found.
curvedLines.js
View file @
84d7785c
...
@@ -60,10 +60,9 @@
...
@@ -60,10 +60,9 @@
active: bool true => plugin can be used
active: bool true => plugin can be used
apply: bool true => series will be drawn as curved line
apply: bool true => series will be drawn as curved line
fit: bool true => forces the max,mins of the curve to be on the datapoints
fit: bool true => forces the max,mins of the curve to be on the datapoints
curvePointFactor
number defines how many "virtual" points are used per "real" data point to
curvePointFactor
int defines how many "virtual" points are used per "real" data point to
emulate the curvedLines
emulate the curvedLines
fitPointDist: number guessed by default can be set manually.
fitPointDist: int defines the x axis distance of the additional two points that are used
defines the x axis distance of the additional two points that are used
to enforce the min max condition. (you will get curvePointFactor * 3 * |datapoints|
to enforce the min max condition. (you will get curvePointFactor * 3 * |datapoints|
"virtual" points if fit is true)
"virtual" points if fit is true)
...
@@ -151,7 +150,7 @@
...
@@ -151,7 +150,7 @@
newSerie
.
lines
=
$
.
extend
({},
series
.
lines
);
newSerie
.
lines
=
$
.
extend
({},
series
.
lines
);
newSerie
.
lines
.
fill
=
undefined
;
newSerie
.
lines
.
fill
=
undefined
;
newSerie
.
label
=
undefined
;
newSerie
.
label
=
undefined
;
newSerie
.
datapoints
=
{};
newSerie
.
datapoints
=
$
.
extend
({},
series
.
datapoints
);
//Redefine datapoints to top only (else it can have null values which will open the cruve !)
//Redefine datapoints to top only (else it can have null values which will open the cruve !)
newSerie
.
datapoints
.
points
=
pointsTop
;
newSerie
.
datapoints
.
points
=
pointsTop
;
newSerie
.
datapoints
.
pointsize
=
2
;
newSerie
.
datapoints
.
pointsize
=
2
;
...
...
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