{
var svgDims = [600,300]
var svg = d3.select(DOM.svg(svgDims[0],svgDims[1])).attr("style","background:white;border:1px solid black")
var xScale = d3.scaleLinear().domain([-10,10]).range([30,570])
var yScale = d3.scaleLinear().domain([-1,1]).range([270,30])
var xAxis = svg.append("g").attr("transform","translate(0,150)")
d3.axisBottom(xScale)(xAxis)
var yAxis = svg.append("g").attr("transform","translate(300,0)")
d3.axisLeft(yScale)(yAxis)
var pathData = d3.line().x(d => xScale(d.x)).y(d => yScale(d.y))(data2)
svg.append("path").attr("stroke","black").attr("fill","none").attr("d",pathData)
return svg.node()
}