     const texts = g.selectAll('.datatext').data(data).join('text')
        .attr('class', 'datatext').text(d => d.value)
        .attr('y', d => yScale(d.name) + 5 + yScale.bandwidth() / 2)

        var formatPercent = d3.format(".2f");

        (async () => {
          while(true){
            data.forEach(d => {
                d.value = Math.random() * 20;
            });
            let transition = d3.transition().ease(d3.easeElastic)//.ease(d3.easeLinear) // we can optionally alter 'ease'; 
         