chart = {
const xScale = d3.scaleLinear([ -width/2, width/2 ], [ -width/2, width/2 ])
const yScale = d3.scaleLinear([ -height/2, height/2 ], [ -height/2, height/2 ])
const svg = d3.create('svg')
.attr('width', width)
.attr('height', height)
.property("value", []);
const contenedor = svg.append('g')
.attr('class', 'container')
.attr('transform', `translate(${ width/2 },${ height/2 })`)
const points = contenedor.selectAll('circle.point')
.data(data)
.enter()
.append('circle')
.attr('class', 'point')
.attr('cx', d => xScale(d.x))
.attr('cy', d => yScale(d.y))
.attr('r', 8)
.style('fill', color)
.style('opacity', 0.8)
const xAxis = d3.axisBottom(xScale)
contenedor.append('g').call(xAxis)
const yAxis = d3.axisLeft(yScale)
contenedor.append('g').call(yAxis)
contenedor.selectAll('.tick text').remove()
return svg.node()
}