Making a bar chart
✓ Published2🌍 Public
This example shows a bar chart of the populations of the ten most populous countries, sorted by size. It uses D3 v5 to select the SVG element and read its width and height attributes. The chart is rendered as an SVG, with data loaded from a CSV file containing country names and population figures. The visualization directly maps the population values to the length of each bar.
AI-generated descriptionMIT Licensed