Beeswarm plot
✓ Published0🌍 Public
PPragyagarg
Last edited Jul 19, 2018
Created on Jul 19, 2018
A beeswarm plot visualizes the distribution of 300 sampled values by arranging circles along a horizontal axis, with vertical positions reflecting each value. The code uses d3.forceSimulation with forceX, forceY, and forceCollide to position the circles, while d3.scaleOrdinal assigns categorical colors. The simulation updates circle coordinates via a tick handler, rendering the final layout as SVG elements.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed