Skip to main content
100%

Scatter plot with D3.js!

✓ Published0🌍 Public
Ssoniyaa-dv
Last edited Jul 25, 2020
Created on Jul 25, 2020

This scatter plot displays the happiness scores of ten countries, showing each nation’s score along the horizontal axis with country names on the vertical axis. The visualization uses D3.js v5 with an SVG rendering approach, loading data from a CSV file. The code employs `d3.csv`, `scaleLinear`, and `scalePoint` to map scores and countries, while `axisBottom` and `axisLeft` generate the axes with tick lines. Circles are appended for each data point, styled with steelblue fill and opacity.

AI-generated description
MIT Licensed

Similar vizzes