The simplest example of an axes where the x axis if for a date range.
See it running at http://bl.ocks.org/3059392
Tips on tidying up the look, formatting labels etc here: http://alignedleft.com/tutorials/d3/axes/
This presentation also has good example of simple axes http://lws.node3.org/#landing-slide
Understanding scales - http://www.jeromecukier.net/blog/2011/08/11/d3-scales-and-color/
Fuller example here: https://gist.github.com/3061203