test
✓ Published0🌍 Public
This example shows a force-directed scatterplot of country data, where each circle represents a country and its horizontal position reflects a chosen numeric measure (like per-capita values). Buttons let the user switch between linear and log scales, animating the circles to their new positions. The visualization uses `d3.forceSimulation` with `forceX`, `forceY`, and `forceCollide` to position the circles, while `scaleLinear` and `scaleLog` define the axes. Circles are colored by continent, and hovering reveals a tooltip with details, plus a dashed vertical guide line. Rendering is SVG with transitions.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed