Good reply, @bgchen!
@arinbasu, Here’s a suggestion you can merge with the minimal set of changes I recommend:
Specifically:
- Pin the major version of D3.
- Avoid side-effects by combining cells where appropriate.
- Use selection.join instead of selection.enter + selection.append.
- Append your axes to a new group (G) element, not each circle.
- Translate your axes into the desired position, or set overflow: visible.