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
bb64fec4
Commit
bb64fec4
authored
Jan 05, 2013
by
MichaelZinsmaier
Browse files
Options
Browse Files
Download
Plain Diff
v0.5 api break
parents
fb596bd5
3c5463a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
266 additions
and
344 deletions
+266
-344
curvedLines.js
curvedLines.js
+251
-325
example.js
example.js
+5
-6
exampleFillMultiAxis.js
exampleFillMultiAxis.js
+5
-7
exampleFit.js
exampleFit.js
+5
-6
No files found.
curvedLines.js
View file @
bb64fec4
This diff is collapsed.
Click to expand it.
example.js
View file @
bb64fec4
<
div
id
=
"flotOrig"
><
/div
>
<
script
id
=
"source"
language
=
"javascript"
type
=
"text/javascript"
>
$
(
function
()
{
//<div id="flotOrig" style="width: 800;height: 400;"></div>
var
d1
=
[[
20
,
20
],
[
42
,
60
],
[
54
,
20
],
[
80
,
80
]];
var
options
=
{
series
:
{
...
...
@@ -14,6 +14,5 @@ $(function () {
yaxis
:
{
min
:
10
,
max
:
90
}
};
$
.
plot
(
$
(
"#flotOrig"
),
[{
data
:
d1
,
curvedLines
:
{
show
:
true
,
lineWidth
:
3
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
});
<
/script>
\ No newline at end of file
$
.
plot
(
$
(
"#flotOrig"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
});
\ No newline at end of file
exampleFillMultiAxis.js
View file @
bb64fec4
<
div
id
=
"fillAndMultiAxis"
><
/div
>
<
script
id
=
"source"
language
=
"javascript"
type
=
"text/javascript"
>
$
(
function
()
{
//<div id="fillAndMultiAxis" style="width: 800;height: 400;"></div>
var
d1
=
[[
20
,
20
],
[
42
,
60
],
[
54
,
20
],
[
80
,
80
]];
var
d2
=
[[
20
,
700
],
[
80
,
300
]];
...
...
@@ -17,8 +16,7 @@
$
.
plot
(
$
(
"#fillAndMultiAxis"
),
[
{
data
:
d1
,
curvedLines
:
{
show
:
true
,
fill
:
true
,
fillColor
:
"#C3C3C3"
,
lineWidth
:
3
}},
{
data
:
d1
,
points
:
{
show
:
true
}},
{
data
:
d2
,
curvedLines
:
{
show
:
true
,
lineWidth
:
3
},
yaxis
:
2
},
{
data
:
d2
,
points
:
{
show
:
true
},
yaxis
:
2
}
{
data
:
d1
,
lines
:
{
show
:
true
,
fill
:
true
,
fillColor
:
"#C3C3C3"
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
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
}
],
options
);
});
<
/script>
\ No newline at end of file
});
\ No newline at end of file
exampleFit.js
View file @
bb64fec4
<
div
id
=
"flotFit"
><
/div
>
<
script
id
=
"source"
language
=
"javascript"
type
=
"text/javascript"
>
$
(
function
()
{
//<div id="flotFit" style="width: 800;height: 400;"></div>
var
d1
=
[[
20
,
20
],
[
42
,
60
],
[
54
,
30
],
[
80
,
80
]];
var
options
=
{
series
:
{
...
...
@@ -13,6 +13,5 @@ $(function () {
yaxis
:
{
min
:
10
,
max
:
90
}
};
$
.
plot
(
$
(
"#flotFit"
),
[{
data
:
d1
,
curvedLines
:
{
show
:
true
,
fit
:
true
,
fitPointDist
:
0.000001
,
lineWidth
:
3
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
});
<
/script>
\ No newline at end of file
$
.
plot
(
$
(
"#flotFit"
),
[{
data
:
d1
,
lines
:
{
show
:
true
,
lineWidth
:
3
},
curvedLines
:
{
apply
:
true
,
fit
:
true
,
fitPointDist
:
0.000001
}},
{
data
:
d1
,
points
:
{
show
:
true
}}],
options
);
});
\ 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