{
const width = 200
const height = 200
const svg = d3.select(DOM.svg(width, height))
const arrayOfNumbers = [10, 70, 100, 40]
const colorScale = d3.scaleLinear().domain([d3.min(arrayOfNumbers), d3.max(arrayOfNumbers)]).range(['blue', 'red'])
svg.selectAll('rect')
.data(arrayOfNumbers)
.enter()
.append('rect')
.attr('x', (d, itemsIndexInArray) => itemsIndexInArray * 10)
.attr('y', d => height - d)
.attr('width', 8)
.attr('height', arrayItemTypicallyNamed_d => arrayItemTypicallyNamed_d)
.attr('fill', colorScale)
return svg.node()
}