function createContainer(parent, config, data) {
    var cont = d3.select(parent)
      .append('div')
        .attr('style', formatString('height: {0}em', data.length * 4))
      .append('svg:svg')
        .attr('width', '100%')
        .attr('height', '100%')
        .attr('viewBox', formatString('0 0 {0} {1}', config.width, config.height))
        .attr('preserveAspectRatio', 'none'); // 'xMidYMid meet' if you want to preserve aspect ratio

    return cont;
  }
// Creates the container for the chart.
Creates the container for the chart.
Creates the container for the chart .
function createContainer(parent, config, data) {
    var cont = d3.select(parent)
      .append('div')
        .attr('style', formatString('height: {0}em', data.length * 4))
      .append('svg:svg')
        .attr('width', '100%')
        .attr('height', '100%')
        .attr('viewBox', formatString('0 0 {0} {1}', config.width, config.height))
        .attr('preserveAspectRatio', 'none'); 
    return cont;
  }
function createContainer ( parent , config , data ) { var cont = d3 . select ( parent ) . append ( 'div' ) . attr ( 'style' , formatString ( 'height: {0}em' , data . length * 4 ) ) . append ( 'svg:svg' ) . attr ( 'width' , '100%' ) . attr ( 'height' , '100%' ) . attr ( 'viewBox' , formatString ( '0 0 {0} {1}' , config . width , config . height ) ) . attr ( 'preserveAspectRatio' , 'none' ) ; return cont ; }
Creates the container for the chart.
Creates the container for the chart .
// 'xMidYMid meet' if you want to preserve aspect ratio