nv.addGraph(function() {
var chart = nv.models.scatterChart()
.showDistX(true)
.sizeRange([1000, 100])
.showDistY(true)
.color(d3.scale.category10().range());
chart.xAxis.tickFormat(d3.format('.02f'));
chart.yAxis.tickFormat(d3.format('.02f'));
d3.select('#chart svg')
.datum(data(4,40))
.transition().duration(500)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
.sizeRange([minArea, maxArea])
:.sizeRange([1000, 100])