 {
  chart = nv.models.scatterPlusLineChart()
                .showDistX(true)
                .showDistY(true)
                .transitionDuration(300)
                .color(d3.scale.category10().range());

  chart.dispatch.on('renderEnd', function(){
    console.log('render complete');
  });

  chart.xAxis.tickFormat(d3.format('.02f'))
  chart.yAxis.tickFormat(d3.format('.02f'))

  d3.select('#test1 svg')
      .datum(nv.log(randomData(4,40)))
      .call(chart);

  nv.utils.windowResize(chart.update);

