Skip to main content
100%

A special scatterplot with d3

✓ Published1🌍 Public
LLaurens
Last edited Jan 27, 2020
Created on Jan 17, 2020

This scatterplot visualizes survey responses on police contact, split into two groups based on whether respondents initiated contact or were approached by police. Each country appears as a distinct color, with circles positioned along the x-axis by rapportcijfer (1–10) and separated vertically per country. Circle size encodes the percentage of respondents giving each rating. The visualization uses d3.json to load data, d3.nest for aggregation, d3.scaleLinear for axes, and d3.scaleOrdinal with d3.schemeDark2 for colors, rendering circles as SVG elements.

AI-generated description

A special scatterplot with d3

This scatterplot has two groups of circles divided on the y-axis depending on a variable in the data

Within each group each country is represented by a color and separated from other countries on the y axis

This way you can see the distribution within each country

MIT Licensed

Similar vizzes