Skip to main content
100%

Swarm Plot

✓ Published0🌍 Public
AAndreas Papastergiou
Last edited Aug 23, 2021
Created on Aug 18, 2021
Forked from Customising Axes

A swarm plot visualizes the transfer fees of football players, grouped by their position on the pitch. The data, sourced from a CSV file, shows each player as a circle colored by position, with the vertical axis mapping the fee in millions. This implementation uses D3 v5 to load the data and render SVG circles, with an ordinal scale for horizontal positioning and a linear scale for the vertical fee axis. The code assigns colors using `d3.scaleOrdinal` with the `schemePaired` color palette.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes