That is because the domain of your x scale is from 10 to 90. In the case of the first circle, it’s radius divided by 2 is 8. When 8 is passed through the x scale, it ends up negative because x’s domain starts at 10. If you really want to encode the radius of the circle with half the value of the size key, don’t pass it through the x scale.
However, it is often better to encode the area of the circle with the value of interest. See here.
Andy
--
You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.