projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump to version 2 🎉
[dygraphs.git]
/
tests
/
spacing.html
diff --git
a/tests/spacing.html
b/tests/spacing.html
index
ca84bb1
..
b88311a
100644
(file)
--- a/
tests/spacing.html
+++ b/
tests/spacing.html
@@
-1,31
+1,40
@@
+<!DOCTYPE html>
<html>
<head>
<html>
<head>
+ <link rel="stylesheet" href="../dist/dygraph.css">
<title>spacing</title>
<title>spacing</title>
- <!--[if IE]>
- <script type="text/javascript" src="excanvas.js"></script>
- <![endif]-->
- <script type="text/javascript" src="../dygraph-combined.js"></script>
- <script type="text/javascript" src="../dygraph.js"></script>
+ <script type="text/javascript" src="../dist/dygraph.js"></script>
+
<script type="text/javascript" src="data.js"></script>
</head>
<body>
<p>Wide</p>
<script type="text/javascript" src="data.js"></script>
</head>
<body>
<p>Wide</p>
- <div id="
g" style="width:6
00px; height:300px;"></div>
+ <div id="
div_g" style="width:8
00px; height:300px;"></div>
<p>Narrow</p>
<p>Narrow</p>
- <div id="g2" style="width:300px; height:200px;"></div>
+ <div id="
div_
g2" style="width:300px; height:200px;"></div>
<script type="text/javascript">
<script type="text/javascript">
- g = new DateGraph(
- document.getElementById("g"),
- data, null, {
- rollPeriod: 7
+ g = new Dygraph(
+ document.getElementById("div_g"),
+ data, {
+ rollPeriod: 7,
+ axes: {
+ y: {
+ pixelsPerLabel: 20
+ }
+ }
}
);
}
);
- g2 = new D
ateG
raph(
- document.getElementById("g2"),
- data,
null,
{
+ g2 = new D
yg
raph(
+ document.getElementById("
div_
g2"),
+ data, {
rollPeriod: 7,
rollPeriod: 7,
+ axes: {
+ y: {
+ pixelsPerLabel: 20
+ }
+ }
}
);
</script>
}
);
</script>