{
var data2 = []
for(let i=0; i<10; i++){
data2.push(Math.floor(Math.random() * max)+20)
}
data2.sort((a, b) => {
return a < b ? -1 : 1
})
const div = d3.create('div')
.style('display',"flex")
.style('align-items',"end")
div.selectAll('div')
.data(data2)
.join('div')
.text((d) => `${d}点`)
.style('display', "inline-block")
.style('background-color',(d)=>`rgb(${d},${d/20},80)`)
.style('margin-right', "1px")
.style('color', "white")
.style('height', d => `${d*3}px`)
.style('width', "50px")
.style('text-align', "center")
return div.node()
}