forked from gji/g3.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.html
More file actions
executable file
·77 lines (65 loc) · 1.28 KB
/
sample.html
File metadata and controls
executable file
·77 lines (65 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.graph {
width: 1280px;
display: block;
margin: 0 auto;
position: relative;
}
.line {shape-rendering: crispEdges; fill: none;}
.plot {
fill: none;
stroke-width: 1px;
shape-rendering: crispEdges;
}
/*#g0 .plot {stroke: steelblue;}
#g1 .plot {stroke: steelblue;}
#g2 .plot {stroke: red;}
#g3 .plot {stroke: red;}*/
.cursor {
fill: none;
stroke: black;
stroke-width: 1px;
opacity: 0.5;
shape-rendering: crispEdges;
z-index: 999;
}
.cpos {
display: block;
position: absolute;
text-align: right;
right: 20px;
}
.cpos .info {
font-size: 3em;
color: black;
vertical-align: top
}
</style>
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<script src="../graph2.js"></script>
<script>
var graph1 = new Graph({
dataSrc:'data.php',
dataNames: ['rand'],
dataDescs: ['Just some random data'],
w:1280,
h: 150,
startI: 100,
rounder: 1,
margins: {top: 20, right: 20, bottom: 30, left: 50},
});
</script>
<div id="g0"></div>
</body>