projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove extra log
[dygraphs.git]
/
tests
/
noise.html
diff --git
a/tests/noise.html
b/tests/noise.html
index
ed46844
..
4ddb492
100644
(file)
--- a/
tests/noise.html
+++ b/
tests/noise.html
@@
-1,32
+1,47
@@
+<!DOCTYPE html>
<html>
<head>
<html>
<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
<title>noise</title>
<!--[if IE]>
<title>noise</title>
<!--[if IE]>
- <script type="text/javascript" src="excanvas.js"></script>
+ <script type="text/javascript" src="
../
excanvas.js"></script>
<![endif]-->
<![endif]-->
- <script type="text/javascript" src="../dygraph-combined.js"></script>
- <script type="text/javascript" src="../dygraph.js"></script>
+ <!--
+ For production (minified) code, use:
+ <script type="text/javascript" src="dygraph-combined.js"></script>
+ -->
+ <script type="text/javascript" src="../dygraph-dev.js"></script>
+
<script type="text/javascript" src="data.js"></script>
</head>
<body>
<script type="text/javascript" src="data.js"></script>
</head>
<body>
- <p>7-day rollup:</p>
- <div id="g" style="width:600px; height:300px;"></div>
- <p>14-Day Rollup:</p>
- <div id="g30" style="width:600px; height:300px;"></div>
+ <div id="div_g" style="width:600px; height:300px;"></div>
+ <br/>
+ <div id="div_g30" style="width:600px; height:300px;"></div>
<script type="text/javascript">
<script type="text/javascript">
- g = new D
ateG
raph(
- document.getElementById("g"),
- NoisyData,
null,
{
+ g = new D
yg
raph(
+ document.getElementById("
div_
g"),
+ NoisyData, {
rollPeriod: 7,
rollPeriod: 7,
- errorBars: true
+ errorBars: true,
+ legend: 'always',
+ ylabel: 'Percent Error',
+ title: 'Error Rates over Time (7-day rollup)'
}
);
}
);
- g30 = new D
ateG
raph(
- document.getElementById("g30"),
- NoisyData
, null
, {
+ g30 = new D
yg
raph(
+ document.getElementById("
div_
g30"),
+ NoisyData
().replace(/,/g, "\t")
, {
rollPeriod: 14,
rollPeriod: 14,
- errorBars: true
+ errorBars: true,
+ legend: 'always',
+ labelsDivStyles: {
+ 'textAlign': 'right',
+ },
+ labelsDivWidth: 170,
+ ylabel: 'Percent Error',
+ title: 'Error Rates over Time (14-day rollup)'
}
);
</script>
}
);
</script>