Skip to main content
100%

Fork of Cars Scatter Plot

✓ Published0🌍 Public
Jjohncoder21
Last edited Aug 1, 2021
Created on Aug 1, 2021
Forked from Cars Scatter Plot

This fork of a cars scatter plot displays population data for countries as a horizontal bar chart, with bar length proportional to each country’s population and bars aligned along a categorical y-axis. Built with D3 v5, the visualization uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, with `d3.axisLeft` for tick labels. All marks are appended as SVG `<rect>` elements within a `<g>` group, with data parsed from a CSV file where population values are multiplied by 1,000. The chart’s margin-based layout and width/height attributes are read directly from the `<svg>` element.

AI-generated description
MIT Licensed

Similar vizzes