🌍 Public
Viewing a saved revision (read-only)
838ec52c533c419e8fa425b81e2e94e8
Making a Bar Chart Fork
This example visualizes the average price of a two-bedroom flat across ten countries, using a horizontal bar chart rendered as SVG. The chart orders countries by price and labels each bar with its value in thousands. The code uses D3 v5 utilities including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, with data loaded from a CSV file via `d3.csv`. A `format('.3s')` tick formatter abbreviates axis labels, while the bars themselves are styled with a steelblue fill.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.