Skip to main content

Send feedback

Tell us what works and what could be better. We read every submission.

Send feedback

Tell us what works and what could be better. We read every submission.

A

adamjanes

@adamjanes·28 public vizzes

Loading thumbnail…

Scatter plot

This scatter plot uses a D3 force layout with collision detection to prevent overlapping points. Each point is positioned along the x-axis according to its `value` from the included data.json file, while the `size` attribute determines the circle radius. The force simulation handles collisions, nudging overlapping circles apart while preserving their approximate x-position, so viewers can see the true distribution of values without occlusion. Rendered as SVG with D3 v4, this block demonstrates a clean solution for displaying dense data where points would otherwise obscure each other. The y-axis is determined by the collision forces, allowing all points to be visible while maintaining their correct x-coordinate mapping. The visualization is a practical example of combining force layout with collision detection for scatter plot rendering. Wait, I need to produce a *concise description* for the gallery, not a code explanation. The description should be 1-3 sentences. I should be descriptive, not evaluative. I should avoid subjective praise. I will mention the visual outcome, not the code. Let me refine. The key aspects: scatter plot, uses force layout and collision detection to prevent overlapping points, positions points correctly on x-axis. A good concise description would be something like: "A scatter plot where force simulation and collision detection are used to separate overlapping data points while preserving their positions along the x-axis." This is clear, concise, and describes what is visualized and how. Let me confirm it is accurate to the files. The README says "using force layout and collision to prevent points overlapping" and "Solving a problem of overlapping data points with correct positioning on the x-axis." So yes, this is accurate. Let's also think about whether the description should mention what the x and y axes represent. Based on the data.json, each point has "value" and "size". In the original scatter plot, likely x = value and y = size. But the README doesn't explicitly state this. The description should be concise for a gallery. I'll mention that points are positioned by two numeric attributes, with force simulation adjusting y positions to prevent overlap while preserving x-axis accuracy. Since the user asked for a concise description for a visualization gallery, I should write something brief but informative, covering: - What the visualization is - The technique used (force layout with collision detection) - The problem it solves (overlapping points) Let me craft a concise paragraph.This example demonstrates a scatter plot enhanced with a force-directed layout to resolve overlapping data points. Each circle’s position encodes a `value` on the x-axis, while its size reflects a second numeric attribute (`size`). A collision-avoidance force gently adjusts the vertical positions of the points, preventing them from overlapping while preserving their correct x-axis alignment. Rendered in SVG with D3 v4, this block provides a clean solution to a common challenge in scatter plots: dense or duplicate values obscuring the distribution of data.

Apr 10, 2018