text: var SINE_CYCLE_2=function(){var t=600,a=100,r={top:0,right:0,bottom:0,left:0},e=d3.select("#sinecycle2");t-r.left-r.right,a-r.top-r.bottom;var i=d3.scale.linear().range([0,t]);i.domain([0,8*Math.PI]);var s=d3.scale.linear().range([a,0]);s.domain([-1,1]);var n=d3.range(0,8*Math.PI,.01),l=d3.svg.line().x(function(t){return i(t)+1}).y(function(t){return s(.9*Math.sin(t))});e.append("svg:rect").attr("fill","grey").style("opacity",.1).attr("x",0).attr("y",0).attr("width",i(2*Math.PI)).attr("height",s(-1)-s(1));var c=d3.svg.axis().scale(i).tickSize(10).tickValues([2*Math.PI,4*Math.PI,6*Math.PI,8*Math.PI]).tickFormat(function(t){return t/(8*Math.PI)+" s"}).tickSubdivide(!0),o=d3.svg.axis().scale(s).tickSize(0).ticks(0).orient("left").tickSubdivide(!0);e.append("svg:g").attr("class","x axis").attr("transform","translate(0,"+s(0)+")").style("opacity",.35).call(c),e.append("svg:g").attr("class","y axis").attr("transform","translate(0,0)").style("opacity",.35).call(o),e.append("svg:path").attr("stroke-width",2).attr("stroke","steelblue").attr("fill","none").attr("opacity",1).attr("d",l(n))}();