入力ドメインを出力範囲にスケーリングするために d3.scale.linear() を使用しています。私はこのドキュメントを見ました
http://alignedleft.com/tutorials/d3/scales
これまでのところ
//here I am declaring the domain and range by passing the max, min as parameters
var rScale = d3.scale.linear()
.domain('min', 'max')
.range('10', '250');
最大値と最小値を事前に計算して変数に保存し、それらの変数をパラメーターとしてドメインと範囲に渡します
次に、rScale をパラメータとして円の属性に渡します。.attr('r',rScale)
私が間違っていることを理解できないようです
これが私のフィドルです