function addBars(parent, config, data) {
    var bars = parent.selectAll('g.bars')
      .data(data)
      .enter()
        .append('svg:g')
          .attr('transform', function (d, i) { return formatString('translate(0, {0})', config.y(i)); })
        .append('svg:rect')
          .attr('class', function (d, i) { return 'bar' + (d.slowest ? ' slowest' : '') + (d.fastest ? ' fastest' : ''); })
          .attr('x', config.left)
          .attr('width', function (d, i) { return config.x(d.value); })
          .attr('height', config.y.rangeBand());

    return bars;
  }
// Adds the bars to the chart.
Adds the bars to the chart.
Adds the bars to the chart .
function addBars(parent, config, data) {
    var bars = parent.selectAll('g.bars')
      .data(data)
      .enter()
        .append('svg:g')
          .attr('transform', function (d, i) { return formatString('translate(0, {0})', config.y(i)); })
        .append('svg:rect')
          .attr('class', function (d, i) { return 'bar' + (d.slowest ? ' slowest' : '') + (d.fastest ? ' fastest' : ''); })
          .attr('x', config.left)
          .attr('width', function (d, i) { return config.x(d.value); })
          .attr('height', config.y.rangeBand());
    return bars;
  }
function addBars ( parent , config , data ) { var bars = parent . selectAll ( 'g.bars' ) . data ( data ) . enter ( ) . append ( 'svg:g' ) . attr ( 'transform' , function ( d , i ) { return formatString ( 'translate(0, {0})' , config . y ( i ) ) ; } ) . append ( 'svg:rect' ) . attr ( 'class' , function ( d , i ) { return 'bar' + ( d . slowest ? ' slowest' : '' ) + ( d . fastest ? ' fastest' : '' ) ; } ) . attr ( 'x' , config . left ) . attr ( 'width' , function ( d , i ) { return config . x ( d . value ) ; } ) . attr ( 'height' , config . y . rangeBand ( ) ) ; return bars ; }
Adds the bars to the chart.
Adds the bars to the chart .