{
const height = 600
const svg = d3.select(DOM.svg(width, height))
const margin = {left: 30, top: 10, right: 10, bottom:20 }
const xScale = d3.scaleLinear()
.range([margin.left, width-margin.right])
.domain(d3.extent(exponentialData.map(data => data.x)))
const yScale = d3.scaleLinear()
.range([height-margin.bottom, margin.top])
.domain(d3.extent(exponentialData.map(data => data.y)))
svg.append('g')
.call(d3.axisBottom(xScale))
.attr('transform',`translate(0, ${height-margin.bottom})`)
svg.append('g')
.call(d3.axisLeft(yScale))
.attr('transform', `translate(${margin.left},0)`)
svg.selectAll('circle')
.data(exponentialData)
.enter()
.append('circle')
.attr('cx', d=>xScale(d.x))
.attr('cy', d=>yScale(d.y))
.attr('r', 10)
.attr('fill', 'SteelBlue')
return svg.node()
}