summaryrefslogtreecommitdiff
path: root/examples/graph-types.html
diff options
context:
space:
mode:
authorFrank Wuerthwein <fkw@ucsd.edu>2009-03-14 20:01:55 -0400
committerFrank Wuerthwein <fkw@ucsd.edu>2009-03-14 20:01:55 -0400
commit1fd4de1b25398954e9ab43e54d0d0fdf1b5cfce0 (patch)
tree57e8b2919f9ea6a66f339433e5dab41fbdedc86c /examples/graph-types.html
parent7385ff9506ea6db4c07150ee1b56e436cf384918 (diff)
flot-0.6pre@147
Diffstat (limited to 'examples/graph-types.html')
-rw-r--r--examples/graph-types.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/examples/graph-types.html b/examples/graph-types.html
index 64aa0e9..b3c3818 100644
--- a/examples/graph-types.html
+++ b/examples/graph-types.html
@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Flot Examples</title>
<link href="layout.css" rel="stylesheet" type="text/css"></link>
- <!--[if IE]><script language="javascript" type="text/javascript" src="../excanvas.pack.js"></script><![endif]-->
+ <!--[if IE]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="../jquery.js"></script>
<script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
</head>
@@ -36,7 +36,11 @@ $(function () {
var d5 = [];
for (var i = 0; i < 14; i += 0.5)
d5.push([i, Math.sqrt(i)]);
-
+
+ var d6 = [];
+ for (var i = 0; i < 14; i += 0.5 + Math.random())
+ d6.push([i, Math.sqrt(2*i + Math.sin(i) + 5)]);
+
$.plot($("#placeholder"), [
{
data: d1,
@@ -58,6 +62,10 @@ $(function () {
data: d5,
lines: { show: true },
points: { show: true }
+ },
+ {
+ data: d6,
+ lines: { show: true, steps: true }
}
]);
});