drawOutputScore = (d, i, g, scale) => {
  let group = d3.select(g[i]);
  group.select('rect.output-rect')
    .transition('output')
    .delay(500)
    .duration(800)
    .ease(d3.easeCubicIn)
    .attr('width', scale(d.output))
}
Draw bar chart to encode the output value
@param {object} d d3 data
@param {index} i d3 data index
@param {[object]} g d3 group
@param {function} scale map value to length