makeChart1 = (dataset) => {
dataset.sort((a,b) => b.downloads - a.downloads);
const chart = d3.create('svg')
.attr('width', w)
.attr('height', h);
chart.selectAll('rect')
.data(dataset)
.enter()
.append('rect')
.attr('x', 80)
.attr('y', (d) => yScale(d.app_name))
.attr('width', (d) => 0)
.attr('height', 20)
.attr('fill', '#88d')
.transition('displaydata')
.delay((d,i) => 35 * i)
.attr('width', (d) => xScale(d.downloads))
.attr('fill', (d) => colorScale(d.downloads))
.transition('staticfill')
.delay((d,i) => 35 * i)
.attr('fill', '#88d')
.transition('scaledfill')
.delay((d,i) => 35 * i)
.attr('fill', (d) => colorScale(d.downloads))
chart.append('g')
.classed('axis', true)
.attr('transform', `translate(80, ${h - 20})`)
.call(d3.axisBottom(xScale));
chart.append('g')
.classed('axis', true)
.attr('transform', `translate(80,0)`)
.call(d3.axisLeft(yScale));
return chart.node()
}