Accepted answer

I've edited your fiddle a bit to make it work:

Basicly what i've done:

fix the color scheme

var colors = d3.scale.category10();

instead of

var colors = d3.scale.ordinal(d3.schemeCategory10);

added data to path


change radius to

  .radius(function(d, i) {
        return d;

since You used something like return scaledData(d.value); where your scaledData is an array.

Related Query

More Query from same tag