forked from devsar/d3talk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharea-ggplot-code.html
34 lines (32 loc) · 933 Bytes
/
area-ggplot-code.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
</head>
<body>
<div id="body">
<pre style="margin-left:80px;font-size:36px;"><code>
// converts dates to pixel coordinates
var x = d3.time.scale()…;
// draw major and minor grid lines
svg.append("svg:g")
.attr("class", "x grid")
.attr("transform", "translate(0," + h + ")")
.call(xAxis.tickSubdivide(1).tickSize(-h));
// draw major ticks
svg.append("svg:g")
.attr("class", "x axis")
.attr("transform", "translate(0," + h + ")")
.call(xAxis.tickSubdivide(0).tickSize(6));
</code></pre>
<div id="footer">
scales and axes
<div class="hint">
composable pieces for visualization
</div>
</div>
</div>
<script type="text/javascript" src="hijs/hi.js"></script>
</body>
</html>