Skip to content

Instantly share code, notes, and snippets.

Created Jul 26, 2012
What would you like to do?
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<style type="text/css">
path {
fill: none;
stroke: black;
<script type="text/javascript" src=""></script>
<script type="text/javascript">
var data = [
{date: new Date(2012,1,1)},
{date: new Date(2012,5,1)}
var xExtent = d3.extent(data, function (d) {
var xScale = xScale = d3.time.scale()
.range([0, 700]);
var xAxis = d3.svg.axis()
var svg ="body").append("svg")
.attr("width", 700)
.attr("height", 50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment