Skip to main content
100%

Modifying Bar plot to a scatter plot D3.js

✓ Published0🌍 Public
Ggorfoula
Last edited Jul 20, 2020
Created on Jul 16, 2020

This example transforms a simple bar chart of population data by country into a scatter plot using D3.js. D3's `scaleLinear` maps population values to the x-axis, while `scalePoint` positions each country name along the y-axis, with circles rendered as the marks. The visualization reads from a CSV file and uses `axisLeft` and `axisBottom` to generate the axes, with tick labels formatted using D3's `format` function.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes