car_origin_mpg_weight = {
let svg = d3.create('svg').attr('width', 800).attr('height', 300)
let center_g = svg.append('g').attr('transform', 'translate(50,50)')
center_g
.selectAll('g')
.data(cars_by_origin)
.enter()
.append('g')
.attr('class', 'sm')
.attr('transform', (d,i) => `translate(${i*250},0)`)
center_g.selectAll('.sm')
.selectAll('circle')
.data(d => d)
.enter()
.append('circle')
.attr('class', 'cardots')
center_g.selectAll('.cardots')
.attr('cx', d => 4*d.Miles_per_Gallon)
.attr('cy', d => 300-.06*d.Weight_in_lbs)
.attr('r', 4)
.attr('fill', 'none')
.attr('stroke', d3.hcl(30,50,40))
.attr('stroke-width', 2)
.attr('opacity', 0.5)
return svg.node()
}